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
..
2017-04-04 20:56:23 +02:00
2018-07-10 16:14:45 +02:00
2018-01-01 00:32:25 +00:00
2014-12-16 18:18:49 +00:00
2016-09-23 08:43:56 -04:00
2018-01-01 00:32:25 +00:00
2018-06-26 15:27:12 +02:00
2018-01-29 17:42:30 +01:00
2018-06-16 00:44:57 +02:00
2017-10-01 15:21:00 -07:00
2018-01-01 00:32:25 +00:00
2018-06-27 19:20:37 +02:00
2018-05-23 15:27:01 +02:00
2017-10-01 15:10:27 -07:00
2017-10-01 15:10:27 -07:00
2018-02-15 21:00:02 +00:00
2018-01-01 00:32:25 +00:00
2017-10-03 01:33:38 +02:00
2018-01-01 00:32:25 +00:00
2017-05-15 10:23:28 -03:00
2014-12-11 21:41:30 +00:00
2016-10-28 22:40:16 -04:00
2018-02-23 13:54:53 +00:00
2018-04-20 13:57:12 -03:00
2018-06-29 22:39:06 -04:00
2017-09-26 16:53:44 -07:00
2017-11-28 09:57:00 -08:00
2016-09-23 08:43:56 -04:00
2016-09-23 08:43:56 -04:00
2018-03-25 00:48:01 +01:00
2016-09-23 08:43:56 -04:00
2018-06-26 13:22:53 -03:00
2018-08-01 01:10:47 -04:00
2018-09-04 19:52:06 +00:00
2017-11-07 23:49:04 +00:00
2014-12-11 21:41:30 +00:00
2017-10-01 17:52:15 -07:00
2017-04-07 07:45:53 -04:00
2017-10-01 18:02:10 -07:00
2017-10-01 15:15:30 -07:00
2018-01-01 00:32:25 +00:00
2016-04-29 22:18:21 -04:00
2017-10-01 15:13:13 -07:00
2017-10-01 15:19:17 -07:00
2017-09-28 01:05:18 +02:00
2017-10-01 17:35:46 -07:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-09-19 17:09:08 -07:00
2018-02-28 14:16:21 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-06-29 22:39:06 -04:00
2016-09-23 08:43:56 -04:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2017-10-01 16:00:36 -07:00
2018-05-09 00:15:10 +00:00
2018-09-20 21:11:10 +00:00
2016-09-23 08:43:56 -04:00
2017-10-01 17:37:42 -07:00
2017-10-01 17:45:07 -07:00
2015-06-17 20:19:04 +00:00
2017-10-01 15:21:00 -07:00
2017-11-23 14:08:11 +01:00
2016-09-23 08:43:56 -04:00
2017-10-01 17:31:05 -07:00
2017-08-22 07:50:57 -07:00
2015-06-17 20:16:56 +00:00
2016-09-23 08:43:56 -04:00
2017-10-01 15:13:13 -07:00
2017-10-01 15:53:15 -07:00
2017-11-22 22:21:10 +00:00
2018-01-01 00:32:25 +00:00
2017-10-01 17:43:25 -07:00
2018-01-01 00:32:25 +00:00
2017-10-01 16:06:58 -07:00
2018-06-29 22:39:06 -04:00
2018-04-05 09:38:58 +02:00
2017-10-01 15:13:13 -07:00
2018-01-01 00:32:25 +00:00
2017-10-03 01:33:38 +02:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-07-24 14:06:45 -03:00
2016-09-23 08:43:56 -04:00
2018-08-31 18:04:32 -07:00
2018-02-26 18:17:47 +00:00
2018-06-26 15:27:12 +02:00
2017-10-01 17:48:24 -07:00
2018-09-19 17:09:08 -07:00
2016-09-23 08:43:56 -04:00
2018-06-08 17:27:46 -03:00
2017-10-01 15:51:56 -07:00
2018-01-01 00:32:25 +00:00
2018-09-19 17:09:08 -07:00
2017-11-21 08:43:23 +01:00
2017-06-08 13:58:17 -04:00