mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
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>
This commit is contained in:
parent
3a33b06969
commit
06135c33b7
@ -1,3 +1,9 @@
|
||||
2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
|
||||
|
||||
* math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
|
||||
* math/w_asin_template.c: Likewise.
|
||||
* math/w_atanh_template.c: Likewise.
|
||||
|
||||
2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
|
||||
|
||||
* sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
|
||||
|
@ -29,7 +29,7 @@
|
||||
FLOAT
|
||||
M_DECL_FUNC (__acos) (FLOAT x)
|
||||
{
|
||||
if (__glibc_unlikely (isgreater (M_SUF (fabs) (x), M_LIT (1.0))))
|
||||
if (__glibc_unlikely (isgreater (M_FABS (x), M_LIT (1.0))))
|
||||
/* Domain error: acos(|x|>1). */
|
||||
__set_errno (EDOM);
|
||||
return M_SUF (__ieee754_acos) (x);
|
||||
|
@ -29,7 +29,7 @@
|
||||
FLOAT
|
||||
M_DECL_FUNC (__asin) (FLOAT x)
|
||||
{
|
||||
if (__glibc_unlikely (isgreater (M_SUF (fabs) (x), M_LIT (1.0))))
|
||||
if (__glibc_unlikely (isgreater (M_FABS (x), M_LIT (1.0))))
|
||||
/* Domain error: asin(|x|>1). */
|
||||
__set_errno (EDOM);
|
||||
return M_SUF (__ieee754_asin) (x);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user