Revision a955b596 libavutil/intmath.h

View differences:

libavutil/intmath.h
52 52
#   endif
53 53
#endif /* FASTDIV */
54 54

  
55
/*
56
 * Get definition of av_log2_c from common.h.  In the event we got
57
 * here through common.h including this file, including it again will
58
 * be a no-op due to multi-inclusion guards, so we must duplicate the
59
 * fallback defines here.
60
 */
61

  
62 55
#include "common.h"
63 56

  
64
#ifndef av_log2
65
#   define av_log2       av_log2_c
66
#endif
67
#ifndef av_log2_16bit
68
#   define av_log2_16bit av_log2_16bit_c
69
#endif
70

  
71 57
extern const uint8_t ff_sqrt_tab[256];
72 58

  
73 59
static inline av_const unsigned int ff_sqrt(unsigned int a)

Also available in: Unified diff