Re: [PATCH] Add set/get functions for negative infinity in real.*

2022-08-26 Thread Aldy Hernandez via Gcc-patches
On Fri, Aug 26, 2022 at 6:34 PM Jeff Law wrote: > > > > On 8/26/2022 10:24 AM, Aldy Hernandez wrote: > > On Fri, Aug 26, 2022 at 6:08 PM Jeff Law via Gcc-patches > > wrote: > >> > >> > >> On 8/23/2022 4:33 AM, Aldy Hernandez via Gcc-patches wrote: > >>> For the frange implementation with endpoint

Re: [PATCH] Add set/get functions for negative infinity in real.*

2022-08-26 Thread Jeff Law via Gcc-patches
On 8/26/2022 10:25 AM, Aldy Hernandez wrote: On Fri, Aug 26, 2022 at 6:09 PM Jeff Law via Gcc-patches wrote: On 8/26/2022 9:43 AM, Aldy Hernandez via Gcc-patches wrote: Another real.* tweak. This time, adding a real_iszero() entry point to match the real_isnegzero. I could combine this

Re: [PATCH] Add set/get functions for negative infinity in real.*

2022-08-26 Thread Jeff Law via Gcc-patches
On 8/26/2022 10:24 AM, Aldy Hernandez wrote: On Fri, Aug 26, 2022 at 6:08 PM Jeff Law via Gcc-patches wrote: On 8/23/2022 4:33 AM, Aldy Hernandez via Gcc-patches wrote: For the frange implementation with endpoints I'm about to contribute, we need to set REAL_VALUE_TYPEs with negative infi

Re: [PATCH] Add set/get functions for negative infinity in real.*

2022-08-26 Thread Aldy Hernandez via Gcc-patches
On Fri, Aug 26, 2022 at 6:09 PM Jeff Law via Gcc-patches wrote: > > > > On 8/26/2022 9:43 AM, Aldy Hernandez via Gcc-patches wrote: > > Another real.* tweak. This time, adding a real_iszero() entry point > > to match the real_isnegzero. I could combine this patch with the > > negative infinity o

Re: [PATCH] Add set/get functions for negative infinity in real.*

2022-08-26 Thread Aldy Hernandez via Gcc-patches
r the sign if we can easily avoid it:-) I was trying to follow all the other functions in real.cc which have "int sign", though I suppose none of them are exported in the header file. OK pending tests? Aldy From 86664496f62f5d4d33da0347f5d5c017bd204513 Mon Sep 17 00:00:00 2001 From:

Re: [PATCH] Add set/get functions for negative infinity in real.*

2022-08-26 Thread Jeff Law via Gcc-patches
On 8/26/2022 9:43 AM, Aldy Hernandez via Gcc-patches wrote: Another real.* tweak. This time, adding a real_iszero() entry point to match the real_isnegzero. I could combine this patch with the negative infinity one in this thread if y'all would prefer. OK pending tests? p.s. I'd really lik

Re: [PATCH] Add set/get functions for negative infinity in real.*

2022-08-26 Thread Jeff Law via Gcc-patches
On 8/23/2022 4:33 AM, Aldy Hernandez via Gcc-patches wrote: For the frange implementation with endpoints I'm about to contribute, we need to set REAL_VALUE_TYPEs with negative infinity. The support is already there in real.cc, but it is awkward to get at. One could call real_inf() and then n

Re: [PATCH] Add set/get functions for negative infinity in real.*

2022-08-26 Thread Aldy Hernandez via Gcc-patches
Another real.* tweak. This time, adding a real_iszero() entry point to match the real_isnegzero. I could combine this patch with the negative infinity one in this thread if y'all would prefer. OK pending tests? p.s. I'd really like to go and benchmark all this real.* stuff (later), because I th

[PATCH] Add set/get functions for negative infinity in real.*

2022-08-23 Thread Aldy Hernandez via Gcc-patches
For the frange implementation with endpoints I'm about to contribute, we need to set REAL_VALUE_TYPEs with negative infinity. The support is already there in real.cc, but it is awkward to get at. One could call real_inf() and then negate the value, but I've added the ability to pass the sign argu