Fix ARM build with Visual Studio
This commit is contained in:
parent
15e4168ee2
commit
45ccf501f0
|
@ -129,7 +129,7 @@ static INLINE long opj_lrintf(float f){
|
||||||
|
|
||||||
/* commented out line breaks many tests */
|
/* commented out line breaks many tests */
|
||||||
/* return (long)((f>0.0f) ? (f + 0.5f):(f -0.5f)); */
|
/* return (long)((f>0.0f) ? (f + 0.5f):(f -0.5f)); */
|
||||||
#else
|
#elif defined(_M_IX86)
|
||||||
int i;
|
int i;
|
||||||
_asm{
|
_asm{
|
||||||
fld f
|
fld f
|
||||||
|
@ -137,6 +137,8 @@ static INLINE long opj_lrintf(float f){
|
||||||
};
|
};
|
||||||
|
|
||||||
return i;
|
return i;
|
||||||
|
#else
|
||||||
|
return (long)((f>0.0f) ? (f + 0.5f) : (f - 0.5f));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#elif defined(__BORLANDC__)
|
#elif defined(__BORLANDC__)
|
||||||
|
|
Loading…
Reference in New Issue