Commit a3110bee authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/softfloat: document av_int2sf()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 663321ed
......@@ -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});
}
......
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