comparison tiffenc.c @ 9985:266bf83f634d libavcodec

Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
author mru
date Sun, 26 Jul 2009 12:20:04 +0000
parents e9d9d946f213
children 38cfe222e1a4
comparison
equal deleted inserted replaced
9984:32dfddd8992a 9985:266bf83f634d
89 */ 89 */
90 static void tnput(uint8_t ** p, int n, const uint8_t * val, enum TiffTypes type, 90 static void tnput(uint8_t ** p, int n, const uint8_t * val, enum TiffTypes type,
91 int flip) 91 int flip)
92 { 92 {
93 int i; 93 int i;
94 #ifdef WORDS_BIGENDIAN 94 #if HAVE_BIGENDIAN
95 flip ^= ((int[]) {0, 0, 0, 1, 3, 3})[type]; 95 flip ^= ((int[]) {0, 0, 0, 1, 3, 3})[type];
96 #endif 96 #endif
97 for (i = 0; i < n * type_sizes2[type]; i++) 97 for (i = 0; i < n * type_sizes2[type]; i++)
98 *(*p)++ = val[i ^ flip]; 98 *(*p)++ = val[i ^ flip];
99 } 99 }