aboutsummaryrefslogtreecommitdiff
path: root/soft-fp/fmasf4.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-10-11 00:03:46 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-10-11 00:03:46 +0000
commit541f19baf89e16304cdc5c3c8826896d3d2a7034 (patch)
treeb18aa2196d98c99a8ec3b682b70acae1a5e6023e /soft-fp/fmasf4.c
parent24b6515d879c992be194ccd5323b8b780fa6d4d3 (diff)
downloadglibc-541f19baf89e16304cdc5c3c8826896d3d2a7034.tar
glibc-541f19baf89e16304cdc5c3c8826896d3d2a7034.tar.gz
glibc-541f19baf89e16304cdc5c3c8826896d3d2a7034.tar.bz2
glibc-541f19baf89e16304cdc5c3c8826896d3d2a7034.zip
Use libm_alias_* in soft-fp.
This patch makes the soft-fp implementations of fma functions use the libm_alias_* macros. Tested with build-many-glibcs.py that installed stripped shared libraries are unchanged by the patch. * soft-fp/fmadf4.c: Include <libm-alias-double.h>. [!__fma] (fma): Define using libm_alias_double. * soft-fp/fmasf4.c: Include <libm-alias-float.h>. [!__fmaf] (fmaf): Define using libm_alias_float. * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>. (fmal): Define using libm_alias_ldouble.
Diffstat (limited to 'soft-fp/fmasf4.c')
-rw-r--r--soft-fp/fmasf4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/soft-fp/fmasf4.c b/soft-fp/fmasf4.c
index 2d3120eda9..295223da50 100644
--- a/soft-fp/fmasf4.c
+++ b/soft-fp/fmasf4.c
@@ -27,6 +27,7 @@
#include <math.h>
#include <libc-diag.h>
+#include <libm-alias-float.h>
/* R_e is not set in cases where it is not used in packing, but the
compiler does not see that it is set in all cases where it is
@@ -63,5 +64,5 @@ __fmaf (float a, float b, float c)
DIAG_POP_NEEDS_COMMENT;
#ifndef __fmaf
-weak_alias (__fmaf, fmaf)
+libm_alias_float (__fma, fma)
#endif