comparison intfloat_readwrite.c @ 2:89cdb3b541e2 libavutil

kill a bunch of compiler warnings
author mru
date Sun, 14 Aug 2005 15:42:40 +0000
parents ee8f44bb7c4d
children ce8f9f4390c3
comparison
equal deleted inserted replaced
1:3fb7afd7bc19 2:89cdb3b541e2
26 #include "common.h" 26 #include "common.h"
27 27
28 double av_int2dbl(int64_t v){ 28 double av_int2dbl(int64_t v){
29 if(v+v > 0xFFELLU<<52) 29 if(v+v > 0xFFELLU<<52)
30 return 0.0/0.0; 30 return 0.0/0.0;
31 return ldexp(((v&(1LL<<52)-1) + (1LL<<52)) * (v>>63|1), (v>>52&0x7FF)-1075); 31 return ldexp(((v&((1LL<<52)-1)) + (1LL<<52)) * (v>>63|1), (v>>52&0x7FF)-1075);
32 } 32 }
33 33
34 float av_int2flt(int32_t v){ 34 float av_int2flt(int32_t v){
35 if(v+v > 0xFF000000U) 35 if(v+v > 0xFF000000U)
36 return 0.0/0.0; 36 return 0.0/0.0;