diff --git a/libavutil/intmath.h b/libavutil/intmath.h index 95ee1ff65c..7ba3afb913 100644 --- a/libavutil/intmath.h +++ b/libavutil/intmath.h @@ -36,25 +36,20 @@ extern const uint32_t ff_inverse[257]; #if HAVE_FAST_CLZ && AV_GCC_VERSION_AT_LEAST(3,4) #ifndef av_log2 - -#define av_log2(x) (31 - __builtin_clz((x)|1)) - -#ifndef av_log2_16bit -#define av_log2_16bit av_log2 -#endif - +# define av_log2(x) (31 - __builtin_clz((x)|1)) +# ifndef av_log2_16bit +# define av_log2_16bit av_log2 +# endif #endif /* av_log2 */ #endif /* AV_GCC_VERSION_AT_LEAST(3,4) */ #ifndef FASTDIV - -#if CONFIG_FASTDIV -# define FASTDIV(a,b) ((uint32_t)((((uint64_t)a) * ff_inverse[b]) >> 32)) -#else -# define FASTDIV(a,b) ((a) / (b)) -#endif - +# if CONFIG_FASTDIV +# define FASTDIV(a,b) ((uint32_t)((((uint64_t)a) * ff_inverse[b]) >> 32)) +# else +# define FASTDIV(a,b) ((a) / (b)) +# endif #endif /* FASTDIV */ /*