VirtualBox

Changeset 18914 in vbox for trunk/src/recompiler_new/fpu


Ignore:
Timestamp:
Apr 15, 2009 8:48:56 PM (16 years ago)
Author:
vboxsync
Message:

Recompiler: Make the recompiler work on FreeBSD (some math functions have a different name)

File:
1 edited

Legend:

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

    r13384 r18914  
    2424
    2525#if defined(_BSD) || (defined(HOST_SOLARIS) && HOST_SOLARIS < 10)
     26#define rintl(d)                ((int32_t)rint(d))
    2627#define lrint(d)                ((int32_t)rint(d))
    2728#define llrint(d)               ((int64_t)rint(d))
    28 #define lrintf(f)               ((int32_t)rint(f))
    29 #define llrintf(f)              ((int64_t)rint(f))
     29#define lrintl(f)               ((int32_t)rint(f))
     30#define llrintl(f)              ((int64_t)rint(f))
    3031#define sqrtf(f)                ((float)sqrt(f))
    3132#define remainderf(fa, fb)      ((float)remainder(fa, fb))
    3233#define rintf(f)                ((float)rint(f))
     34#define sqrtl(f)        (sqrt(f))
     35#define remainderl(fa, fb)   (remainder(fa, fb))
    3336#endif
    3437
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