Skip to content
Snippets Groups Projects
Commit 1ce83a36 authored by Baptiste Coudurier's avatar Baptiste Coudurier
Browse files

use C99 standard constant, thanks to Foxy Shadis

Originally committed as revision 5986 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 81f0f938
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include "intfloat_readwrite.h" #include "intfloat_readwrite.h"
double av_int2dbl(int64_t v){ double av_int2dbl(int64_t v){
if(v+v > 0xFFELLU<<52) if(v+v > 0xFFEULL<<52)
return 0.0/0.0; return 0.0/0.0;
return ldexp(((v&((1LL<<52)-1)) + (1LL<<52)) * (v>>63|1), (v>>52&0x7FF)-1075); return ldexp(((v&((1LL<<52)-1)) + (1LL<<52)) * (v>>63|1), (v>>52&0x7FF)-1075);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment