Skip to content

Commit 08b1592

Browse files
committed
fix f128 check
1 parent 6e911b8 commit 08b1592

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

libc/shared/math/frexpf128.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@
1010
#define LLVM_LIBC_SHARED_MATH_FREXPF128_H
1111

1212
#include "include/llvm-libc-types/float128.h"
13+
14+
#ifdef LIBC_TYPES_HAS_FLOAT128
15+
1316
#include "shared/libc_common.h"
1417
#include "src/__support/macros/properties/complex_types.h"
1518

16-
#ifndef LIBC_TYPES_HAS_FLOAT128
17-
#error unsupported
18-
#endif
19-
2019
namespace LIBC_NAMESPACE_DECL {
2120
namespace shared {
2221

libc/src/__support/math/frexpf128.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111

1212
#include "include/llvm-libc-types/float128.h"
1313

14-
#ifndef LIBC_TYPES_HAS_FLOAT128
15-
#error unsupported
16-
#else
14+
#ifdef LIBC_TYPES_HAS_FLOAT128
1715

1816
#include "src/__support/FPUtil/ManipulationFunctions.h"
1917
#include "src/__support/common.h"

utils/bazel/llvm-project-overlay/libc/BUILD.bazel

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2756,7 +2756,6 @@ libc_math_function(
27562756
name = "expf",
27572757
additional_deps = [
27582758
":__support_math_expf",
2759-
":__support_math_frexpf128",
27602759
":errno",
27612760
],
27622761
)
@@ -3210,7 +3209,12 @@ libc_math_function(name = "frexpf")
32103209

32113210
libc_math_function(name = "frexpl")
32123211

3213-
libc_math_function(name = "frexpf128")
3212+
libc_math_function(
3213+
name = "frexpf128",
3214+
additional_deps = [
3215+
":__support_math_frexpf128",
3216+
]
3217+
)
32143218

32153219
libc_math_function(name = "frexpf16")
32163220

0 commit comments

Comments
 (0)