Skip to content

Commit 170a450

Browse files
committed
fix f128 check
1 parent 6ee0221 commit 170a450

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
@@ -2703,7 +2703,6 @@ libc_math_function(
27032703
name = "expf",
27042704
additional_deps = [
27052705
":__support_math_expf",
2706-
":__support_math_frexpf128",
27072706
":errno",
27082707
],
27092708
)
@@ -3156,7 +3155,12 @@ libc_math_function(name = "frexpf")
31563155

31573156
libc_math_function(name = "frexpl")
31583157

3159-
libc_math_function(name = "frexpf128")
3158+
libc_math_function(
3159+
name = "frexpf128",
3160+
additional_deps = [
3161+
":__support_math_frexpf128",
3162+
]
3163+
)
31603164

31613165
libc_math_function(name = "frexpf16")
31623166

0 commit comments

Comments
 (0)