Skip to content

Commit

Permalink
Fix ARM build with Visual Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Jul 26, 2015
1 parent 15e4168 commit 45ccf50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/openjp2/opj_includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,16 @@ static INLINE long opj_lrintf(float f){

/* commented out line breaks many tests */
/* return (long)((f>0.0f) ? (f + 0.5f):(f -0.5f)); */
#else
#elif defined(_M_IX86)
int i;
_asm{
fld f
fistp i
};

return i;
#else
return (long)((f>0.0f) ? (f + 0.5f) : (f - 0.5f));
#endif
}
#elif defined(__BORLANDC__)
Expand Down

0 comments on commit 45ccf50

Please sign in to comment.