diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-04 20:45:09 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-05 03:33:22 +0200 |
commit | 1065957f7b05e6242e2ff5b5654e12994775c284 (patch) | |
tree | 70087d61355a7f907bc22e6ca48943b46e0ed57f /libavutil | |
parent | af85f35d2ce86fed041b80ec5d0b305c5768582c (diff) | |
download | ffmpeg-1065957f7b05e6242e2ff5b5654e12994775c284.tar.gz |
avutil/softfloat: Fix sign error in and improve documentation of av_int2sf()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 6019d721d4c10bf73018d68511d9d0a914c0a389)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/softfloat.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h index b4fce57906..df610b7b3b 100644 --- a/libavutil/softfloat.h +++ b/libavutil/softfloat.h @@ -157,8 +157,10 @@ static inline av_const SoftFloat av_sub_sf(SoftFloat a, SoftFloat b){ //FIXME log, exp, pow /** - * Converts a mantisse and exponent to a SoftFloat - * @returns a SoftFloat with value v * 2^frac_bits + * Converts a mantisse and exponent to a SoftFloat. + * This converts a fixed point value v with frac_bits fractional bits to a + * SoftFloat. + * @returns a SoftFloat with value v * 2^-frac_bits */ static inline av_const SoftFloat av_int2sf(int v, int frac_bits){ int exp_offset = 0; |