[clang] [llvm] [C++23] [CLANG] Adding C++23 constexpr math functions: fmin, fmax and frexp. (PR #88978)
Hubert Tong via cfe-commits
cfe-commits at lists.llvm.org
Sun May 19 21:21:26 PDT 2024
================
@@ -3622,15 +3623,15 @@ def Fma : FPMathTemplate, LibBuiltin<"math.h"> {
def Fmax : FPMathTemplate, LibBuiltin<"math.h"> {
let Spellings = ["fmax"];
- let Attributes = [NoThrow, Const];
+ let Attributes = [NoThrow, Const, Constexpr];
----------------
hubert-reinterpretcast wrote:
Same comment re: making the non-prefixed versions `constexpr` only for C++23 and up.
https://github.com/llvm/llvm-project/pull/88978
More information about the cfe-commits
mailing list