Commit 6019d721 authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/softfloat: Fix sign error in and improve documentation of av_int2sf()

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 67162554
...@@ -176,8 +176,10 @@ static inline av_const SoftFloat av_sub_sf(SoftFloat a, SoftFloat b){ ...@@ -176,8 +176,10 @@ static inline av_const SoftFloat av_sub_sf(SoftFloat a, SoftFloat b){
//FIXME log, exp, pow //FIXME log, exp, pow
/** /**
* Converts a mantisse and exponent to a SoftFloat * Converts a mantisse and exponent to a SoftFloat.
* @returns a SoftFloat with value v * 2^frac_bits * 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){ static inline av_const SoftFloat av_int2sf(int v, int frac_bits){
int exp_offset = 0; int exp_offset = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment