VirtualBox

Changeset 18922 in vbox for trunk/src/recompiler_new


Ignore:
Timestamp:
Apr 15, 2009 9:21:43 PM (16 years ago)
Author:
vboxsync
Message:

Recompiler: Rework 45976 to reduce the chance of breaking Solaris

File:
1 edited

Legend:

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

    r18914 r18922  
    2424
    2525#if defined(_BSD) || (defined(HOST_SOLARIS) && HOST_SOLARIS < 10)
    26 #define rintl(d)                ((int32_t)rint(d))
    2726#define lrint(d)                ((int32_t)rint(d))
    2827#define llrint(d)               ((int64_t)rint(d))
    29 #define lrintl(f)               ((int32_t)rint(f))
    30 #define llrintl(f)              ((int64_t)rint(f))
     28#define lrintf(f)               ((int32_t)rint(f))
     29#define llrintf(f)              ((int64_t)rint(f))
    3130#define sqrtf(f)                ((float)sqrt(f))
    3231#define remainderf(fa, fb)      ((float)remainder(fa, fb))
    3332#define rintf(f)                ((float)rint(f))
    34 #define sqrtl(f)        (sqrt(f))
    35 #define remainderl(fa, fb)   (remainder(fa, fb))
     33/* Some defines which only apply to *BSD */
     34# if defined(_BSD)
     35#  define lrintl(f)            ((int32_t)rint(f))
     36#  define llrintl(f)           ((int64_t)rint(f))
     37#  define rintl(d)             ((int32_t)rint(d))
     38#  define sqrtl(f)             (sqrt(f))
     39#  define remainderl(fa, fb)   (remainder(fa, fb))
     40# endif
    3641#endif
    3742
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