comparison intreadwrite.h @ 758:22a58fc2125d libavutil

Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
author mru
date Sun, 26 Jul 2009 12:20:04 +0000
parents 7562cfd794da
children 2ddfead60392
comparison
equal deleted inserted replaced
757:7562cfd794da 758:22a58fc2125d
153 ((uint8_t*)(p))[5] = (d)>>40; \ 153 ((uint8_t*)(p))[5] = (d)>>40; \
154 ((uint8_t*)(p))[6] = (d)>>48; \ 154 ((uint8_t*)(p))[6] = (d)>>48; \
155 ((uint8_t*)(p))[7] = (d)>>56; } while(0) 155 ((uint8_t*)(p))[7] = (d)>>56; } while(0)
156 #endif 156 #endif
157 157
158 #ifdef WORDS_BIGENDIAN 158 #if HAVE_BIGENDIAN
159 # define AV_RN(s, p) AV_RB##s(p) 159 # define AV_RN(s, p) AV_RB##s(p)
160 # define AV_WN(s, p, v) AV_WB##s(p, v) 160 # define AV_WN(s, p, v) AV_WB##s(p, v)
161 #else 161 #else
162 # define AV_RN(s, p) AV_RL##s(p) 162 # define AV_RN(s, p) AV_RL##s(p)
163 # define AV_WN(s, p, v) AV_WL##s(p, v) 163 # define AV_WN(s, p, v) AV_WL##s(p, v)
187 187
188 #ifndef AV_WN64 188 #ifndef AV_WN64
189 # define AV_WN64(p, v) AV_WN(64, p, v) 189 # define AV_WN64(p, v) AV_WN(64, p, v)
190 #endif 190 #endif
191 191
192 #ifdef WORDS_BIGENDIAN 192 #if HAVE_BIGENDIAN
193 # define AV_RB(s, p) AV_RN(s, p) 193 # define AV_RB(s, p) AV_RN(s, p)
194 # define AV_WB(s, p, v) AV_WN(s, p, v) 194 # define AV_WB(s, p, v) AV_WN(s, p, v)
195 # define AV_RL(s, p) bswap_##s(AV_RN(s, p)) 195 # define AV_RL(s, p) bswap_##s(AV_RN(s, p))
196 # define AV_WL(s, p, v) AV_WN(s, p, bswap_##s(v)) 196 # define AV_WL(s, p, v) AV_WN(s, p, bswap_##s(v))
197 #else 197 #else