Mercurial > libavutil.hg
comparison intmath.h @ 977:2cbad2391250 libavutil
intmath: whitespace cosmetics
author | mru |
---|---|
date | Wed, 07 Jul 2010 17:27:39 +0000 |
parents | 3790c30fc3ad |
children | 009d2ce554b2 |
comparison
equal
deleted
inserted
replaced
976:0a6c0fb069d2 | 977:2cbad2391250 |
---|---|
34 #endif | 34 #endif |
35 | 35 |
36 #if HAVE_FAST_CLZ && AV_GCC_VERSION_AT_LEAST(3,4) | 36 #if HAVE_FAST_CLZ && AV_GCC_VERSION_AT_LEAST(3,4) |
37 | 37 |
38 #ifndef av_log2 | 38 #ifndef av_log2 |
39 | 39 # define av_log2(x) (31 - __builtin_clz((x)|1)) |
40 #define av_log2(x) (31 - __builtin_clz((x)|1)) | 40 # ifndef av_log2_16bit |
41 | 41 # define av_log2_16bit av_log2 |
42 #ifndef av_log2_16bit | 42 # endif |
43 #define av_log2_16bit av_log2 | |
44 #endif | |
45 | |
46 #endif /* av_log2 */ | 43 #endif /* av_log2 */ |
47 | 44 |
48 #endif /* AV_GCC_VERSION_AT_LEAST(3,4) */ | 45 #endif /* AV_GCC_VERSION_AT_LEAST(3,4) */ |
49 | 46 |
50 #ifndef FASTDIV | 47 #ifndef FASTDIV |
51 | 48 # if CONFIG_FASTDIV |
52 #if CONFIG_FASTDIV | 49 # define FASTDIV(a,b) ((uint32_t)((((uint64_t)a) * ff_inverse[b]) >> 32)) |
53 # define FASTDIV(a,b) ((uint32_t)((((uint64_t)a) * ff_inverse[b]) >> 32)) | 50 # else |
54 #else | 51 # define FASTDIV(a,b) ((a) / (b)) |
55 # define FASTDIV(a,b) ((a) / (b)) | 52 # endif |
56 #endif | |
57 | |
58 #endif /* FASTDIV */ | 53 #endif /* FASTDIV */ |
59 | 54 |
60 /* | 55 /* |
61 * Get definition of av_log2_c from common.h. In the event we got | 56 * Get definition of av_log2_c from common.h. In the event we got |
62 * here through common.h including this file, including it again will | 57 * here through common.h including this file, including it again will |