+2017-10-03 Joseph Myers <joseph@codesourcery.com>
+
+ * 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
+ <libm-alias-double.h>.
+ (logb): Define using libm_alias_double, only if [!__logb].
+ * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
+ * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
+ (weak_alias): Do not undefine and redefine.
+ (strong_alias): Likewise.
+ * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
+ (weak_alias): Likewise.
+ (strong_alias): Likewise.
+
2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
#include <fix-int-fp-convert-zero.h>
double
return 0.0;
return (double) (rix - 1023);
}
-weak_alias (__logb, logb)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__logb, __logbl) weak_alias (__logb, logbl)
+#ifndef __logb
+libm_alias_double (__logb, logb)
#endif
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
double
}
return (double) (ex - 1023);
}
-weak_alias (__logb, logb)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__logb, __logbl)
-weak_alias (__logb, logbl)
+#ifndef __logb
+libm_alias_double (__logb, logb)
#endif
+++ /dev/null
-#include <math_ldbl_opt.h>
-#include <sysdeps/ieee754/dbl-64/s_logb.c>
-#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
-compat_symbol (libm, __logb, logbl, GLIBC_2_0);
-#endif
#include <math.h>
-#undef weak_alias
-#define weak_alias(a, b)
-#undef strong_alias
-#define strong_alias(a, b)
-
#define __logb __logb_ppc32
#include <sysdeps/ieee754/dbl-64/s_logb.c>
#include <math.h>
-#undef weak_alias
-#define weak_alias(a, b)
-#undef strong_alias
-#define strong_alias(a, b)
-
#define __logb __logb_ppc64
#include <sysdeps/ieee754/dbl-64/s_logb.c>