comparison internal.h @ 666:86393a769260 libavutil

Correct, portable definition of INT_BIT
author mru
date Sat, 21 Feb 2009 16:03:30 +0000
parents 70bdd5501662
children 361d5a76087d
comparison
equal deleted inserted replaced
665:6780cc679b76 666:86393a769260
86 #ifndef UINT64_MAX 86 #ifndef UINT64_MAX
87 #define UINT64_MAX UINT64_C(0xFFFFFFFFFFFFFFFF) 87 #define UINT64_MAX UINT64_C(0xFFFFFFFFFFFFFFFF)
88 #endif 88 #endif
89 89
90 #ifndef INT_BIT 90 #ifndef INT_BIT
91 # if INT_MAX != 2147483647 91 # define INT_BIT (CHAR_BIT * sizeof(int))
92 # define INT_BIT 64
93 # else
94 # define INT_BIT 32
95 # endif
96 #endif 92 #endif
97 93
98 #if ( defined(__PIC__) || defined(__pic__) ) && ! defined(PIC) 94 #if ( defined(__PIC__) || defined(__pic__) ) && ! defined(PIC)
99 # define PIC 95 # define PIC
100 #endif 96 #endif