File tree Expand file tree Collapse file tree 8 files changed +35
-60
lines changed
libspirv/lib/generic/math Expand file tree Collapse file tree 8 files changed +35
-60
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9
9
#include <clc/math/clc_ceil.h>
10
10
#include <clc/opencl/clc.h>
11
11
12
- #undef __CLC_FUNCTION
13
- #define __CLC_BUILTIN __clc_ceil
14
- #define __CLC_FUNCTION __spirv_ocl_ceil
15
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION __spirv_ocl_ceil
13
+ #define __CLC_FUNCTION (x ) __clc_ceil
14
+ #define __CLC_BODY <clc/shared/unary_def.inc>
15
+
16
+ #include <clc/math/gentype.inc>
Original file line number Diff line number Diff line change 8
8
9
9
#include <clc/math/clc_fabs.h>
10
10
11
- #undef __CLC_FUNCTION
12
- #define __CLC_BUILTIN __clc_fabs
13
- #define __CLC_FUNCTION __spirv_ocl_fabs
14
- #include <clc/math/unary_builtin.inc>
11
+ #define FUNCTION __spirv_ocl_fabs
12
+ #define __CLC_FUNCTION (x ) __clc_fabs
13
+ #define __CLC_BODY <clc/shared/unary_def.inc>
14
+
15
+ #include <clc/math/gentype.inc>
Original file line number Diff line number Diff line change 8
8
9
9
#include <clc/math/clc_floor.h>
10
10
11
- #undef __CLC_FUNCTION
12
- #define __CLC_BUILTIN __clc_floor
13
- #define __CLC_FUNCTION __spirv_ocl_floor
14
- #include <clc/math/unary_builtin.inc>
11
+ #define FUNCTION __spirv_ocl_floor
12
+ #define __CLC_FUNCTION (x ) __clc_floor
13
+ #define __CLC_BODY <clc/shared/unary_def.inc>
14
+
15
+ #include <clc/math/gentype.inc>
Original file line number Diff line number Diff line change 9
9
#include <libspirv/spirv.h>
10
10
#include <clc/math/clc_log1p.h>
11
11
12
- #undef __CLC_FUNCTION
13
- #define __CLC_FUNCTION __spirv_ocl_log1p
14
- #define __CLC_BUILTIN __clc_log1p
15
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION __spirv_ocl_log1p
13
+ #define __CLC_FUNCTION (x ) __clc_log1p
14
+ #define __CLC_BODY <clc/shared/unary_def.inc>
15
+
16
+ #include <clc/math/gentype.inc>
Original file line number Diff line number Diff line change 8
8
9
9
#include <clc/math/clc_rint.h>
10
10
11
- #undef __CLC_FUNCTION
12
- #define __CLC_BUILTIN __clc_rint
13
- #define __CLC_FUNCTION __spirv_ocl_rint
14
- #include <clc/math/unary_builtin.inc>
11
+ #define FUNCTION __spirv_ocl_rint
12
+ #define __CLC_FUNCTION (x ) __clc_rint
13
+ #define __CLC_BODY <clc/shared/unary_def.inc>
14
+
15
+ #include <clc/math/gentype.inc>
Original file line number Diff line number Diff line change 9
9
#include <clc/clcmacro.h>
10
10
#include <clc/math/clc_round.h>
11
11
12
- #undef __CLC_FUNCTION
13
- #define __CLC_BUILTIN __clc_round
14
- #define __CLC_FUNCTION __spirv_ocl_round
15
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION __spirv_ocl_round
13
+ #define __CLC_FUNCTION (x ) __clc_round
14
+ #define __CLC_BODY <clc/shared/unary_def.inc>
15
+
16
+ #include <clc/math/gentype.inc>
Original file line number Diff line number Diff line change 8
8
9
9
#include <clc/math/clc_trunc.h>
10
10
11
- #undef __CLC_FUNCTION
12
- #define __CLC_BUILTIN __clc_trunc
13
- #define __CLC_FUNCTION __spirv_ocl_trunc
14
- #include <clc/math/unary_builtin.inc>
11
+ #define FUNCTION __spirv_ocl_trunc
12
+ #define __CLC_FUNCTION (x ) __clc_trunc
13
+ #define __CLC_BODY <clc/shared/unary_def.inc>
14
+
15
+ #include <clc/math/gentype.inc>
You can’t perform that action at this time.
0 commit comments