Mercurial > libavutil.hg
comparison intfloat_readwrite.c @ 23:f70fdc881a24 libavutil
add missing #includes
patch by Dieter <freebsd at sopwith solgatos com>
author | mru |
---|---|
date | Mon, 30 Jan 2006 23:32:14 +0000 |
parents | af59e84e283d |
children | 2b3573111ff0 |
comparison
equal
deleted
inserted
replaced
22:3b56407b3f96 | 23:f70fdc881a24 |
---|---|
22 * @file intfloat_readwrite.c | 22 * @file intfloat_readwrite.c |
23 * Portable IEEE float/double read/write functions. | 23 * Portable IEEE float/double read/write functions. |
24 */ | 24 */ |
25 | 25 |
26 #include "common.h" | 26 #include "common.h" |
27 #include "intfloat_readwrite.h" | |
27 | 28 |
28 double av_int2dbl(int64_t v){ | 29 double av_int2dbl(int64_t v){ |
29 if(v+v > 0xFFELLU<<52) | 30 if(v+v > 0xFFELLU<<52) |
30 return 0.0/0.0; | 31 return 0.0/0.0; |
31 return ldexp(((v&((1LL<<52)-1)) + (1LL<<52)) * (v>>63|1), (v>>52&0x7FF)-1075); | 32 return ldexp(((v&((1LL<<52)-1)) + (1LL<<52)) * (v>>63|1), (v>>52&0x7FF)-1075); |