[libc] Fix frexpf128 build failure. (#148332)

This commit is contained in:
Muhammad Bassiouni
2025-07-12 06:55:09 +03:00
committed by GitHub
parent 1d5758705d
commit d02c85a29b
2 changed files with 2 additions and 1 deletions

View File

@@ -14,6 +14,7 @@
#ifdef LIBC_TYPES_HAS_FLOAT128
#include "shared/libc_common.h"
#include "src/__support/math/frexpf128.h"
namespace LIBC_NAMESPACE_DECL {
namespace shared {

View File

@@ -29,7 +29,7 @@ namespace LIBC_NAMESPACE_DECL {
namespace fputil {
template <typename T, cpp::enable_if_t<cpp::is_floating_point_v<T>, int> = 0>
LIBC_INLINE T frexp(T x, int &exp) {
LIBC_INLINE constexpr T frexp(T x, int &exp) {
FPBits<T> bits(x);
if (bits.is_inf_or_nan()) {
#ifdef LIBC_FREXP_INF_NAN_EXPONENT