[libc-commits] [libc] [llvm] [libc][math] Refactor bf16divl to header-only (#181025) (PR #181535)

via libc-commits libc-commits at lists.llvm.org
Wed Feb 18 03:48:18 PST 2026


================
@@ -430,6 +430,16 @@ add_header_library(
 )
 
 
+add_header_library(
+  bf16divl
+  HDRS
+    bf16divl.h
+  DEPENDS
+    libc.src.__support.FPUtil.bfloat16
+    libc.src.__support.FPUtil.generic.div
+    libc.src.__support.macros.config
+)
----------------
AbdallahRashed wrote:

the cmake is correct, I updated  libc/src/__support/math/bf16divl.h

config .h is part of this target     libc.src.__support.macros.config
div.h includes [attributes.h] which I need for  LIBC_INLINE
bfloat16 comes from  #include "src/__support/FPUtil/bfloat16.h" which I included.


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


More information about the libc-commits mailing list