about summary refs log tree commit diff
path: root/sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c')
-rw-r--r--sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c b/sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
index bb9bac0db7..2579600aa2 100644
--- a/sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
+++ b/sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
@@ -3,14 +3,17 @@
 #define weak_alias(n,a)
 #include <math/w_remainderl_compat.c>
 #if LIBM_SVID_COMPAT
-# if !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)
 /* If ldbl-opt is used without special versioning for remainderl being
    required, the generic code does not define remainderl because of
-   the undefine and redefine of weak_alias above.  */
-#  undef weak_alias
-#  define weak_alias(name, aliasname) _weak_alias (name, aliasname)
+   the undefine and redefine of weak_alias above.  In any case, that
+   undefine and redefine mean _FloatN / _FloatNx aliases have not been
+   defined.  */
+# undef weak_alias
+# define weak_alias(name, aliasname) _weak_alias (name, aliasname)
+# if !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)
 weak_alias (__remainderl, remainderl)
 # endif
 strong_alias (__remainderl, __dreml)
 long_double_symbol (libm, __dreml, dreml);
+libm_alias_ldouble_other (__remainder, remainder)
 #endif