[libc-commits] [libc] [llvm] [libc][math] Move hypot to shared/math and make it constexpr (PR #177588)
Nico Weber via libc-commits
libc-commits at lists.llvm.org
Mon Jan 26 06:21:26 PST 2026
================
@@ -7,14 +7,16 @@
//===----------------------------------------------------------------------===//
#include "src/math/hypot.h"
-#include "src/__support/FPUtil/Hypot.h"
-#include "src/__support/common.h"
-#include "src/__support/macros/config.h"
+#include "src/__support/math/hypot.h"
+// #include "src/__support/FPUtil/Hypot.h"
+// #include "src/__support/common.h"
+// #include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, hypot, (double x, double y)) {
- return LIBC_NAMESPACE::fputil::hypot(x, y);
+ return math::hypot(x, y);
+ // return LIBC_NAMESPACE::fputil::hypot(x, y);
----------------
nico wrote:
remove comment
https://github.com/llvm/llvm-project/pull/177588
More information about the libc-commits
mailing list