+2017-10-03 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
+ (ceil): Define using libm_alias_double.
+ * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
+ (floor): Define using libm_alias_double.
+ * sysdeps/ieee754/dbl-64/s_llround.c: Include
+ <libm-alias-double.h>.
+ (llround): Define using libm_alias_double.
+ * sysdeps/ieee754/dbl-64/s_lround.c: Include
+ <libm-alias-double.h>.
+ (lround): Define using libm_alias_double.
+ * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
+ <libm-alias-double.h>.
+ (nearbyint): Define using libm_alias_double.
+ * sysdeps/ieee754/dbl-64/s_remquo.c: Include
+ <libm-alias-double.h>.
+ (remquo): Define using libm_alias_double.
+ * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
+ (rint): Define using libm_alias_double.
+ * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
+ (round): Define using libm_alias_double.
+ * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
+ (trunc): Define using libm_alias_double.
+ * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
+ <libm-alias-double.h>.
+ (ceil): Define using libm_alias_double.
+ * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
+ <libm-alias-double.h>.
+ (floor): Define using libm_alias_double.
+ * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
+ <libm-alias-double.h>.
+ (llround): Define using libm_alias_double.
+ [_LP64] (lround): Likewise.
+ * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
+ <libm-alias-double.h>.
+ [!_LP64] (lround): Define using libm_alias_double.
+ * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
+ <libm-alias-double.h>.
+ (nearbyint): Define using libm_alias_double.
+ * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
+ <libm-alias-double.h>.
+ (remquo): Define using libm_alias_double.
+ * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
+ <libm-alias-double.h>.
+ (rint): Define using libm_alias_double.
+ * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
+ <libm-alias-double.h>.
+ (round): Define using libm_alias_double.
+ * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
+ <libm-alias-double.h>.
+ (trunc): Define using libm_alias_double.
+ * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
+ * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
+ * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
+ * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
+ * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
+ * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
+ * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
+ * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
+ * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
+
2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
* math/w_remainder.c: New file.
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
double
__ceil (double x)
return x;
}
#ifndef __ceil
-weak_alias (__ceil, ceil)
-# ifdef NO_LONG_DOUBLE
-strong_alias (__ceil, __ceill)
-weak_alias (__ceil, ceill)
-# endif
+libm_alias_double (__ceil, ceil)
#endif
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
double
__floor (double x)
return x;
}
#ifndef __floor
-weak_alias (__floor, floor)
-# ifdef NO_LONG_DOUBLE
-strong_alias (__floor, __floorl)
-weak_alias (__floor, floorl)
-# endif
+libm_alias_double (__floor, floor)
#endif
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
#include <fix-fp-int-convert-overflow.h>
return sign * result;
}
-weak_alias (__llround, llround)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__llround, __llroundl)
-weak_alias (__llround, llroundl)
-#endif
+libm_alias_double (__llround, llround)
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
#include <fix-fp-int-convert-overflow.h>
return sign * result;
}
-weak_alias (__lround, lround)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__lround, __lroundl)
-weak_alias (__lround, lroundl)
-#endif
+libm_alias_double (__lround, lround)
#include <fenv.h>
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
static const double
TWO52[2] = {
libc_fesetenv (&env);
return t;
}
-weak_alias (__nearbyint, nearbyint)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__nearbyint, __nearbyintl)
-weak_alias (__nearbyint, nearbyintl)
-#endif
+libm_alias_double (__nearbyint, nearbyint)
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
static const double zero = 0.0;
x = -x;
return x;
}
-weak_alias (__remquo, remquo)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__remquo, __remquol)
-weak_alias (__remquo, remquol)
-#endif
+libm_alias_double (__remquo, remquo)
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
static const double
TWO52[2] = {
return w - TWO52[sx];
}
#ifndef __rint
-weak_alias (__rint, rint)
-# ifdef NO_LONG_DOUBLE
-strong_alias (__rint, __rintl)
-weak_alias (__rint, rintl)
-# endif
+libm_alias_double (__rint, rint)
#endif
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
double
INSERT_WORDS (x, i0, i1);
return x;
}
-weak_alias (__round, round)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__round, __roundl)
-weak_alias (__round, roundl)
-#endif
+libm_alias_double (__round, round)
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
double
return x;
}
#ifndef __trunc
-weak_alias (__trunc, trunc)
-# ifdef NO_LONG_DOUBLE
-strong_alias (__trunc, __truncl)
-weak_alias (__trunc, truncl)
-# endif
+libm_alias_double (__trunc, trunc)
#endif
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
double
__ceil(double x)
return x;
}
#ifndef __ceil
-weak_alias (__ceil, ceil)
-# ifdef NO_LONG_DOUBLE
-strong_alias (__ceil, __ceill)
-weak_alias (__ceil, ceill)
-# endif
+libm_alias_double (__ceil, ceil)
#endif
#include <math.h>
#include <math_private.h>
#include <stdint.h>
+#include <libm-alias-double.h>
/*
* floor(x)
return x;
}
#ifndef __floor
-weak_alias (__floor, floor)
-# ifdef NO_LONG_DOUBLE
-strong_alias (__floor, __floorl)
-weak_alias (__floor, floorl)
-# endif
+libm_alias_double (__floor, floor)
#endif
#include <sysdep.h>
#include <math_private.h>
+#include <libm-alias-double.h>
long long int
return sign * result;
}
-weak_alias (__llround, llround)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__llround, __llroundl)
-weak_alias (__llround, llroundl)
-#endif
+libm_alias_double (__llround, llround)
/* long has the same width as long long on LP64 machines, so use an alias. */
#undef lround
#undef __lround
#ifdef _LP64
strong_alias (__llround, __lround)
-weak_alias (__llround, lround)
-# ifdef NO_LONG_DOUBLE
-strong_alias (__llround, __lroundl)
-weak_alias (__llround, lroundl)
-# endif
+libm_alias_double (__lround, lround)
#endif
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
/* For LP64, lround is an alias for llround. */
#ifndef _LP64
return sign * result;
}
-weak_alias (__lround, lround)
-# ifdef NO_LONG_DOUBLE
-strong_alias (__lround, __lroundl)
-weak_alias (__lround, lroundl)
-# endif
+libm_alias_double (__lround, lround)
#endif
#include <fenv.h>
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
static const double
TWO52[2]={
libc_fesetenv (&env);
return t;
}
-weak_alias (__nearbyint, nearbyint)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__nearbyint, __nearbyintl)
-weak_alias (__nearbyint, nearbyintl)
-#endif
+libm_alias_double (__nearbyint, nearbyint)
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
#include <stdint.h>
static const double zero = 0.0;
x = -x;
return x;
}
-weak_alias (__remquo, remquo)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__remquo, __remquol)
-weak_alias (__remquo, remquol)
-#endif
+libm_alias_double (__remquo, remquo)
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
static const double
TWO52[2]={
return w-TWO52[sx];
}
#ifndef __rint
-weak_alias (__rint, rint)
-# ifdef NO_LONG_DOUBLE
-strong_alias (__rint, __rintl)
-weak_alias (__rint, rintl)
-# endif
+libm_alias_double (__rint, rint)
#endif
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
#include <stdint.h>
INSERT_WORDS64 (x, i0);
return x;
}
-weak_alias (__round, round)
-#ifdef NO_LONG_DOUBLE
-strong_alias (__round, __roundl)
-weak_alias (__round, roundl)
-#endif
+libm_alias_double (__round, round)
#include <math.h>
#include <math_private.h>
+#include <libm-alias-double.h>
double
return x;
}
#ifndef __trunc
-weak_alias (__trunc, trunc)
-# ifdef NO_LONG_DOUBLE
-strong_alias (__trunc, __truncl)
-weak_alias (__trunc, truncl)
-# endif
+libm_alias_double (__trunc, trunc)
#endif
+++ /dev/null
-#include <math_ldbl_opt.h>
-#include <sysdeps/ieee754/dbl-64/s_ceil.c>
-#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
-compat_symbol (libm, __ceil, ceill, GLIBC_2_0);
-#endif
+++ /dev/null
-#include <math_ldbl_opt.h>
-#include <sysdeps/ieee754/dbl-64/s_floor.c>
-#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
-compat_symbol (libm, __floor, floorl, GLIBC_2_0);
-#endif
+++ /dev/null
-#include <math_ldbl_opt.h>
-#include <sysdeps/ieee754/dbl-64/s_llround.c>
-#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
-compat_symbol (libm, __llround, llroundl, GLIBC_2_1);
-#endif
+++ /dev/null
-#include <math_ldbl_opt.h>
-#include <sysdeps/ieee754/dbl-64/s_lround.c>
-#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
-compat_symbol (libm, __lround, lroundl, GLIBC_2_1);
-#endif
+++ /dev/null
-#include <math_ldbl_opt.h>
-#include <sysdeps/ieee754/dbl-64/s_nearbyint.c>
-#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
-compat_symbol (libm, __nearbyint, nearbyintl, GLIBC_2_1);
-#endif
+++ /dev/null
-#include <math_ldbl_opt.h>
-#include <sysdeps/ieee754/dbl-64/s_remquo.c>
-#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
-compat_symbol (libm, __remquo, remquol, GLIBC_2_1);
-#endif
+++ /dev/null
-#include <math_ldbl_opt.h>
-#include <sysdeps/ieee754/dbl-64/s_rint.c>
-#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
-compat_symbol (libm, __rint, rintl, GLIBC_2_0);
-#endif
+++ /dev/null
-#include <math_ldbl_opt.h>
-#include <sysdeps/ieee754/dbl-64/s_round.c>
-#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
-compat_symbol (libm, __round, roundl, GLIBC_2_1);
-#endif
+++ /dev/null
-#include <math_ldbl_opt.h>
-#include <sysdeps/ieee754/dbl-64/s_trunc.c>
-#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
-compat_symbol (libm, __trunc, truncl, GLIBC_2_1);
-#endif