Skip to content

Commit c94d5c0

Browse files
committed
Sync and remove LIBC_FULL_BUILD check in math-macros.h.
1 parent 7cd02e4 commit c94d5c0

File tree

3 files changed

+1
-20
lines changed

3 files changed

+1
-20
lines changed

libc/include/llvm-libc-macros/math-macros.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
#ifndef LLVM_LIBC_MACROS_MATH_MACROS_H
1010
#define LLVM_LIBC_MACROS_MATH_MACROS_H
1111

12-
// TODO: Remove this. This is a temporary fix for a downstream problem.
13-
// This cannot be left permanently since it would require downstream users to
14-
// define this macro.
15-
#ifdef LIBC_FULL_BUILD
16-
1712
#include "limits-macros.h"
1813

1914
#define FP_NAN 0
@@ -62,6 +57,7 @@
6257
// the identifier, even in places with parentheses where a function-like macro
6358
// will be expanded (such as a function declaration in a C++ namespace).
6459

60+
// TODO: Move generic functional math macros to a separate header file.
6561
#ifdef __cplusplus
6662

6763
template <typename T> inline constexpr bool isfinite(T x) {
@@ -84,10 +80,4 @@ template <typename T> inline constexpr bool isnan(T x) {
8480

8581
#endif
8682

87-
#else // LIBC_FULL_BUILD
88-
89-
#include <math.h>
90-
91-
#endif // LIBC_FULL_BUILD
92-
9383
#endif // LLVM_LIBC_MACROS_MATH_MACROS_H

libc/test/src/math/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ add_fp_unittest(
318318
HDRS
319319
RoundEvenTest.h
320320
DEPENDS
321-
libc.include.math
322321
libc.src.math.roundeven
323322
libc.src.__support.FPUtil.fp_bits
324323
)
@@ -333,7 +332,6 @@ add_fp_unittest(
333332
HDRS
334333
RoundEvenTest.h
335334
DEPENDS
336-
libc.include.math
337335
libc.src.math.roundevenf
338336
libc.src.__support.FPUtil.fp_bits
339337
)
@@ -348,7 +346,6 @@ add_fp_unittest(
348346
HDRS
349347
RoundEvenTest.h
350348
DEPENDS
351-
libc.include.math
352349
libc.src.math.roundevenl
353350
libc.src.__support.FPUtil.fp_bits
354351
)

libc/test/src/math/smoke/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,6 @@ add_fp_unittest(
382382
HDRS
383383
RoundEvenTest.h
384384
DEPENDS
385-
libc.include.math
386385
libc.src.math.roundeven
387386
libc.src.__support.FPUtil.fp_bits
388387
)
@@ -396,7 +395,6 @@ add_fp_unittest(
396395
HDRS
397396
RoundEvenTest.h
398397
DEPENDS
399-
libc.include.math
400398
libc.src.math.roundevenf
401399
libc.src.__support.FPUtil.fp_bits
402400
)
@@ -410,7 +408,6 @@ add_fp_unittest(
410408
HDRS
411409
RoundEvenTest.h
412410
DEPENDS
413-
libc.include.math
414411
libc.src.math.roundevenl
415412
libc.src.__support.FPUtil.fp_bits
416413
)
@@ -424,7 +421,6 @@ add_fp_unittest(
424421
HDRS
425422
RoundEvenTest.h
426423
DEPENDS
427-
libc.include.math
428424
libc.src.math.roundevenf128
429425
libc.src.__support.FPUtil.fp_bits
430426
)
@@ -2259,7 +2255,6 @@ if(NOT LIBC_TARGET_OS_IS_GPU)
22592255
HDRS
22602256
NextTowardTest.h
22612257
DEPENDS
2262-
libc.include.math
22632258
libc.src.math.nexttoward
22642259
libc.src.__support.FPUtil.basic_operations
22652260
libc.src.__support.FPUtil.fp_bits
@@ -2274,7 +2269,6 @@ if(NOT LIBC_TARGET_OS_IS_GPU)
22742269
HDRS
22752270
NextTowardTest.h
22762271
DEPENDS
2277-
libc.include.math
22782272
libc.src.math.nexttowardf
22792273
libc.src.__support.FPUtil.basic_operations
22802274
libc.src.__support.FPUtil.fp_bits

0 commit comments

Comments
 (0)