diff options
Diffstat (limited to 'libavcodec/mathops.h')
-rw-r--r-- | libavcodec/mathops.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mathops.h b/libavcodec/mathops.h index 87d110b457..46283ca444 100644 --- a/libavcodec/mathops.h +++ b/libavcodec/mathops.h @@ -211,6 +211,8 @@ if ((y) < (x)) {\ # define FASTDIV(a,b) ((uint32_t)((((uint64_t)a) * ff_inverse[b]) >> 32)) #endif /* FASTDIV */ +#ifndef ff_sqrt +#define ff_sqrt ff_sqrt static inline av_const unsigned int ff_sqrt(unsigned int a) { unsigned int b; @@ -230,6 +232,7 @@ static inline av_const unsigned int ff_sqrt(unsigned int a) return b - (a < b * b); } +#endif static inline int8_t ff_u8_to_s8(uint8_t a) { |