| Issue |
185232
|
| Summary |
[libc][math] Tracking Issue - Refactor internal utils to be `constexpr` compatible with `long double` on Linux X87 platform
|
| Labels |
metaissue,
libc
|
| Assignees |
|
| Reporter |
bassiounix
|
On the current effort to make `constexpr` compatible math functions we have several build errors with the current state of the code related to a mismatch in the size of `long double` on Linux X87 and the internal representation bits. This causes alignment issues when using `__builtin_bit_cast` causing undefined behavior and refusal in constant evaluation at compile time.
A possible solution is to use software `float80` as internal representation for all desired targets.
---
Source:
- RFC: https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450
- GSoC26 `float80/128` Project: https://llvm.org/OpenProjects.html#enable_float80_float128_for_unsupported_target
Resources:
- https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/p3969r0.html
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs