summaryrefslogtreecommitdiff
path: root/generic/include/clc/math/gentype.inc
blob: 4ed2151591a46b9bb037a4074839fcfac75050f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#define SCALAR_GENTYPE float

#define GENTYPE float
#define SCALAR
#include BODY
#undef GENTYPE
#undef SCALAR

#define GENTYPE float2
#include BODY
#undef GENTYPE

#define GENTYPE float3
#include BODY
#undef GENTYPE

#define GENTYPE float4
#include BODY
#undef GENTYPE

#define GENTYPE float8
#include BODY
#undef GENTYPE

#define GENTYPE float16
#include BODY
#undef GENTYPE

#undef SCALAR_GENTYPE

#ifdef cl_khr_fp64
#define SCALAR_GENTYPE double

#define SCALAR
#define GENTYPE double
#include BODY
#undef GENTYPE
#undef SCALAR

#define GENTYPE double2
#include BODY
#undef GENTYPE

#define GENTYPE double3
#include BODY
#undef GENTYPE

#define GENTYPE double4
#include BODY
#undef GENTYPE

#define GENTYPE double8
#include BODY
#undef GENTYPE

#define GENTYPE double16
#include BODY
#undef GENTYPE

#undef SCALAR_GENTYPE
#endif

#undef BODY