* [PATCH] Replace M_SUF (M_LN2) with M_MLIT (M_LN2)
@ 2018-04-27 17:03 Tulio Magno Quites Machado Filho
2018-04-27 19:17 ` Joseph Myers
0 siblings, 1 reply; 3+ messages in thread
From: Tulio Magno Quites Machado Filho @ 2018-04-27 17:03 UTC (permalink / raw
To: libc-alpha
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(-)
diff --git a/math/e_exp2_template.c b/math/e_exp2_template.c
index 5b82588c2a..94a21054c2 100644
--- a/math/e_exp2_template.c
+++ b/math/e_exp2_template.c
@@ -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;
}
--
2.14.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Replace M_SUF (M_LN2) with M_MLIT (M_LN2)
2018-04-27 17:03 [PATCH] Replace M_SUF (M_LN2) with M_MLIT (M_LN2) Tulio Magno Quites Machado Filho
@ 2018-04-27 19:17 ` Joseph Myers
2018-04-27 20:16 ` Tulio Magno Quites Machado Filho
0 siblings, 1 reply; 3+ messages in thread
From: Joseph Myers @ 2018-04-27 19:17 UTC (permalink / raw
To: Tulio Magno Quites Machado Filho; +Cc: libc-alpha
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 S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Replace M_SUF (M_LN2) with M_MLIT (M_LN2)
2018-04-27 19:17 ` Joseph Myers
@ 2018-04-27 20:16 ` Tulio Magno Quites Machado Filho
0 siblings, 0 replies; 3+ messages in thread
From: Tulio Magno Quites Machado Filho @ 2018-04-27 20:16 UTC (permalink / raw
To: libc-alpha
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!
--
Tulio Magno
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-27 20:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-27 17:03 [PATCH] Replace M_SUF (M_LN2) with M_MLIT (M_LN2) Tulio Magno Quites Machado Filho
2018-04-27 19:17 ` Joseph Myers
2018-04-27 20:16 ` Tulio Magno Quites Machado Filho
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).