[libc-commits] [libc] [llvm] [libc][math] Move hypot to shared/math and make it constexpr (PR #177588)

Chinmay Ingle via libc-commits libc-commits at lists.llvm.org
Tue Feb 3 06:01:30 PST 2026


================
@@ -1082,6 +1082,15 @@ add_header_library(
     libc.src.__support.macros.optimization
 )
 
+add_header_library(
+  hypot
+  HDRS
+    hypot.h
+  DEPENDS
+    libc.src.__support.common
+    libc.src.__support.FPUtil.hypot
----------------
chinmayingle wrote:

`#include "src/__support/FPUtil/Hypot.h"
#include "src/__support/common.h"
#include "src/__support/macros/config.h"`
these 3 include files i have added as dependencies 
like this 
`    libc.src.__support.common
    libc.src.__support.macros.config
    libc.src.__support.FPUtil.hypot`

I am not sure what changes is supposed to be done here


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


More information about the libc-commits mailing list