File tree Expand file tree Collapse file tree 23 files changed +93
-111
lines changed Expand file tree Collapse file tree 23 files changed +93
-111
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
9
9
#include <clc/internal/clc.h>
10
10
11
- #undef __CLC_FUNCTION
12
- #define __CLC_FUNCTION __clc_ceil
13
- #define __CLC_BUILTIN __builtin_elementwise_ceil
14
- #include <clc/math/unary_builtin.inc>
11
+ #define FUNCTION __clc_ceil
12
+ #define __CLC_FUNCTION (x ) __builtin_elementwise_ceil
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/internal/clc.h>
10
10
11
- #undef __CLC_FUNCTION
12
- #define __CLC_FUNCTION __clc_fabs
13
- #define __CLC_BUILTIN __builtin_elementwise_abs
14
- #include <clc/math/unary_builtin.inc>
11
+ #define FUNCTION __clc_fabs
12
+ #define __CLC_FUNCTION (x ) __builtin_elementwise_abs
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/internal/clc.h>
10
10
11
- #undef __CLC_FUNCTION
12
- #define __CLC_FUNCTION __clc_floor
13
- #define __CLC_BUILTIN __builtin_elementwise_floor
14
- #include <clc/math/unary_builtin.inc>
11
+ #define FUNCTION __clc_floor
12
+ #define __CLC_FUNCTION (x ) __builtin_elementwise_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 8
8
9
9
#include <clc/internal/clc.h>
10
10
11
- #undef __CLC_FUNCTION
12
- #define __CLC_FUNCTION __clc_rint
13
- #define __CLC_BUILTIN __builtin_elementwise_rint
14
- #include <clc/math/unary_builtin.inc>
11
+ #define FUNCTION __clc_rint
12
+ #define __CLC_FUNCTION (x ) __builtin_elementwise_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 8
8
9
9
#include <clc/internal/clc.h>
10
10
11
- #undef __CLC_FUNCTION
12
- #define __CLC_FUNCTION __clc_round
13
- #define __CLC_BUILTIN __builtin_elementwise_round
14
- #include <clc/math/unary_builtin.inc>
11
+ #define FUNCTION __clc_round
12
+ #define __CLC_FUNCTION (x ) __builtin_elementwise_round
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/internal/clc.h>
10
10
11
- #undef __CLC_FUNCTION
12
- #define __CLC_FUNCTION __clc_trunc
13
- #define __CLC_BUILTIN __builtin_elementwise_trunc
14
- #include <clc/math/unary_builtin.inc>
11
+ #define FUNCTION __clc_trunc
12
+ #define __CLC_FUNCTION (x ) __builtin_elementwise_trunc
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 7
7
//===----------------------------------------------------------------------===//
8
8
9
9
#include <clc/clc.h>
10
- #include <clc/clcmacro.h>
11
10
#include <clc/math/clc_acos.h>
12
11
13
- #undef __CLC_FUNCTION
14
- #define __CLC_FUNCTION acos
15
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION acos
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/clc.h>
10
10
#include <clc/math/clc_acosh.h>
11
11
12
- #undef __CLC_FUNCTION
13
- #define __CLC_FUNCTION acosh
14
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION acosh
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/clc.h>
10
10
#include <clc/math/clc_acospi.h>
11
11
12
- #undef __CLC_FUNCTION
13
- #define __CLC_FUNCTION acospi
14
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION acospi
13
+ #define __CLC_BODY <clc/shared/unary_def.inc>
15
14
15
+ #include <clc/math/gentype.inc>
You can’t perform that action at this time.
0 commit comments