We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f7b133 commit 7248c9fCopy full SHA for 7248c9f
libc/hdr/math_macros.h
@@ -17,6 +17,27 @@
17
18
#include <math.h>
19
20
+// Some older math.h header does not have FP_INT_* constants yet.
21
+#ifndef FP_INT_UPWARD
22
+#define FP_INT_UPWARD 0
23
+#endif // FP_INT_UPWARD
24
+
25
+#ifndef FP_INT_DOWNWARD
26
+#define FP_INT_DOWNWARD 1
27
+#endif // FP_INT_DOWNWARD
28
29
+#ifndef FP_INT_TOWARDZERO
30
+#define FP_INT_TOWARDZERO 2
31
+#endif // FP_INT_TOWARDZERO
32
33
+#ifndef FP_INT_TONEARESTFROMZERO
34
+#define FP_INT_TONEARESTFROMZERO 3
35
+#endif // FP_INT_TONEARESTFROMZERO
36
37
+#ifndef FP_INT_TONEAREST
38
+#define FP_INT_TONEAREST 4
39
+#endif // FP_INT_TONEAREST
40
41
#endif // LLVM_LIBC_FULL_BUILD
42
43
#endif // LLVM_LIBC_HDR_MATH_MACROS_H
0 commit comments