Changeset 37689 in vbox for trunk/src/recompiler/fpu/softfloat-native.c
- Timestamp:
- Jun 29, 2011 4:01:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/fpu/softfloat-native.c
r37675 r37689 13 13 (defined(CONFIG_SOLARIS) && (CONFIG_SOLARIS_VERSION < 10 || CONFIG_SOLARIS_VERSION == 11)) /* VBOX adds sol 11 */ 14 14 fpsetround(val); 15 #elif defined(__arm__)16 /* nothing to do */17 15 #else 18 16 fesetround(val); … … 36 34 #define remainderf(fa, fb) ((float)remainder(fa, fb)) 37 35 #define rintf(f) ((float)rint(f)) 38 /* Some defines which only apply to *BSD */ 39 # if defined(VBOX) && defined(HOST_BSD) 36 # if defined(VBOX) && defined(HOST_BSD) /* Some defines which only apply to *BSD */ 40 37 # define lrintl(f) ((int32_t)rint(f)) 41 38 # define llrintl(f) ((int64_t)rint(f)) … … 374 371 float64 float64_round_to_int( float64 a STATUS_PARAM ) 375 372 { 376 #if defined(__arm__)377 switch(STATUS(float_rounding_mode)) {378 default:379 case float_round_nearest_even:380 asm("rndd %0, %1" : "=f" (a) : "f"(a));381 break;382 case float_round_down:383 asm("rnddm %0, %1" : "=f" (a) : "f"(a));384 break;385 case float_round_up:386 asm("rnddp %0, %1" : "=f" (a) : "f"(a));387 break;388 case float_round_to_zero:389 asm("rnddz %0, %1" : "=f" (a) : "f"(a));390 break;391 }392 #else393 373 return rint(a); 394 #endif395 374 } 396 375
Note:
See TracChangeset
for help on using the changeset viewer.