diff options
author | 2017-12-26 20:59:44 +0000 | |
---|---|---|
committer | 2017-12-26 20:59:44 +0000 | |
commit | c72a1c0960669bfd1eb87723f902bc05ee727707 (patch) | |
tree | 46e715b14e68651d2b18adda557278098e9bb0d4 /lib/libcompiler_rt/fixdfdi.c | |
parent | Cherry-pick a change from LLVM that marks specific pseudo memory (diff) | |
download | wireguard-openbsd-c72a1c0960669bfd1eb87723f902bc05ee727707.tar.xz wireguard-openbsd-c72a1c0960669bfd1eb87723f902bc05ee727707.zip |
Update to compiler-rt 5.0.1.
ok kettenis@
Diffstat (limited to 'lib/libcompiler_rt/fixdfdi.c')
-rw-r--r-- | lib/libcompiler_rt/fixdfdi.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libcompiler_rt/fixdfdi.c b/lib/libcompiler_rt/fixdfdi.c index 14283ef42e6..31d76df2825 100644 --- a/lib/libcompiler_rt/fixdfdi.c +++ b/lib/libcompiler_rt/fixdfdi.c @@ -10,7 +10,6 @@ #define DOUBLE_PRECISION #include "fp_lib.h" -ARM_EABI_FNALIAS(d2lz, fixdfdi) #ifndef __SOFT_FP__ /* Support for systems that have hardware floating-point; can set the invalid @@ -44,3 +43,15 @@ __fixdfdi(fp_t a) { } #endif + +#if defined(__ARM_EABI__) +AEABI_RTABI di_int +#if defined(__SOFT_FP__) +__aeabi_d2lz(fp_t a) { +#else +__aeabi_d2lz(double a) { +#endif + return __fixdfdi(a); +} +#endif + |