X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmathops.h;h=4988f1d3dfa4cbd00d15509ab8f8c5a1423df6ab;hb=235e76aeb877bd1b23c12e74588e86752e3dfbe7;hp=c065018f560c8ef0344e478e406489b094d30fb8;hpb=fe294b34030becfa58001dffaff0311b19e60526;p=ffmpeg diff --git a/libavcodec/mathops.h b/libavcodec/mathops.h index c065018f560..4988f1d3dfa 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 {