[cfp-interest 3644] SNAN* in math.h

Paul Zimmermann Paul.Zimmermann@inria.fr
Fri Oct 10 07:30:21 GMT 2025


       Hi,

I forward a message on the CFP-interest list.

Apparently the SNAN* macros are still in math.h,
and should be moved to float.h.

$ grep "e SNAN" math/math.h
#  define SNANF (__builtin_nansf (""))
#  define SNAN (__builtin_nans (""))
#  define SNANL (__builtin_nansl (""))
# define SNANF16 (__builtin_nansf16 (""))
# define SNANF32 (__builtin_nansf32 (""))
# define SNANF64 (__builtin_nansf64 (""))
# define SNANF128 (__builtin_nansf128 (""))
# define SNANF32X (__builtin_nansf32x (""))
# define SNANF64X (__builtin_nansf64x (""))
# define SNANF128X (__builtin_nansf128x (""))

Cf https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2476.pdf

Paul

> From: "Fred J. Tydeman" <tydeman@tybor.com>
> Date: Fri, 10 Oct 2025 10:41:14 +0900 (JST)
> 
> gcc/glibc still have the SNAN* macros in math.h
> as well as the *SNAN macros in float.h
> 
> WG14 / N2476 is the document that moved and renamed them.
> 
> Should we have a new document (or an update to an existing document)
> saying that the SNAN* forms are gone?
> 
> 
> 
> ---
> Fred J. Tydeman        Tydeman Consulting
> tydeman@tybor.com      Testing, numerics, programming
> +1 (702) 608-6093      Vice-chair of INCITS/C (ANSI "C")
> Sample C17+FPCE tests: http://www.tybor.com
> Savers sleep well, investors eat well, spenders work forever.
> 
> _______________________________________________
> cfp-interest mailing list
> cfp-interest@oakapple.net
> http://mailman.oakapple.net/mailman/listinfo/cfp-interest
> 


More information about the Libc-alpha mailing list