This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Optimized generic expf and exp2f


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]