Use libm_alias_ldouble in sysdeps/x86_64/fpu.

This patch continues the preparation for additional _FloatN / _FloatNx
function aliases by using libm_alias_ldouble for sysdeps/x86_64/fpu
long double functions, so that they can have _Float64x aliases added
in future.

Tested for x86_64, including build-many-glibcs.py tests that installed
stripped shared libraries are unchanged by the patch.

	* sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
	[USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
	* sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
	(ceill): Define using libm_alias_ldouble.
	* sysdeps/x86_64/fpu/s_copysignl.S: Include
	<libm-alias-ldouble.h>.
	(copysignl): Define using libm_alias_ldouble.
	* sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
	(fabsl): Define using libm_alias_ldouble.
	* sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
	(floorl): Define using libm_alias_ldouble.
	* sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
	(fmaxl): Define using libm_alias_ldouble.
	* sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
	(fminl): Define using libm_alias_ldouble.
	* sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
	(llrintl): Define using libm_alias_ldouble.
	(lrintl): Likewise.
	* sysdeps/x86_64/fpu/s_nearbyintl.S: Include
	<libm-alias-ldouble.h>.
	(nearbyintl): Define using libm_alias_ldouble.
	* sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
	(truncl): Define using libm_alias_ldouble.
	* sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
	<libm-alias-ldouble.h>.
	(lrintl): Define using libm_alias_ldouble.
This commit is contained in:
Joseph Myers 2017-11-17 23:39:11 +00:00
parent 2ce30701e6
commit f58e5f4809
12 changed files with 50 additions and 12 deletions

View File

@ -1,5 +1,32 @@
2017-11-17 Joseph Myers <joseph@codesourcery.com>
* sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
[USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
* sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
(ceill): Define using libm_alias_ldouble.
* sysdeps/x86_64/fpu/s_copysignl.S: Include
<libm-alias-ldouble.h>.
(copysignl): Define using libm_alias_ldouble.
* sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
(fabsl): Define using libm_alias_ldouble.
* sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
(floorl): Define using libm_alias_ldouble.
* sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
(fmaxl): Define using libm_alias_ldouble.
* sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
(fminl): Define using libm_alias_ldouble.
* sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
(llrintl): Define using libm_alias_ldouble.
(lrintl): Likewise.
* sysdeps/x86_64/fpu/s_nearbyintl.S: Include
<libm-alias-ldouble.h>.
(nearbyintl): Define using libm_alias_ldouble.
* sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
(truncl): Define using libm_alias_ldouble.
* sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
<libm-alias-ldouble.h>.
(lrintl): Define using libm_alias_ldouble.
* sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
[USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
* sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.

View File

@ -22,6 +22,7 @@
* -- moshier@na-net.ornl.gov
*/
#include <libm-alias-ldouble.h>
#include <machine/asm.h>
#include <x86_64-math-asm.h>
@ -213,7 +214,7 @@ ENTRY(IEEE754_EXPL)
END(IEEE754_EXPL)
#ifdef USE_AS_EXPM1L
libm_hidden_def (__expm1l)
weak_alias (__expm1l, expm1l)
libm_alias_ldouble (__expm1, expm1)
#else
strong_alias (IEEE754_EXPL, EXPL_FINITE)
#endif

View File

@ -5,6 +5,7 @@
* Public domain.
*/
#include <libm-alias-ldouble.h>
#include <machine/asm.h>
@ -33,4 +34,4 @@ ENTRY(__ceill)
ret
END (__ceill)
weak_alias (__ceill, ceill)
libm_alias_ldouble (__ceil, ceil)

View File

@ -5,6 +5,7 @@
* Public domain.
*/
#include <libm-alias-ldouble.h>
#include <machine/asm.h>
RCSID("$NetBSD: $")
@ -19,4 +20,4 @@ ENTRY(__copysignl)
fldt 8(%rsp)
ret
END (__copysignl)
weak_alias (__copysignl, copysignl)
libm_alias_ldouble (__copysign, copysign)

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */
#include <sysdep.h>
#include <libm-alias-ldouble.h>
.text
ENTRY(__fabsl)
@ -24,4 +25,4 @@ ENTRY(__fabsl)
fabs
ret
END(__fabsl)
weak_alias (__fabsl, fabsl)
libm_alias_ldouble (__fabs, fabs)

View File

@ -5,6 +5,7 @@
* Public domain.
*/
#include <libm-alias-ldouble.h>
#include <machine/asm.h>
ENTRY(__floorl)
@ -32,4 +33,4 @@ ENTRY(__floorl)
ret
END (__floorl)
weak_alias (__floorl, floorl)
libm_alias_ldouble (__floor, floor)

View File

@ -18,6 +18,7 @@
<http://www.gnu.org/licenses/>. */
#include <sysdep.h>
#include <libm-alias-ldouble.h>
.text
ENTRY(__fmaxl)
@ -55,4 +56,4 @@ ENTRY(__fmaxl)
faddp
ret
END(__fmaxl)
weak_alias (__fmaxl, fmaxl)
libm_alias_ldouble (__fmax, fmax)

View File

@ -18,6 +18,7 @@
<http://www.gnu.org/licenses/>. */
#include <sysdep.h>
#include <libm-alias-ldouble.h>
.text
ENTRY(__fminl)
@ -55,4 +56,4 @@ ENTRY(__fminl)
faddp
ret
END(__fminl)
weak_alias (__fminl, fminl)
libm_alias_ldouble (__fmin, fmin)

View File

@ -18,6 +18,7 @@
<http://www.gnu.org/licenses/>. */
#include <sysdep.h>
#include <libm-alias-ldouble.h>
.text
ENTRY(__llrintl)
@ -27,8 +28,8 @@ ENTRY(__llrintl)
movq -8(%rsp),%rax
ret
END(__llrintl)
weak_alias (__llrintl, llrintl)
libm_alias_ldouble (__llrint, llrint)
#ifndef __ILP32__
strong_alias (__llrintl, __lrintl)
weak_alias (__llrintl, lrintl)
libm_alias_ldouble (__llrint, lrint)
#endif

View File

@ -4,6 +4,7 @@
*/
/* Adapted for use as nearbyint by Ulrich Drepper <drepper@cygnus.com>. */
#include <libm-alias-ldouble.h>
#include <machine/asm.h>
ENTRY(__nearbyintl)
@ -16,4 +17,4 @@ ENTRY(__nearbyintl)
fldenv -28(%rsp)
ret
END (__nearbyintl)
weak_alias (__nearbyintl, nearbyintl)
libm_alias_ldouble (__nearbyint, nearbyint)

View File

@ -17,6 +17,7 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
#include <libm-alias-ldouble.h>
#include <machine/asm.h>
ENTRY(__truncl)
@ -33,4 +34,4 @@ ENTRY(__truncl)
fldenv -28(%rsp)
ret
END(__truncl)
weak_alias (__truncl, truncl)
libm_alias_ldouble (__trunc, trunc)

View File

@ -18,6 +18,7 @@
<http://www.gnu.org/licenses/>. */
#include <sysdep.h>
#include <libm-alias-ldouble.h>
.text
ENTRY(__lrintl)
@ -27,4 +28,4 @@ ENTRY(__lrintl)
movl -4(%rsp),%eax
ret
END(__lrintl)
weak_alias (__lrintl, lrintl)
libm_alias_ldouble (__lrint, lrint)