Skip to content

Commit 77a9d21

Browse files
committed
make fputil::frexp constexpr
1 parent adce347 commit 77a9d21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)