30
30
#include "intfloat_readwrite.h"
32
32
double av_int2dbl(int64_t v){
35
35
return ldexp(((v&((1LL<<52)-1)) + (1LL<<52)) * (v>>63|1), (v>>52&0x7FF)-1075);
38
38
float av_int2flt(int32_t v){
41
41
return ldexp(((v&0x7FFFFF) + (1<<23)) * (v>>31|1), (v>>23&0xFF)-150);