summaryrefslogtreecommitdiffstats
path: root/libavutil/softfloat.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-06-04 20:45:09 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-06-04 23:41:08 +0200
commit6019d721d4c10bf73018d68511d9d0a914c0a389 (patch)
tree1eb9bd5e52d66d74d5ecb94db5022254738276fc /libavutil/softfloat.h
parent67162554d458c12f73c9461d5e661445693a201c (diff)
downloadffmpeg-streaming-6019d721d4c10bf73018d68511d9d0a914c0a389.zip
ffmpeg-streaming-6019d721d4c10bf73018d68511d9d0a914c0a389.tar.gz
avutil/softfloat: Fix sign error in and improve documentation of av_int2sf()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/softfloat.h')
-rw-r--r--libavutil/softfloat.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h
index 32b33d9..b13d728 100644
--- a/libavutil/softfloat.h
+++ b/libavutil/softfloat.h
@@ -176,8 +176,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;
OpenPOWER on IntegriCloud