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 fabs
2- #define fabs __clc_fabs
1+ #define __CLC_BODY <clc/math/unary_decl.inc>
2+ #define __CLC_FUNCTION fabs
33
4- #define __CLC_FUNCTION __clc_fabs
5- #define __CLC_INTRINSIC "llvm.fabs"
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 @@ -103,6 +103,7 @@ math/expm1.cl
103103math/exp2.cl
104104math/clc_exp10.cl
105105math/exp10.cl
106+ math/fabs.cl
106107math/fdim.cl
107108math/clc_fma.cl
108109math/fma.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_fabs
6+ #define __CLC_INTRINSIC "llvm.fabs"
7+ #include <clc/math/unary_intrin.inc>
8+
9+ #undef __CLC_FUNCTION
10+ #define __CLC_FUNCTION fabs
11+ #include "unary_builtin.inc"
You can’t perform that action at this time.
0 commit comments