Skip to content

Commit 2b773e2

Browse files
committed
Remove x87 fpu function
1 parent d80b9b4 commit 2b773e2

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

r4300/fpu.h

+1-12
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,7 @@
3232

3333
#ifdef _MSC_VER
3434
#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>
4736
#define isnan _isnan
4837
#else
4938
#define M64P_FPU_INLINE static inline

0 commit comments

Comments
 (0)