[libc-commits] [libc] [llvm] [libc][math] Refactor tanhf16 implementation to header-only in src/__support/math folder. (PR #178645)

Muhammad Bassiouni via libc-commits libc-commits at lists.llvm.org
Mon Feb 9 06:39:44 PST 2026


================
@@ -1568,3 +1568,22 @@ add_header_library(
     libc.src.__support.FPUtil.polyeval
     libc.src.__support.macros.optimization
 )
+
+add_header_library(
+  tanhf16
+  HDRS
+    tanhf16.h
+  DEPENDS
+    libc.hdr.fenv_macros
+    libc.src.__support.CPP.array
+    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.nearest_integer
+    libc.src.__support.FPUtil.polyeval
+    libc.src.__support.FPUtil.rounding_mode
+    libc.src.__support.macros.optimization
+    libc.src.__support.math.expxf16_utils
----------------
bassiounix wrote:

make it
```suggestion
    .expxf16_utils
```
and move it to be the first

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


More information about the libc-commits mailing list