diff options
Diffstat (limited to 'libavcodec/mathops.h')
-rw-r--r-- | libavcodec/mathops.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/mathops.h b/libavcodec/mathops.h index c065018f56..4988f1d3df 100644 --- a/libavcodec/mathops.h +++ b/libavcodec/mathops.h @@ -233,6 +233,11 @@ static inline av_const unsigned int ff_sqrt(unsigned int a) } #endif +static inline av_const float ff_sqrf(float a) +{ + return a*a; +} + static inline int8_t ff_u8_to_s8(uint8_t a) { union { |