34 if((uint64_t)v+v > 0xFFEULL<<52)
36 return ldexp(((v&((1LL<<52)-1)) + (1LL<<52)) * (v>>63|1), (v>>52&0x7FF)-1075);
40 if((uint32_t)v+v > 0xFF000000U)
42 return ldexp(((v&0x7FFFFF) + (1<<23)) * (v>>31|1), (v>>23&0xFF)-150);
49 for (i = 0; i < 8; i++)
65 else if(d-d)
return 0x7FF0000000000000LL + ((int64_t)(d<0)<<63) + (d!=d);
67 return (int64_t)(d<0)<<63 | (e+1022LL)<<52 | (int64_t)((fabs(d)-0.5)*(1LL<<53));
73 else if(d-d)
return 0x7F800000 + ((d<0)<<31) + (d!=
d);
75 return (d<0)<<31 | (e+126)<<23 | (int64_t)((fabs(d)-0.5)*(1<<24));
80 int e,
i;
double f; uint64_t
m;
82 f = fabs(frexp(d, &e));
83 if (f >= 0.5 && f < 1) {
87 m = (uint64_t)ldexp(f, 64);
90 }
else if (f != 0.0) {
AVExtFloat av_dbl2ext(double d)
int32_t av_flt2int(float d)
double av_int2dbl(int64_t v)
double av_ext2dbl(const AVExtFloat ext)
int64_t av_dbl2int(double d)
float av_int2flt(int32_t v)
synthesis window for stochastic i
common internal and external API header
static av_always_inline av_const int isinf(float x)