diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-25 14:51:02 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-25 14:51:02 +0200 |
commit | a3110beebd781c422ab98792227f51c46ac5918e (patch) | |
tree | ee8c526b38bf585484a21eab7cc38a70dcb811f2 /libavutil | |
parent | 663321ed50ce314b0a44b7265da95505b1eebbb1 (diff) | |
download | ffmpeg-a3110beebd781c422ab98792227f51c46ac5918e.tar.gz |
avutil/softfloat: document av_int2sf()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/softfloat.h | 4 |
1 files changed, 4 insertions, 0 deletions
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}); } |