File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 1
- #undef ceil
2
- #define ceil __clc_ceil
1
+ #define __CLC_BODY <clc/math/unary_decl.inc>
2
+ #define __CLC_FUNCTION ceil
3
3
4
- #define __CLC_FUNCTION __clc_ceil
5
- #define __CLC_INTRINSIC "llvm.ceil"
6
- #include <clc/math/unary_intrin.inc>
4
+ #include <clc/math/gentype.inc>
5
+
6
+ #undef __CLC_BODY
7
+ #undef __CLC_FUNCTION
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ math/atan2pi.cl
89
89
math/atanh.cl
90
90
math/atanpi.cl
91
91
math/cbrt.cl
92
+ math/ceil.cl
92
93
math/copysign.cl
93
94
math/cos.cl
94
95
math/cosh.cl
Original file line number Diff line number Diff line change
1
+ #include <clc/clc.h>
2
+ #include "../clcmacro.h"
3
+
4
+ // Map the llvm intrinsic to an OpenCL function.
5
+ #define __CLC_FUNCTION __clc_ceil
6
+ #define __CLC_INTRINSIC "llvm.ceil"
7
+ #include <clc/math/unary_intrin.inc>
8
+
9
+ #undef __CLC_FUNCTION
10
+ #define __CLC_FUNCTION ceil
11
+ #include "unary_builtin.inc"
You can’t perform that action at this time.
0 commit comments