[PATCH v2 07/15] RISC-V: RV32F Support

Palmer Dabbelt palmer@dabbelt.com
Sun Dec 24 00:37:00 GMT 2017


On Wed, 20 Dec 2017 09:01:28 PST (-0800), joseph@codesourcery.com wrote:
> On Tue, 19 Dec 2017, Palmer Dabbelt wrote:
>
>> +  int nan = isnanf (x);
>
> I don't think any libm code should be using the legacy X/Open
> type-specific classification functions such as isnanf.  Use the C99
> type-generic macros such as isnan instead.
>
>> +  int nan = isnanf (x);
>
> Likewise, and again throughout this patch.

If I understand correctly, these are just

* fpclassify
* isnan
* isfinate
* isinf
* isnormal
* signbit

and there's no macros for

* fabs
* copysign

If so, I believe I've fixed them all.

Thanks!



More information about the Libc-alpha mailing list