Replace M_SUF (M_LN2) with M_MLIT (M_LN2)
Commit Message
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.
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).
Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
---
math/e_exp2_template.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Fri, 27 Apr 2018, Tulio Magno Quites Machado Filho wrote:
> 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.
>
> 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).
OK.
Joseph Myers <joseph@codesourcery.com> writes:
> On Fri, 27 Apr 2018, Tulio Magno Quites Machado Filho wrote:
>
>> 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.
>>
>> 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).
>
> OK.
Pushed as 33927914420a.
Thanks!
@@ -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;
}