File tree 3 files changed +1
-20
lines changed
3 files changed +1
-20
lines changed Original file line number Diff line number Diff line change 9
9
#ifndef LLVM_LIBC_MACROS_MATH_MACROS_H
10
10
#define LLVM_LIBC_MACROS_MATH_MACROS_H
11
11
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
-
17
12
#include " limits-macros.h"
18
13
19
14
#define FP_NAN 0
62
57
// the identifier, even in places with parentheses where a function-like macro
63
58
// will be expanded (such as a function declaration in a C++ namespace).
64
59
60
+ // TODO: Move generic functional math macros to a separate header file.
65
61
#ifdef __cplusplus
66
62
67
63
template <typename T> inline constexpr bool isfinite (T x) {
@@ -84,10 +80,4 @@ template <typename T> inline constexpr bool isnan(T x) {
84
80
85
81
#endif
86
82
87
- #else // LIBC_FULL_BUILD
88
-
89
- #include < math.h>
90
-
91
- #endif // LIBC_FULL_BUILD
92
-
93
83
#endif // LLVM_LIBC_MACROS_MATH_MACROS_H
Original file line number Diff line number Diff line change @@ -318,7 +318,6 @@ add_fp_unittest(
318
318
HDRS
319
319
RoundEvenTest.h
320
320
DEPENDS
321
- libc.include .math
322
321
libc.src.math.roundeven
323
322
libc.src.__support.FPUtil.fp_bits
324
323
)
@@ -333,7 +332,6 @@ add_fp_unittest(
333
332
HDRS
334
333
RoundEvenTest.h
335
334
DEPENDS
336
- libc.include .math
337
335
libc.src.math.roundevenf
338
336
libc.src.__support.FPUtil.fp_bits
339
337
)
@@ -348,7 +346,6 @@ add_fp_unittest(
348
346
HDRS
349
347
RoundEvenTest.h
350
348
DEPENDS
351
- libc.include .math
352
349
libc.src.math.roundevenl
353
350
libc.src.__support.FPUtil.fp_bits
354
351
)
Original file line number Diff line number Diff line change @@ -382,7 +382,6 @@ add_fp_unittest(
382
382
HDRS
383
383
RoundEvenTest.h
384
384
DEPENDS
385
- libc.include .math
386
385
libc.src.math.roundeven
387
386
libc.src.__support.FPUtil.fp_bits
388
387
)
@@ -396,7 +395,6 @@ add_fp_unittest(
396
395
HDRS
397
396
RoundEvenTest.h
398
397
DEPENDS
399
- libc.include .math
400
398
libc.src.math.roundevenf
401
399
libc.src.__support.FPUtil.fp_bits
402
400
)
@@ -410,7 +408,6 @@ add_fp_unittest(
410
408
HDRS
411
409
RoundEvenTest.h
412
410
DEPENDS
413
- libc.include .math
414
411
libc.src.math.roundevenl
415
412
libc.src.__support.FPUtil.fp_bits
416
413
)
@@ -424,7 +421,6 @@ add_fp_unittest(
424
421
HDRS
425
422
RoundEvenTest.h
426
423
DEPENDS
427
- libc.include .math
428
424
libc.src.math.roundevenf128
429
425
libc.src.__support.FPUtil.fp_bits
430
426
)
@@ -2259,7 +2255,6 @@ if(NOT LIBC_TARGET_OS_IS_GPU)
2259
2255
HDRS
2260
2256
NextTowardTest.h
2261
2257
DEPENDS
2262
- libc.include .math
2263
2258
libc.src.math.nexttoward
2264
2259
libc.src.__support.FPUtil.basic_operations
2265
2260
libc.src.__support.FPUtil.fp_bits
@@ -2274,7 +2269,6 @@ if(NOT LIBC_TARGET_OS_IS_GPU)
2274
2269
HDRS
2275
2270
NextTowardTest.h
2276
2271
DEPENDS
2277
- libc.include .math
2278
2272
libc.src.math.nexttowardf
2279
2273
libc.src.__support.FPUtil.basic_operations
2280
2274
libc.src.__support.FPUtil.fp_bits
You can’t perform that action at this time.
0 commit comments