]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Replace M_SUF (M_LN2) with M_MLIT (M_LN2)
authorTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Fri, 27 Apr 2018 12:56:48 +0000 (09:56 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Fri, 27 Apr 2018 20:13:10 +0000 (17:13 -0300)
According to math-type-macros.h, M_SUF should be used to paste the
suffix used by functions, while M_MLIT is used with macro constants.

* math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).

Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
ChangeLog
math/e_exp2_template.c

index 9a614182a6b34ca648d7adcfbeaa80d5d4a8b646..79bca1dae914e0f9c781d3990a4699fcbc272090 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2018-04-27  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
 
+       * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
+
        * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
        * math/w_asin_template.c: Likewise.
        * math/w_atanh_template.c: Likewise.
index 5b82588c2ab296d47874b396ec590bb93f3b5955..94a21054c2ce2acf7bdbfd4e1f679211bb36f6e4 100644 (file)
@@ -41,7 +41,7 @@ M_DECL_FUNC (__ieee754_exp2) (FLOAT x)
          if (M_FABS (fractx) < M_EPSILON / 4)
            result = M_SCALBN (1 + fractx, intx);
          else
-           result = M_SCALBN (M_EXP (M_SUF (M_LN2) * fractx), intx);
+           result = M_SCALBN (M_EXP (M_MLIT (M_LN2) * fractx), intx);
          math_check_force_underflow_nonneg (result);
          return result;
        }