Browse Source

avutil/softfloat: Improve doxy for av_sub_sf() and av_sf2int()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.1
Michael Niedermayer 9 years ago
parent
commit
52ca24bdd2
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavutil/softfloat.h

+ 4
- 0
libavutil/softfloat.h View File

@@ -160,6 +160,9 @@ static inline av_const SoftFloat av_add_sf(SoftFloat a, SoftFloat b){
else return a;
}

/**
* @returns the difference of 2 SoftFloats.
*/
static inline av_const SoftFloat av_sub_sf(SoftFloat a, SoftFloat b){
return av_add_sf(a, (SoftFloat){ -b.mant, b.exp});
}
@@ -180,6 +183,7 @@ static inline av_const SoftFloat av_int2sf(int v, int frac_bits){
}

/**
* Converts a SoftFloat to an integer.
* Rounding is to -inf.
*/
static inline av_const int av_sf2int(SoftFloat v, int frac_bits){


Loading…
Cancel
Save