File tree Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 1+ #ifndef __CLC_MATH_CLC_ROUND_H__
2+ #define __CLC_MATH_CLC_ROUND_H__
3+
4+ #define __CLC_BODY <clc/math/unary_decl.inc>
5+ #define __CLC_FUNCTION __clc_round
6+
7+ #include <clc/math/gentype.inc>
8+
9+ #undef __CLC_BODY
10+ #undef __CLC_FUNCTION
11+
12+ #endif // __CLC_MATH_CLC_ROUND_H__
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ math/clc_modf.cl
3131math/clc_nan.cl
3232math/clc_nextafter.cl
3333math/clc_rint.cl
34+ math/clc_round.cl
3435math/clc_sw_fma.cl
3536math/clc_trunc.cl
3637relational/clc_all.cl
Original file line number Diff line number Diff line change 1+ #include <clc/internal/clc.h>
2+
3+ #undef __CLC_FUNCTION
4+ #define __CLC_FUNCTION __clc_round
5+ #define __CLC_BUILTIN __builtin_elementwise_round
6+ #include <clc/math/unary_builtin.inc>
Original file line number Diff line number Diff line change 11#include <clc/clc.h>
2-
3- // Map the llvm intrinsic to an OpenCL function.
4- #define __CLC_FUNCTION __clc_round
5- #define __CLC_INTRINSIC "llvm.round"
6- #include <clc/math/unary_intrin.inc>
2+ #include <clc/clcmacro.h>
3+ #include <clc/math/clc_round.h>
74
85#undef __CLC_FUNCTION
96#define __CLC_FUNCTION round
You can’t perform that action at this time.
0 commit comments