File tree Expand file tree Collapse file tree 6 files changed +27
-5
lines changed Expand file tree Collapse file tree 6 files changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -414,6 +414,9 @@ set(TARGET_LIBM_ENTRYPOINTS
414
414
libc.src.math.ilogb
415
415
libc.src.math.ilogbf
416
416
libc.src.math.ilogbl
417
+ libc.src.math.isnan
418
+ libc.src.math.isnanf
419
+ libc.src.math.isnanl
417
420
libc.src.math.llogb
418
421
libc.src.math.llogbf
419
422
libc.src.math.llogbl
Original file line number Diff line number Diff line change @@ -422,6 +422,9 @@ set(TARGET_LIBM_ENTRYPOINTS
422
422
libc.src.math.ilogb
423
423
libc.src.math.ilogbf
424
424
libc.src.math.ilogbl
425
+ libc.src.math.isnan
426
+ libc.src.math.isnanf
427
+ libc.src.math.isnanl
425
428
libc.src.math.ldexp
426
429
libc.src.math.ldexpf
427
430
libc.src.math.ldexpl
Original file line number Diff line number Diff line change @@ -440,6 +440,9 @@ set(TARGET_LIBM_ENTRYPOINTS
440
440
libc.src.math.ilogb
441
441
libc.src.math.ilogbf
442
442
libc.src.math.ilogbl
443
+ libc.src.math.isnan
444
+ libc.src.math.isnanf
445
+ libc.src.math.isnanl
443
446
libc.src.math.ldexp
444
447
libc.src.math.ldexpf
445
448
libc.src.math.ldexpl
Original file line number Diff line number Diff line change
1
+ //===-- Definition of function macros from math.h -------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ //
7
+ //===----------------------------------------------------------------------===//
8
+
9
+ #ifndef LLVM_LIBC_MACROS_MATH_FUNCTION_MACROS_H
10
+ #define LLVM_LIBC_MACROS_MATH_FUNCTION_MACROS_H
11
+
12
+ #define isfinite (x ) __builtin_isfinite(x)
13
+ #define isinf (x ) __builtin_isinf(x)
14
+ #define isnan (x ) __builtin_isnan(x)
15
+
16
+ #endif // LLVM_LIBC_MACROS_MATH_FUNCTION_MACROS_H
Original file line number Diff line number Diff line change 51
51
#define math_errhandling (MATH_ERRNO | MATH_ERREXCEPT)
52
52
#endif
53
53
54
- // TODO: Move generic functional math macros to a separate header file.
55
- #define isfinite (x ) __builtin_isfinite(x)
56
- #define isinf (x ) __builtin_isinf(x)
57
-
58
54
#endif // LLVM_LIBC_MACROS_MATH_MACROS_H
Original file line number Diff line number Diff line change 17
17
18
18
%%public_api()
19
19
20
- #define isnan(x) __builtin_isnan(x)
20
+
21
+ #include "llvm-libc-macros/math-function-macros.h"
21
22
22
23
#endif // LLVM_LIBC_MATH_H
You can’t perform that action at this time.
0 commit comments