VirtualBox

Ignore:
Timestamp:
Jun 29, 2011 4:01:23 PM (13 years ago)
Author:
vboxsync
Message:

recompiler: Merged in changes from 0.13.0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/fpu/softfloat-native.c

    r37675 r37689  
    1313    (defined(CONFIG_SOLARIS) && (CONFIG_SOLARIS_VERSION < 10 || CONFIG_SOLARIS_VERSION == 11)) /* VBOX adds sol 11 */
    1414    fpsetround(val);
    15 #elif defined(__arm__)
    16     /* nothing to do */
    1715#else
    1816    fesetround(val);
     
    3634#define remainderf(fa, fb)      ((float)remainder(fa, fb))
    3735#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 */
    4037#  define lrintl(f)            ((int32_t)rint(f))
    4138#  define llrintl(f)           ((int64_t)rint(f))
     
    374371float64 float64_round_to_int( float64 a STATUS_PARAM )
    375372{
    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 #else
    393373    return rint(a);
    394 #endif
    395374}
    396375
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette