File tree Expand file tree Collapse file tree 34 files changed +151
-29
lines changed Expand file tree Collapse file tree 34 files changed +151
-29
lines changed Original file line number Diff line number Diff line change 1515
1616#pragma OPENCL EXTENSION cl_clang_storage_class_specifiers : enable
1717
18- #ifdef cl_khr_fp64
19- #pragma OPENCL EXTENSION cl_khr_fp64 : enable
20- #endif
21-
22- #ifdef cl_khr_fp16
23- #pragma OPENCL EXTENSION cl_khr_fp16 : enable
24- #endif
25-
26- /* Function Attributes */
27- #include <clc/clcfunc.h>
28-
29- /* 6.1 Supported Data Types */
30- #include <clc/clctypes.h>
18+ #include <clc/opencl/opencl-base.h>
3119
3220/* 6.2.3 Explicit Conversions */
3321#include <clc/opencl/convert.h>
Original file line number Diff line number Diff line change 66//
77//===----------------------------------------------------------------------===//
88
9+ #ifndef __CLC_OPENCL_INTEGER_ABS_H__
10+ #define __CLC_OPENCL_INTEGER_ABS_H__
11+
12+ #include <clc/opencl/opencl-base.h>
13+
914#define __CLC_BODY <clc/opencl/integer/abs.inc>
1015#include <clc/integer/gentype.inc>
16+
17+ #endif // __CLC_OPENCL_INTEGER_ABS_H__
Original file line number Diff line number Diff line change 66//
77//===----------------------------------------------------------------------===//
88
9+ #ifndef __CLC_OPENCL_INTEGER_ABS_DIFF_H__
10+ #define __CLC_OPENCL_INTEGER_ABS_DIFF_H__
11+
12+ #include <clc/opencl/opencl-base.h>
13+
914#define __CLC_BODY <clc/opencl/integer/abs_diff.inc>
1015#include <clc/integer/gentype.inc>
16+
17+ #endif // __CLC_OPENCL_INTEGER_ABS_DIFF_H__
Original file line number Diff line number Diff line change 66//
77//===----------------------------------------------------------------------===//
88
9+ #ifndef __CLC_OPENCL_INTEGER_ADD_SAT_H__
10+ #define __CLC_OPENCL_INTEGER_ADD_SAT_H__
11+
12+ #include <clc/opencl/opencl-base.h>
13+
914#define FUNCTION add_sat
1015#define __CLC_BODY <clc/shared/binary_decl.inc>
1116
1217#include <clc/integer/gentype.inc>
1318
1419#undef FUNCTION
20+
21+ #endif // __CLC_OPENCL_INTEGER_ADD_SAT_H__
Original file line number Diff line number Diff line change 66//
77//===----------------------------------------------------------------------===//
88
9+ #ifndef __CLC_OPENCL_INTEGER_CLZ_H__
10+ #define __CLC_OPENCL_INTEGER_CLZ_H__
11+
12+ #include <clc/opencl/opencl-base.h>
13+
914#define FUNCTION clz
1015#define __CLC_BODY <clc/shared/unary_decl.inc>
1116
1217#include <clc/integer/gentype.inc>
1318
1419#undef FUNCTION
20+
21+ #endif // __CLC_OPENCL_INTEGER_CLZ_H__
Original file line number Diff line number Diff line change 66//
77//===----------------------------------------------------------------------===//
88
9+ #ifndef __CLC_OPENCL_INTEGER_CTZ_H__
10+ #define __CLC_OPENCL_INTEGER_CTZ_H__
11+
912#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
1013
14+ #include <clc/opencl/opencl-base.h>
15+
1116#define FUNCTION ctz
1217#define __CLC_BODY <clc/shared/unary_decl.inc>
1318
1621#undef FUNCTION
1722
1823#endif // __OPENCL_C_VERSION__ >= CL_VERSION_2_0
24+
25+ #endif // __CLC_OPENCL_INTEGER_CTZ_H__
Original file line number Diff line number Diff line change 66//
77//===----------------------------------------------------------------------===//
88
9+ #ifndef __CLC_OPENCL_INTEGER_HADD_H__
10+ #define __CLC_OPENCL_INTEGER_HADD_H__
11+
12+ #include <clc/opencl/opencl-base.h>
13+
914#define FUNCTION hadd
1015#define __CLC_BODY <clc/shared/binary_decl.inc>
1116
1217#include <clc/integer/gentype.inc>
1318
1419#undef FUNCTION
20+
21+ #endif // __CLC_OPENCL_INTEGER_HADD_H__
Original file line number Diff line number Diff line change 66//
77//===----------------------------------------------------------------------===//
88
9+ #ifndef __CLC_OPENCL_INTEGER_MAD24_H__
10+ #define __CLC_OPENCL_INTEGER_MAD24_H__
11+
12+ #include <clc/opencl/opencl-base.h>
13+
914#define FUNCTION mad24
1015#define __CLC_BODY <clc/shared/ternary_decl.inc>
1116
1217#include <clc/integer/gentype24.inc>
1318
1419#undef FUNCTION
20+
21+ #endif // __CLC_OPENCL_INTEGER_MAD24_H__
Original file line number Diff line number Diff line change 66//
77//===----------------------------------------------------------------------===//
88
9+ #ifndef __CLC_OPENCL_INTEGER_MAD_HI_H__
10+ #define __CLC_OPENCL_INTEGER_MAD_HI_H__
11+
12+ #include <clc/opencl/opencl-base.h>
13+
914#define FUNCTION mad_hi
1015#define __CLC_BODY <clc/shared/ternary_decl.inc>
1116
1217#include <clc/integer/gentype.inc>
1318
1419#undef FUNCTION
20+
21+ #endif // __CLC_OPENCL_INTEGER_MAD_HI_H__
Original file line number Diff line number Diff line change 66//
77//===----------------------------------------------------------------------===//
88
9+ #ifndef __CLC_OPENCL_INTEGER_MAD_SAT_H__
10+ #define __CLC_OPENCL_INTEGER_MAD_SAT_H__
11+
12+ #include <clc/opencl/opencl-base.h>
13+
914#define FUNCTION mad_sat
1015#define __CLC_BODY <clc/shared/ternary_decl.inc>
1116
1217#include <clc/integer/gentype.inc>
1318
1419#undef FUNCTION
20+
21+ #endif // __CLC_OPENCL_INTEGER_MAD_SAT_H__
You can’t perform that action at this time.
0 commit comments