mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 19:07:53 +08:00
[libc] Fix frexpf128 build failure. (#148332)
This commit is contained in:
committed by
GitHub
parent
1d5758705d
commit
d02c85a29b
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user