[libcxx-commits] [libcxx] [libc++][math] Add `constexpr` to `std::fmax()` and `std::fmin()` (PR #222953)
Lucas Mellone via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Sep 22 06:48:55 PDT 2026
================
@@ -9,6 +9,12 @@
#ifndef _LIBCPP___MATH_MIN_MAX_H
#define _LIBCPP___MATH_MIN_MAX_H
+#if __has_constexpr_builtin(__builtin_fmax) || defined(_LIBCPP_COMPILER_GCC)
----------------
lknknm wrote:
The builtins are already available for GCC but not for Clang. I'll probably push a PR for it next so you can go ahead with this PR in the proper way.
https://github.com/llvm/llvm-project/pull/222953
More information about the libcxx-commits
mailing list