Skip to content

Commit d02c85a

Browse files
authored
[libc] Fix frexpf128 build failure. (#148332)
1 parent 1d57587 commit d02c85a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

libc/shared/math/frexpf128.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#ifdef LIBC_TYPES_HAS_FLOAT128
1515

1616
#include "shared/libc_common.h"
17+
#include "src/__support/math/frexpf128.h"
1718

1819
namespace LIBC_NAMESPACE_DECL {
1920
namespace shared {

libc/src/__support/FPUtil/ManipulationFunctions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace LIBC_NAMESPACE_DECL {
2929
namespace fputil {
3030

3131
template <typename T, cpp::enable_if_t<cpp::is_floating_point_v<T>, int> = 0>
32-
LIBC_INLINE T frexp(T x, int &exp) {
32+
LIBC_INLINE constexpr T frexp(T x, int &exp) {
3333
FPBits<T> bits(x);
3434
if (bits.is_inf_or_nan()) {
3535
#ifdef LIBC_FREXP_INF_NAN_EXPONENT

0 commit comments

Comments
 (0)