[libc] [llvm] [libc][math] Refactor frexpf128 implementation to header-only in src/… (PR #147822)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 11 07:43:14 PDT 2025


================
@@ -0,0 +1,29 @@
+//===-- Shared frexpf128 function -------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SHARED_MATH_FREXPF128_H
+#define LLVM_LIBC_SHARED_MATH_FREXPF128_H
+
+#include "include/llvm-libc-types/float128.h"
+
+#ifdef LIBC_TYPES_HAS_FLOAT128
+
+#include "shared/libc_common.h"
+#include "src/__support/macros/properties/complex_types.h"
----------------
lntue wrote:

why is this needed?

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


More information about the llvm-commits mailing list