Mercurial > libavutil.hg
comparison bswap.h @ 992:a13125b5be3a libavutil
bswap: change ME to NE in macro names
Other parts of FFmpeg use NE (native endian) rather than ME (machine).
This makes it consistent.
author | mru |
---|---|
date | Sat, 10 Jul 2010 22:09:01 +0000 |
parents | e0e9e51684ef |
children | f8db9a2bae05 |
comparison
equal
deleted
inserted
replaced
991:ac42d0f16eae | 992:a13125b5be3a |
---|---|
83 return r.ll; | 83 return r.ll; |
84 #endif | 84 #endif |
85 } | 85 } |
86 #endif | 86 #endif |
87 | 87 |
88 // be2me ... big-endian to machine-endian | 88 // be2ne ... big-endian to native-endian |
89 // le2me ... little-endian to machine-endian | 89 // le2ne ... little-endian to native-endian |
90 | 90 |
91 #if HAVE_BIGENDIAN | 91 #if HAVE_BIGENDIAN |
92 #define be2me_16(x) (x) | 92 #define be2ne_16(x) (x) |
93 #define be2me_32(x) (x) | 93 #define be2ne_32(x) (x) |
94 #define be2me_64(x) (x) | 94 #define be2ne_64(x) (x) |
95 #define le2me_16(x) bswap_16(x) | 95 #define le2ne_16(x) bswap_16(x) |
96 #define le2me_32(x) bswap_32(x) | 96 #define le2ne_32(x) bswap_32(x) |
97 #define le2me_64(x) bswap_64(x) | 97 #define le2ne_64(x) bswap_64(x) |
98 #define AV_BE2MEC(s, x) (x) | 98 #define AV_BE2NEC(s, x) (x) |
99 #define AV_LE2MEC(s, x) AV_BSWAPC(s, x) | 99 #define AV_LE2NEC(s, x) AV_BSWAPC(s, x) |
100 #else | 100 #else |
101 #define be2me_16(x) bswap_16(x) | 101 #define be2ne_16(x) bswap_16(x) |
102 #define be2me_32(x) bswap_32(x) | 102 #define be2ne_32(x) bswap_32(x) |
103 #define be2me_64(x) bswap_64(x) | 103 #define be2ne_64(x) bswap_64(x) |
104 #define le2me_16(x) (x) | 104 #define le2ne_16(x) (x) |
105 #define le2me_32(x) (x) | 105 #define le2ne_32(x) (x) |
106 #define le2me_64(x) (x) | 106 #define le2ne_64(x) (x) |
107 #define AV_BE2MEC(s, x) AV_BSWAPC(s, x) | 107 #define AV_BE2NEC(s, x) AV_BSWAPC(s, x) |
108 #define AV_LE2MEC(s, x) (x) | 108 #define AV_LE2NEC(s, x) (x) |
109 #endif | 109 #endif |
110 | 110 |
111 #define AV_BE2ME16C(x) AV_BE2MEC(16, x) | 111 #define AV_BE2NE16C(x) AV_BE2NEC(16, x) |
112 #define AV_BE2ME32C(x) AV_BE2MEC(32, x) | 112 #define AV_BE2NE32C(x) AV_BE2NEC(32, x) |
113 #define AV_BE2ME64C(x) AV_BE2MEC(64, x) | 113 #define AV_BE2NE64C(x) AV_BE2NEC(64, x) |
114 #define AV_LE2ME16C(x) AV_LE2MEC(16, x) | 114 #define AV_LE2NE16C(x) AV_LE2NEC(16, x) |
115 #define AV_LE2ME32C(x) AV_LE2MEC(32, x) | 115 #define AV_LE2NE32C(x) AV_LE2NEC(32, x) |
116 #define AV_LE2ME64C(x) AV_LE2MEC(64, x) | 116 #define AV_LE2NE64C(x) AV_LE2NEC(64, x) |
117 | 117 |
118 #endif /* AVUTIL_BSWAP_H */ | 118 #endif /* AVUTIL_BSWAP_H */ |