avutil/softfloat: Fix sign error in and improve documentation of av_int2sf()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 6019d721d4)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
0d19167a65
commit
cefbc513ea
1 changed files with 4 additions and 2 deletions
|
|
@ -177,8 +177,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue