glibc/sysdeps/sparc/sparc64/fpu/multiarch
Joseph Myers 7abf97bed9 Use trunc functions not __trunc functions in glibc libm.
Continuing the move to use, within libm, public names for libm
functions that can be inlined as built-in functions on many
architectures, this patch moves calls to __trunc functions to call the
corresponding trunc names instead, with asm redirection to __trunc
when the calls are not inlined.

Tested for x86_64, and with build-many-glibcs.py.

	* include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
	__FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
	using MATH_REDIRECT.
	* sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
	header inclusion.
	* sysdeps/aarch64/fpu/s_truncf.c: Likewise.
	* sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
	* sysdeps/ieee754/float128/s_truncf128.c: Likewise.
	* sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
	* sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
	* sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
	* sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
	* sysdeps/riscv/rvf/s_truncf.c: Likewise.
	* sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
	* sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
	* sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
	* sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
	* sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
	* sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
	(ceil): Redirect to __ceil.
	(floor): Redirect to __floor.
	(trunc): Redirect to __trunc.
	(__truncl): Call trunc instead of __trunc.
	* sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
	Remove macro.
	[_ARCH_PWR5X] (__truncf): Likewise.
	* sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
	trunc functions instead of __trunc variants.
	* sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
	Likewise.
	* sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
	Likewise.
	* sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
	Likewise.
	* sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
	Likewise.
2018-09-20 21:11:10 +00:00
..
Makefile sparc: refactor sparc64 rint{f} selector to C 2017-11-29 16:22:21 -02:00
s_ceil-generic.c sparc: Assume VIS3 support 2017-11-29 08:18:00 -02:00
s_ceil-vis3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_ceil.c Use ceil functions not __ceil functions in glibc libm. 2018-09-17 20:42:06 +00:00
s_ceilf-generic.c sparc: Assume VIS3 support 2017-11-29 08:18:00 -02:00
s_ceilf-vis3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_ceilf.c Use ceil functions not __ceil functions in glibc libm. 2018-09-17 20:42:06 +00:00
s_finite-generic.S sparc: refactor sparc64 finite{f} selector to C 2017-11-29 16:22:20 -02:00
s_finite-vis3.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_finite.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_finitef-generic.S sparc: refactor sparc64 finite{f} selector to C 2017-11-29 16:22:20 -02:00
s_finitef-vis3.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_finitef.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_floor-generic.c sparc: Assume VIS3 support 2017-11-29 08:18:00 -02:00
s_floor-vis3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_floor.c Use floor functions not __floor functions in glibc libm. 2018-09-14 13:09:01 +00:00
s_floorf-generic.c sparc: Assume VIS3 support 2017-11-29 08:18:00 -02:00
s_floorf-vis3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_floorf.c Use floor functions not __floor functions in glibc libm. 2018-09-14 13:09:01 +00:00
s_fma-generic.c sparc: Assume VIS3 support 2017-11-29 08:18:00 -02:00
s_fma-vis3.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_fma.c Use libm_alias_double for sparc. 2017-11-29 23:40:07 +00:00
s_fmaf-generic.c sparc: Assume VIS3 support 2017-11-29 08:18:00 -02:00
s_fmaf-vis3.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_fmaf.c Use libm_alias_float for sparc. 2017-11-30 00:30:40 +00:00
s_isinf-generic.S sparc: refactor sparc64 isinf{f} selector to C 2017-11-29 16:22:20 -02:00
s_isinf-vis3.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_isinf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_isinff-generic.S sparc: refactor sparc64 isinf{f} selector to C 2017-11-29 16:22:20 -02:00
s_isinff-vis3.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_isinff.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_isnan-generic.S sparc: refactor sparc64 isnan{f} selector to C 2017-11-29 16:22:15 -02:00
s_isnan-vis3.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_isnan.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_isnanf-generic.S sparc: refactor sparc64 isnan{f} selector to C 2017-11-29 16:22:15 -02:00
s_isnanf-vis3.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_isnanf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_lrint-generic.S sparc: refactor sparc64 lrint{f} selector to C 2017-11-29 16:22:21 -02:00
s_lrint-vis3.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_lrint.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_lrintf-generic.S sparc: refactor sparc64 lrint{f} selector to C 2017-11-29 16:22:21 -02:00
s_lrintf-vis3.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_lrintf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_nearbyint-generic.S sparc: refactor sparc64 nearbyint{f} selector to C 2017-11-29 16:22:20 -02:00
s_nearbyint-vis3.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_nearbyint.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_nearbyintf-generic.S sparc: refactor sparc64 nearbyint{f} selector to C 2017-11-29 16:22:20 -02:00
s_nearbyintf-vis3.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_nearbyintf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_rint-generic.S sparc: refactor sparc64 rint{f} selector to C 2017-11-29 16:22:21 -02:00
s_rint-vis3.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_rint.c Use rint functions not __rint functions in glibc libm. 2018-09-14 13:10:39 +00:00
s_rintf-generic.S sparc: refactor sparc64 rint{f} selector to C 2017-11-29 16:22:21 -02:00
s_rintf-vis3.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_rintf.c Use rint functions not __rint functions in glibc libm. 2018-09-14 13:10:39 +00:00
s_signbit-generic.S sparc: refactor sparc64 signbit{f} selector to C 2017-11-29 16:21:27 -02:00
s_signbit-vis3.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_signbit.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_signbitf-generic.S sparc: refactor sparc64 signbit{f} selector to C 2017-11-29 16:21:27 -02:00
s_signbitf-vis3.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_signbitf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_trunc-generic.c sparc: Assume VIS3 support 2017-11-29 08:18:00 -02:00
s_trunc-vis3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_trunc.c Use trunc functions not __trunc functions in glibc libm. 2018-09-20 21:11:10 +00:00
s_truncf-generic.c sparc: Assume VIS3 support 2017-11-29 08:18:00 -02:00
s_truncf-vis3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_truncf.c Use trunc functions not __trunc functions in glibc libm. 2018-09-20 21:11:10 +00:00