Re: [PATCH] Libquadmath: add nansq() function

2022-01-06 Thread FX via Gcc-patches
Hi Joseph, > All targets with _Float128 should have __builtin_nansf128, since we have > DEF_GCC_FLOATN_NX_BUILTINS (BUILT_IN_NANS, "nans", NAN_TYPE, > ATTR_CONST_NOTHROW_NONNULL) > in builtins.def. Hum, I see, I didn’t know that version existed. To be honest, I find the “other built-ins” doc

Re: [PATCH] Libquadmath: add nansq() function

2022-01-04 Thread Joseph Myers
On Sat, 1 Jan 2022, FX via Gcc-patches wrote: > This patch adds nansq() to libquadmath, a function that returns a > signalling NaN. It is a need for full libgfortran support of signalling > NaNs, because not all targets that have _Float128 define a > __builtin_nanq() function. All targets

[PATCH] Libquadmath: add nansq() function

2021-12-31 Thread FX via Gcc-patches
Hi, This patch adds nansq() to libquadmath, a function that returns a signalling NaN. It is a need for full libgfortran support of signalling NaNs, because not all targets that have _Float128 define a __builtin_nanq() function. Bootstrapped and tested on x86_64-pc-gnu-linux and