[libc-commits] [libc] [llvm] [libc][math] Refactor logf16 to header-only shared math (PR #175408)

cpist via libc-commits libc-commits at lists.llvm.org
Tue Jan 20 04:13:02 PST 2026


================
@@ -595,20 +595,40 @@ add_header_library(
 )
 
 add_header_library(
-  frexpf128
+  fsqrt
   HDRS
-    frexpf128.h
+    fsqrt.h
   DEPENDS
-    libc.src.__support.macros.properties.types
-    libc.src.__support.FPUtil.manipulation_functions
+    libc.src.__support.FPUtil.generic.sqrt
 )
 
 add_header_library(
-  fsqrt
+  logf16
   HDRS
-    fsqrt.h
+    logf16.h
   DEPENDS
-    libc.src.__support.FPUtil.generic.sqrt
+    .expxf16_utils
+    libc.hdr.errno_macros
+    libc.hdr.fenv_macros
+    libc.src.__support.common
+    libc.src.__support.FPUtil.cast
+    libc.src.__support.FPUtil.except_value_utils
+    libc.src.__support.FPUtil.fenv_impl
+    libc.src.__support.FPUtil.fp_bits
+    libc.src.__support.FPUtil.multiply_add
+    libc.src.__support.FPUtil.poly_eval
+    libc.src.__support.macros.config
+    libc.src.__support.macros.optimization
+    libc.src.__support.macros.properties.cpu_features
+)
+
+add_header_library(
+  frexpf128
+  HDRS
+    frexpf128.h
+  DEPENDS
+    libc.src.__support.macros.properties.types
+    libc.src.__support.FPUtil.manipulation_functions
----------------
cpist wrote:

I'm not sure why this occurred.
Since add_header_library entries are not strictly in alphabetical order, I have placed it between fsqrt and frexpf128.

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


More information about the libc-commits mailing list