2017-10-03 Joseph Myers <joseph@codesourcery.com>
+ * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
+ (modf): Define using libm_alias_double, only if [!__modf].
+ * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
+ <libm-alias-double.h>.
+ (modf): Define using libm_alias_double, only if [!__modf].
+ * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
+ compat symbol here.
+ * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
+ (weak_alias): Do not undefine and redefine.
+ (strong_alias): Likewise.
+ * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
+ (weak_alias): Likewise.
+ (strong_alias): Likewise.
+
* sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
(logb): Define using libm_alias_double, only if [!__logb].
* sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
static const double one = 1.0;
}
}
}
-weak_alias (__modf, modf)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__modf, __modfl)
-weak_alias (__modf, modfl)
+#ifndef __modf
+libm_alias_double (__modf, modf)
#endif
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
#include <stdint.h>
static const double one = 1.0;
return x;
}
}
-weak_alias (__modf, modf)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__modf, __modfl)
-weak_alias (__modf, modfl)
+#ifndef __modf
+libm_alias_double (__modf, modf)
#endif
#include <math_ldbl_opt.h>
#include <sysdeps/ieee754/dbl-64/s_modf.c>
-#if IS_IN (libm)
-# if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
-compat_symbol (libm, __modf, modfl, GLIBC_2_0);
-# endif
-#elif LONG_DOUBLE_COMPAT(libc, GLIBC_2_0)
+#if LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)
compat_symbol (libc, __modf, modfl, GLIBC_2_0);
#endif
#include <math.h>
#include <math_ldbl_opt.h>
-#undef weak_alias
-#define weak_alias(a,b)
-#undef strong_alias
-#define strong_alias(a,b)
-
#define __modf __modf_ppc32
#include <sysdeps/ieee754/dbl-64/s_modf.c>
#include <math.h>
#include <math_ldbl_opt.h>
-#undef weak_alias
-#define weak_alias(a,b)
-#undef strong_alias
-#define strong_alias(a,b)
-
#define __modf __modf_ppc64
#include <sysdeps/ieee754/dbl-64/s_modf.c>