X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Fsoftfloat.h;h=97e09ea7e7ac4842aa07aed8d427711fadaf2c31;hb=e482c2e2fbae77876ab9b9efb1082ee30dd1aaba;hp=283cc6e69a026957a942f07d386d023d4e90b88f;hpb=ca74c0a180d715f0af685bbd9f4bf01501d38325;p=ffmpeg diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h index 283cc6e69a0..97e09ea7e7a 100644 --- a/libavutil/softfloat.h +++ b/libavutil/softfloat.h @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef FFMPEG_SOFTFLOAT_H -#define FFMPEG_SOFTFLOAT_H +#ifndef AVUTIL_SOFTFLOAT_H +#define AVUTIL_SOFTFLOAT_H #include #include "common.h" @@ -72,10 +72,9 @@ static inline av_const SoftFloat av_normalize1_sf(SoftFloat a){ } /** - * - * @return will not be more denormalized then a+b, so if either input is - * normalized then the output will not be worse then the other input - * if both are normalized then the output will be normalized + * @return Will not be more denormalized than a+b. So if either input is + * normalized, then the output will not be worse then the other input. + * If both are normalized, then the output will be normalized. */ static inline av_const SoftFloat av_mul_sf(SoftFloat a, SoftFloat b){ a.exp += b.exp; @@ -84,9 +83,8 @@ static inline av_const SoftFloat av_mul_sf(SoftFloat a, SoftFloat b){ } /** - * - * b has to be normalized and not zero - * @return will not be more denormalized then a + * b has to be normalized and not zero. + * @return Will not be more denormalized than a. */ static av_const SoftFloat av_div_sf(SoftFloat a, SoftFloat b){ a.exp -= b.exp+1; @@ -117,8 +115,7 @@ static inline av_const SoftFloat av_int2sf(int v, int frac_bits){ } /** - * - * rounding is to -inf + * Rounding is to -inf. */ static inline av_const int av_sf2int(SoftFloat v, int frac_bits){ v.exp += frac_bits - ONE_BITS; @@ -126,4 +123,4 @@ static inline av_const int av_sf2int(SoftFloat v, int frac_bits){ else return v.mant >>(-v.exp); } -#endif /* FFMPEG_SOFTFLOAT_H */ +#endif /* AVUTIL_SOFTFLOAT_H */