summaryrefslogtreecommitdiffstats
path: root/libavcodec/mathops.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/mathops.h')
-rw-r--r--libavcodec/mathops.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/mathops.h b/libavcodec/mathops.h
index c065018..4988f1d 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 {
OpenPOWER on IntegriCloud