diff options
author | Dave Chapman <dave@dchapman.com> | 2005-10-06 19:27:43 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2005-10-06 19:27:43 +0000 |
commit | 9e19c95d8efc78a22a32b4a77f9c4a0b4e64125c (patch) | |
tree | 1d0bc7970de2cd2f4fa365614f84f12517ad1b5f /apps/metadata.c | |
parent | 1c3a83c44e6dd18990d813c2f12e83bab67f313a (diff) | |
download | rockbox-9e19c95d8efc78a22a32b4a77f9c4a0b4e64125c.tar.gz rockbox-9e19c95d8efc78a22a32b4a77f9c4a0b4e64125c.zip |
Replace SWAB16 and SWAB32 with a comprehensive set of byte-swap macros - letoh16, letoh32, htole16, htole32, betoh16, betoh32, htobe16 and htobe32
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7584 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata.c')
-rw-r--r-- | apps/metadata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/metadata.c b/apps/metadata.c index 0cf0890886..86e0887231 100644 --- a/apps/metadata.c +++ b/apps/metadata.c | |||
@@ -152,7 +152,7 @@ static void convert_endian(void *data, const char *format) | |||
152 | { | 152 | { |
153 | long* d = (long*) data; | 153 | long* d = (long*) data; |
154 | 154 | ||
155 | *d = SWAB32(*d); | 155 | *d = letoh32(*d); |
156 | data = d + 1; | 156 | data = d + 1; |
157 | } | 157 | } |
158 | 158 | ||
@@ -162,7 +162,7 @@ static void convert_endian(void *data, const char *format) | |||
162 | { | 162 | { |
163 | short* d = (short*) data; | 163 | short* d = (short*) data; |
164 | 164 | ||
165 | *d = SWAB16(*d); | 165 | *d = letoh16(*d); |
166 | data = d + 1; | 166 | data = d + 1; |
167 | } | 167 | } |
168 | 168 | ||