[libc-commits] [libc] [libc][math] Add POSIX math constants to math.h header. (PR #149150)

via libc-commits libc-commits at lists.llvm.org
Wed Jul 16 13:08:07 PDT 2025


lntue wrote:

> What about `M_*l` and `M*_f` versions? glibc also defines `f32` and `f16` suffixed versions when the types are available.

I've added `f`, `l`, `f16`, and `f128` variants of the constants.  And we haven't investigated the situation with `_Float32` and `_Float64` type support yet.

https://github.com/llvm/llvm-project/pull/149150


More information about the libc-commits mailing list