File tree 23 files changed +93
-111
lines changed 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>
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_asin.h>
12
11
13
- #undef __CLC_FUNCTION
14
- #define __CLC_FUNCTION asin
15
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION asin
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_asinh.h>
11
11
12
- #undef __CLC_FUNCTION
13
- #define __CLC_FUNCTION asinh
14
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION asinh
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_asinpi.h>
11
11
12
- #undef __CLC_FUNCTION
13
- #define __CLC_FUNCTION asinpi
14
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION asinpi
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_atan.h>
12
11
13
- #undef __CLC_FUNCTION
14
- #define __CLC_FUNCTION atan
15
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION atan
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_atanh.h>
11
11
12
- #undef __CLC_FUNCTION
13
- #define __CLC_FUNCTION atanh
14
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION atanh
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_atanpi.h>
11
11
12
- #undef __CLC_FUNCTION
13
- #define __CLC_FUNCTION atanpi
14
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION atanpi
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_ceil.h>
12
11
13
- #undef __CLC_FUNCTION
14
- #define __CLC_FUNCTION ceil
15
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION 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 7
7
//===----------------------------------------------------------------------===//
8
8
9
9
#include <clc/clc.h>
10
- #include <clc/clcmacro.h>
11
10
#include <clc/math/clc_fabs.h>
12
11
13
- #undef __CLC_FUNCTION
14
- #define __CLC_FUNCTION fabs
15
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION 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 7
7
//===----------------------------------------------------------------------===//
8
8
9
9
#include <clc/clc.h>
10
- #include <clc/clcmacro.h>
11
10
#include <clc/math/clc_floor.h>
12
11
13
- #undef __CLC_FUNCTION
14
- #define __CLC_FUNCTION floor
15
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION 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 <clc/clc.h>
10
10
#include <clc/math/clc_log1p.h>
11
11
12
- #undef __CLC_FUNCTION
13
- #define __CLC_FUNCTION log1p
14
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION log1p
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_rint.h>
11
11
12
- #undef __CLC_FUNCTION
13
- #define __CLC_FUNCTION rint
14
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION 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 7
7
//===----------------------------------------------------------------------===//
8
8
9
9
#include <clc/clc.h>
10
- #include <clc/clcmacro.h>
11
10
#include <clc/math/clc_round.h>
12
11
13
- #undef __CLC_FUNCTION
14
- #define __CLC_FUNCTION round
15
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION 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 9
9
#include <clc/clc.h>
10
10
#include <clc/math/clc_trunc.h>
11
11
12
- #undef __CLC_FUNCTION
13
- #define __CLC_FUNCTION trunc
14
- #include <clc/math/unary_builtin.inc>
12
+ #define FUNCTION 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