diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-12-26 20:59:46 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-12-26 20:59:46 +0000 |
commit | d8478f94377c30b0c1fd017df878b0a40e2c6d45 (patch) | |
tree | 8f02c87bb22bffc9887e21546e1f485d544bc872 /lib/libcompiler_rt/fixunssfdi.c | |
parent | 0a06862e4c4f094c66df855ee85b0cdd097e0240 (diff) |
Update to compiler-rt 5.0.1.
ok kettenis@
Diffstat (limited to 'lib/libcompiler_rt/fixunssfdi.c')
-rw-r--r-- | lib/libcompiler_rt/fixunssfdi.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/libcompiler_rt/fixunssfdi.c b/lib/libcompiler_rt/fixunssfdi.c index f8ebab854f9..5d92245df0d 100644 --- a/lib/libcompiler_rt/fixunssfdi.c +++ b/lib/libcompiler_rt/fixunssfdi.c @@ -11,8 +11,6 @@ #define SINGLE_PRECISION #include "fp_lib.h" -ARM_EABI_FNALIAS(f2ulz, fixunssfdi) - #ifndef __SOFT_FP__ /* Support for systems that have hardware floating-point; can set the invalid * flag as a side-effect of computation. @@ -43,3 +41,15 @@ __fixunssfdi(fp_t a) { } #endif + +#if defined(__ARM_EABI__) +AEABI_RTABI du_int +#if defined(__SOFT_FP__) +__aeabi_f2ulz(fp_t a) { +#else +__aeabi_f2ulz(float a) { +#endif + return __fixunssfdi(a); +} +#endif + |