]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Replace M_SUF (fabs) with M_FABS
authorTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Fri, 27 Apr 2018 12:56:35 +0000 (09:56 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Fri, 27 Apr 2018 20:11:29 +0000 (17:11 -0300)
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>
ChangeLog
math/w_acos_template.c
math/w_asin_template.c
math/w_atanh_template.c

index 5f2c1d1b042f904bb55a809a4677023b0ef18f54..9a614182a6b34ca648d7adcfbeaa80d5d4a8b646 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 0861e9fbea1fd9cbc4494b4be3950c44dd652f92..76537b27dec4bacf2b418f235d9c7dc9a9250550 100644 (file)
@@ -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);
index a960a92e17e7123e7d7f42971c9cb81e9801cbc1..9487ada6abe36af3878655af9deab47b4413e757 100644 (file)
@@ -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);
index d4b2838025b7867f003ee1dd793cf9e3c9e6e753..1e528256ff24a6b3f7f26f0a6fa09012350930a0 100644 (file)
@@ -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