diff options
author | Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> | 2018-04-27 09:56:35 -0300 |
---|---|---|
committer | Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> | 2018-04-27 17:11:29 -0300 |
commit | 06135c33b710c64334ff10d2fcc4780154b65776 (patch) | |
tree | 341d5296956fc67fcc4605c7c76724a2e25c03c1 /math/w_atanh_template.c | |
parent | 3a33b0696937d3c8324e517512f8dc952166a7ab (diff) | |
download | glibc-06135c33b710c64334ff10d2fcc4780154b65776.tar glibc-06135c33b710c64334ff10d2fcc4780154b65776.tar.gz glibc-06135c33b710c64334ff10d2fcc4780154b65776.tar.bz2 glibc-06135c33b710c64334ff10d2fcc4780154b65776.zip |
Replace M_SUF (fabs) with M_FABS
math-type-macros.h provides the macro M_FABS in order to reference
the correct fabs function for a specific type.
In most of the cases, M_FABS is identical to M_SUF (fabs), but that
may change in the future.
* math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
* math/w_asin_template.c: Likewise.
* math/w_atanh_template.c: Likewise.
Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Diffstat (limited to 'math/w_atanh_template.c')
-rw-r--r-- | math/w_atanh_template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/math/w_atanh_template.c b/math/w_atanh_template.c index d4b2838025..1e528256ff 100644 --- a/math/w_atanh_template.c +++ b/math/w_atanh_template.c @@ -29,9 +29,9 @@ FLOAT M_DECL_FUNC (__atanh) (FLOAT x) { - if (__glibc_unlikely (isgreaterequal (M_SUF (fabs) (x), M_LIT (1.0)))) + if (__glibc_unlikely (isgreaterequal (M_FABS (x), M_LIT (1.0)))) { - if (M_SUF (fabs) (x) == 1) + if (M_FABS (x) == 1) /* Pole error: atanh(|x|==1). */ __set_errno (ERANGE); else |