File tree 1 file changed +1
-12
lines changed
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 32
32
33
33
#ifdef _MSC_VER
34
34
#define M64P_FPU_INLINE static __inline
35
- #include <float.h>
36
- typedef enum { FE_TONEAREST = 0 , FE_TOWARDZERO , FE_UPWARD , FE_DOWNWARD } eRoundType ;
37
- static void fesetround (eRoundType RoundType )
38
- {
39
- static const unsigned int msRound [4 ] = { _RC_NEAR , _RC_CHOP , _RC_UP , _RC_DOWN };
40
- unsigned int oldX87 , oldSSE2 ;
41
- __control87_2 (msRound [RoundType ], _MCW_RC , & oldX87 , & oldSSE2 );
42
- }
43
- static __inline double round (double x ) { return floor (x + 0.5 ); }
44
- static __inline float roundf (float x ) { return (float ) floor (x + 0.5 ); }
45
- static __inline double trunc (double x ) { return (double ) (int ) x ; }
46
- static __inline float truncf (float x ) { return (float ) (int ) x ; }
35
+ #include <fenv.h>
47
36
#define isnan _isnan
48
37
#else
49
38
#define M64P_FPU_INLINE static inline
You can’t perform that action at this time.
0 commit comments