[PATCH] Optimized generic expf and exp2f
Gabriel F. T. Gomes
gabriel@inconstante.eti.br
Thu Sep 7 13:04:00 GMT 2017
On Tue, 5 Sep 2017 20:45:44 +0000
Joseph Myers <joseph@codesourcery.com> wrote:
>On Tue, 5 Sep 2017, Szabolcs Nagy wrote:
>
>> +static inline int
>> +ieee_2008_issignaling (float x)
>> +{
>> + uint32_t ix = asuint (x);
>> + ix ^= 0x00400000; /* IEEE 754-2008 snan bit. */
>> + return 2 * ix > 2u * 0x7fc00000;
>> +}
>
>This doesn't seem to be used, but if you need issignaling tests in future
>functions (powf?), you need to respect HIGH_ORDER_BIT_IS_SET_FOR_SNAN from
>nan-high-order-bit.h.
Is that also valid for _Float128 (meaning that test-math-issignaling.cc
needs to check for that, as well)? It was my understanding that it isn't.
More information about the Libc-alpha
mailing list