21 #ifndef AVUTIL_SOFTFLOAT_H
22 #define AVUTIL_SOFTFLOAT_H
41 while((a.
mant + 0x20000000U)<0x40000000U){
69 int t= a.
mant + 0x40000000 < 0;
72 int t= (a.
mant + 0x40000000
U)>>31;
101 if(t<0)
return (a.
mant >> (-t)) - b.
mant ;
107 if (t <-31)
return b;
static av_const SoftFloat av_div_sf(SoftFloat a, SoftFloat b)
b has to be normalized and not zero.
#define av_assert2(cond)
assert() equivalent, that does lie in speed critical code.
static av_const SoftFloat av_normalize_sf(SoftFloat a)
simple assert() macros that are a bit more flexible than ISO C assert().
static av_const int av_cmp_sf(SoftFloat a, SoftFloat b)
static av_const SoftFloat av_normalize1_sf(SoftFloat a)
static av_const int av_sf2int(SoftFloat v, int frac_bits)
Rounding is to -inf.
static av_const SoftFloat av_sub_sf(SoftFloat a, SoftFloat b)
static av_const SoftFloat av_add_sf(SoftFloat a, SoftFloat b)
common internal and external API header
static av_const SoftFloat av_mul_sf(SoftFloat a, SoftFloat b)
static av_const SoftFloat av_int2sf(int v, int frac_bits)