aboutsummaryrefslogtreecommitdiff
path: root/lib/builtins/negsf2.c
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-05-16 19:47:19 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-05-16 19:47:19 +0000
commitf9102cdabba485d415359124bece145f4a7d9089 (patch)
tree8eb48238e74ed80be2c4feea51adc53445040d76 /lib/builtins/negsf2.c
parent2109e2e4181555140883e9ec46807746a0eabad2 (diff)
Notes
Diffstat (limited to 'lib/builtins/negsf2.c')
-rw-r--r--lib/builtins/negsf2.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/builtins/negsf2.c b/lib/builtins/negsf2.c
index 29c17be4145fb..f90b343356806 100644
--- a/lib/builtins/negsf2.c
+++ b/lib/builtins/negsf2.c
@@ -14,9 +14,14 @@
#define SINGLE_PRECISION
#include "fp_lib.h"
-ARM_EABI_FNALIAS(fneg, negsf2)
-
COMPILER_RT_ABI fp_t
__negsf2(fp_t a) {
return fromRep(toRep(a) ^ signBit);
}
+
+#if defined(__ARM_EABI__)
+AEABI_RTABI fp_t __aeabi_fneg(fp_t a) {
+ return __negsf2(a);
+}
+#endif
+