[libc-commits] [libc] [llvm] [libc][math] Refactor round-roundeven-trunc family to header-only (PR #195590)

Muhammad Bassiouni via libc-commits libc-commits at lists.llvm.org
Sun May 3 23:26:37 PDT 2026


================
@@ -2191,6 +2191,138 @@ add_header_library(
     libc.src.__support.macros.config
 )
 
+add_header_library(
+  round
+  HDRS
+    round.h
+  DEPENDS
+    libc.src.__support.FPUtil.nearest_integer_operations
+    libc.src.__support.macros.config
+  FLAGS
+    ROUND_OPT
+)
+
+add_header_library(
+  roundbf16
+  HDRS
+    roundbf16.h
+  DEPENDS
+    libc.src.__support.FPUtil.bfloat16
+    libc.src.__support.FPUtil.nearest_integer_operations
+    libc.src.__support.macros.config
+  FLAGS
+    ROUND_OPT
+)
+add_header_library(
----------------
bassiounix wrote:

```suggestion

add_header_library(
```

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


More information about the libc-commits mailing list