[libc-commits] [libc] [libc][FPUtil] Make hardware helpers usable in constant expressions (PR #242283)

via libc-commits libc-commits at lists.llvm.org
Sun Nov 15 12:29:18 PST 2026


linisha15 wrote:

> I see a lot of repetition which could be avoided since we are narrowing the hardware code paths

should the arch-specific headers only expose the raw hardware functions (like internal::hardware_sqrt in x86_64/sqrt.h), with the is_constant_evaluated() dispatch written once in the top-level FEnvImpl.h / sqrt.h / nearest_integer.h?

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


More information about the libc-commits mailing list