[libc-commits] [libc] [libc][math] Fix build failures caused by constexpr (PR #181920)

Muhammad Bassiouni via libc-commits libc-commits at lists.llvm.org
Tue Feb 17 14:03:52 PST 2026


https://github.com/bassiounix created https://github.com/llvm/llvm-project/pull/181920

None

>From 018e34354f40f184576b28d1a9db2b585892d1ef Mon Sep 17 00:00:00 2001
From: bassiounix <muhammad.m.bassiouni at gmail.com>
Date: Wed, 18 Feb 2026 00:03:01 +0200
Subject: [PATCH] [libc][math] Fix build failures caused by constexpr

---
 libc/src/__support/math/bf16divf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/src/__support/math/bf16divf.h b/libc/src/__support/math/bf16divf.h
index ad5cb57aac828..0e201f8a124ed 100644
--- a/libc/src/__support/math/bf16divf.h
+++ b/libc/src/__support/math/bf16divf.h
@@ -17,7 +17,7 @@ namespace LIBC_NAMESPACE_DECL {
 
 namespace math {
 
-LIBC_INLINE constexpr bfloat16 bf16divf(float x, float y) {
+LIBC_INLINE bfloat16 bf16divf(float x, float y) {
   return fputil::generic::div<bfloat16>(x, y);
 }
 



More information about the libc-commits mailing list