Changeset 13370 in vbox for trunk/src/recompiler_new/fpu
- Timestamp:
- Oct 17, 2008 11:58:09 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 38092
- Location:
- trunk/src/recompiler_new/fpu
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler_new/fpu/softfloat-native.h
r13359 r13370 4 4 #if (defined(_BSD) && !defined(__APPLE__)) || defined(HOST_SOLARIS) 5 5 #include <ieeefp.h> 6 #define fabsf(f) ((float)fabs(f)) 7 #elif defined(_MSC_VER) 8 #include <fpieee.h> 6 9 #define fabsf(f) ((float)fabs(f)) 7 10 #else … … 34 37 #define isinf(x) ((fpclass(x) == FP_NINF) || (fpclass(x) == FP_PINF)) 35 38 39 #elif defined(_MSC_VER) 40 #include <float.h> 41 #define unordered(x1, x2) ((_fpclass(x1) <= 2) || (_fpclass(x2) <= 2)) 42 #define isless(x, y) ((!unordered(x, y)) && ((x) < (y))) 43 #define islessequal(x, y) ((!unordered(x, y)) && ((x) <= (y))) 44 #define isunordered(x,y) unordered(x, y) 36 45 #endif 37 46 … … 77 86 float_round_to_zero = 3 78 87 }; 88 #elif defined(_MSC_VER) 89 enum { 90 float_round_nearest_even = _FpRoundNearest, 91 float_round_down = _FpRoundMinusInfinity, 92 float_round_up = _FpRoundPlusInfinity, 93 float_round_to_zero = _FpRoundChopped 94 }; 79 95 #else 80 96 enum { -
trunk/src/recompiler_new/fpu/softfloat.h
r1 r13370 33 33 #define SOFTFLOAT_H 34 34 35 #ifdef VBOX 36 #ifndef _MSC_VER 35 37 #include <inttypes.h> 38 #endif 39 #endif 36 40 #include "config.h" 37 41 … … 70 74 71 75 #define LIT64( a ) a##LL 76 #ifdef _MSC_VER 77 #define INLINE 78 #else 72 79 #define INLINE static inline 80 #endif 73 81 74 82 /*----------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.