From a3110beebd781c422ab98792227f51c46ac5918e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 25 Apr 2015 14:51:02 +0200 Subject: [PATCH] avutil/softfloat: document av_int2sf() Signed-off-by: Michael Niedermayer --- libavutil/softfloat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h index 654a31f9ad..2e85765fe9 100644 --- a/libavutil/softfloat.h +++ b/libavutil/softfloat.h @@ -116,6 +116,10 @@ static inline av_const SoftFloat av_sub_sf(SoftFloat a, SoftFloat b){ //FIXME sqrt, log, exp, pow, sin, cos +/** + * Converts a mantisse and exponent to a SoftFloat + * @returns a SoftFloat with value v * 2^frac_bits + */ static inline av_const SoftFloat av_int2sf(int v, int frac_bits){ return av_normalize_sf((SoftFloat){v, ONE_BITS-frac_bits}); }