aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-05-29 14:44:27 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-05-29 14:45:07 +0200
commit52ca24bdd2d199cac0db7b1060d0ff54054186dc (patch)
tree3adc966737e8429ccb1465e45f32e6449a356064
parentcbd19881f7e45a1f98fe1c2ef085a343ed1d0a05 (diff)
downloadffmpeg-52ca24bdd2d199cac0db7b1060d0ff54054186dc.tar.gz
avutil/softfloat: Improve doxy for av_sub_sf() and av_sf2int()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavutil/softfloat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h
index 1dd5bb7e98..a3b2238585 100644
--- a/libavutil/softfloat.h
+++ b/libavutil/softfloat.h
@@ -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){