diff --git a/libc/shared/math/frexpf128.h b/libc/shared/math/frexpf128.h index 14554c7cb33a8..6b922bd731295 100644 --- a/libc/shared/math/frexpf128.h +++ b/libc/shared/math/frexpf128.h @@ -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 { diff --git a/libc/src/__support/FPUtil/ManipulationFunctions.h b/libc/src/__support/FPUtil/ManipulationFunctions.h index 9c10011ccd203..ea9ee5a57c36d 100644 --- a/libc/src/__support/FPUtil/ManipulationFunctions.h +++ b/libc/src/__support/FPUtil/ManipulationFunctions.h @@ -29,7 +29,7 @@ namespace LIBC_NAMESPACE_DECL { namespace fputil { template , int> = 0> -LIBC_INLINE T frexp(T x, int &exp) { +LIBC_INLINE constexpr T frexp(T x, int &exp) { FPBits bits(x); if (bits.is_inf_or_nan()) { #ifdef LIBC_FREXP_INF_NAN_EXPONENT