about summary refs log tree commit diff
path: root/math/w_remainder.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2017-10-02 15:53:51 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2017-10-03 14:31:59 +0100
commitf275f64e7e97fcfe31280aabd0d64591c90bbe18 (patch)
tree5bdb85a9446861bd60aee1d55ef412693ced1091 /math/w_remainder.c
parentb8818ab592ce1012d481604284f66552bd451910 (diff)
downloadglibc-f275f64e7e97fcfe31280aabd0d64591c90bbe18.tar.gz
glibc-f275f64e7e97fcfe31280aabd0d64591c90bbe18.tar.xz
glibc-f275f64e7e97fcfe31280aabd0d64591c90bbe18.zip
fix drem symbol for static linking and new targets
The compat remainder code is no longer built for !LIBM_SVID_COMPAT targets,
but the legacy drem, dremf and dreml symbols should be still defined since
removing them may break existing code, so keep them as aliases in the
non-compat remainder code.

	* math/w_remainder.c: New file.
	* math/w_remainderf.c: New file.
	* math/w_remainderl.c: New file.
Diffstat (limited to 'math/w_remainder.c')
-rw-r--r--math/w_remainder.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/math/w_remainder.c b/math/w_remainder.c
new file mode 100644
index 0000000000..86d5da7a2f
--- /dev/null
+++ b/math/w_remainder.c
@@ -0,0 +1,8 @@
+#include <math-type-macros-double.h>
+#include <w_remainder_template.c>
+#if __USE_WRAPPER_TEMPLATE
+weak_alias (__remainder, drem)
+# ifdef NO_LONG_DOUBLE
+weak_alias (__remainder, dreml)
+# endif
+#endif