21 #ifndef AVUTIL_SOFTFLOAT_H
22 #define AVUTIL_SOFTFLOAT_H
39 while((a.
mant + 0x20000000U)<0x40000000U){
60 if(a.
mant + 0x40000000 < 0){
66 int t= a.
mant + 0x40000000 < 0;
69 int t= (a.
mant + 0x40000000
U)>>31;
97 if(t<0)
return (a.
mant >> (-t)) - b.
mant ;
static av_const SoftFloat av_div_sf(SoftFloat a, SoftFloat b)
b has to be normalized and not zero.
static av_const SoftFloat av_normalize_sf(SoftFloat a)
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)
static av_const SoftFloat av_mul_sf(SoftFloat a, SoftFloat b)
static av_const SoftFloat av_int2sf(int v, int frac_bits)
common internal and external API header