File tree Expand file tree Collapse file tree 11 files changed +27
-56
lines changed
Expand file tree Collapse file tree 11 files changed +27
-56
lines changed Original file line number Diff line number Diff line change 11#ifndef __CLC_INTEGER_CLC_CLZ_H__
22#define __CLC_INTEGER_CLC_CLZ_H__
33
4- #if defined(CLC_CLSPV ) || defined(CLC_SPIRV )
5- // clspv and spir-v targets provide their own OpenCL-compatible clz
6- #define __clc_clz clz
7- #else
8-
94#include <clc/clcfunc.h>
105#include <clc/clctypes.h>
116
149
1510#include <clc/integer/gentype.inc>
1611
12+ #undef __CLC_BODY
1713#undef FUNCTION
1814
19- #endif
20-
2115#endif // __CLC_INTEGER_CLC_CLZ_H__
Original file line number Diff line number Diff line change 11#ifndef __CLC_INTEGER_CLC_HADD_H__
22#define __CLC_INTEGER_CLC_HADD_H__
33
4- #if defined(CLC_CLSPV ) || defined(CLC_SPIRV )
5- // clspv and spir-v targets provide their own OpenCL-compatible hadd
6- #define __clc_hadd hadd
7- #else
8-
94#include <clc/clcfunc.h>
105#include <clc/clctypes.h>
116
149
1510#include <clc/integer/gentype.inc>
1611
12+ #undef __CLC_BODY
1713#undef FUNCTION
1814
19- #endif
20-
2115#endif // __CLC_INTEGER_CLC_HADD_H__
Original file line number Diff line number Diff line change 11#ifndef __CLC_INTEGER_CLC_MAD24_H__
22#define __CLC_INTEGER_CLC_MAD24_H__
33
4- #if defined(CLC_CLSPV ) || defined(CLC_SPIRV )
5- // clspv and spir-v targets provide their own OpenCL-compatible mad24
6- #define __clc_mad24 mad24
7- #else
8-
94#include <clc/clcfunc.h>
105#include <clc/clctypes.h>
116
149
1510#include <clc/integer/gentype24.inc>
1611
12+ #undef __CLC_BODY
1713#undef FUNCTION
1814
19- #endif
20-
2115#endif // __CLC_INTEGER_CLC_MAD24_H__
Original file line number Diff line number Diff line change 11#ifndef __CLC_INTEGER_CLC_MUL24_H__
22#define __CLC_INTEGER_CLC_MUL24_H__
33
4- #if defined(CLC_CLSPV ) || defined(CLC_SPIRV )
5- // clspv and spir-v targets provide their own OpenCL-compatible mul24
6- #define __clc_mul24 mul24
7- #else
8-
94#include <clc/clcfunc.h>
105#include <clc/clctypes.h>
116
149
1510#include <clc/integer/gentype24.inc>
1611
12+ #undef __CLC_BODY
1713#undef FUNCTION
1814
19- #endif
20-
2115#endif // __CLC_INTEGER_CLC_MUL24_H__
Original file line number Diff line number Diff line change 11#ifndef __CLC_INTEGER_CLC_MUL_HI_H__
22#define __CLC_INTEGER_CLC_MUL_HI_H__
33
4- #if defined(CLC_CLSPV ) || defined(CLC_SPIRV )
5- // clspv and spir-v targets provide their own OpenCL-compatible mul_hi
6- #define __clc_mul_hi mul_hi
7- #else
8-
94#include <clc/clcfunc.h>
105#include <clc/clctypes.h>
116
149
1510#include <clc/integer/gentype.inc>
1611
12+ #undef __CLC_BODY
1713#undef FUNCTION
1814
19- #endif
20-
2115#endif // __CLC_INTEGER_CLC_MUL_HI_H__
Original file line number Diff line number Diff line change 11#ifndef __CLC_INTEGER_CLC_POPCOUNT_H__
22#define __CLC_INTEGER_CLC_POPCOUNT_H__
33
4- #if defined(CLC_CLSPV ) || defined(CLC_SPIRV )
5- // clspv and spir-v targets provide their own OpenCL-compatible popcount
6- #define __clc_popcount popcount
7- #else
8-
94// Map the function to an LLVM intrinsic
105#define __CLC_FUNCTION __clc_popcount
116#define __CLC_INTRINSIC "llvm.ctpop"
149#undef __CLC_INTRINSIC
1510#undef __CLC_FUNCTION
1611
17- #endif
18-
1912#endif // __CLC_INTEGER_CLC_POPCOUNT_H__
Original file line number Diff line number Diff line change 11#ifndef __CLC_INTEGER_CLC_RHADD_H__
22#define __CLC_INTEGER_CLC_RHADD_H__
33
4- #if defined(CLC_CLSPV ) || defined(CLC_SPIRV )
5- // clspv and spir-v targets provide their own OpenCL-compatible rhadd
6- #define __clc_rhadd rhadd
7- #else
8-
94#include <clc/clcfunc.h>
105#include <clc/clctypes.h>
116
149
1510#include <clc/integer/gentype.inc>
1611
12+ #undef __CLC_BODY
1713#undef FUNCTION
1814
19- #endif
20-
2115#endif // __CLC_INTEGER_CLC_RHADD_H__
Original file line number Diff line number Diff line change 11#ifndef __CLC_INTEGER_CLC_UPSAMPLE_H__
22#define __CLC_INTEGER_CLC_UPSAMPLE_H__
33
4- #if defined(CLC_CLSPV ) || defined(CLC_SPIRV )
5- // clspv and spir-v targets provide their own OpenCL-compatible upsample
6- #define __clc_upsample upsample
7- #else
8-
94#include <clc/clctypes.h>
105
116#define __CLC_UPSAMPLE_DECL (BGENTYPE , GENTYPE , UGENTYPE ) \
@@ -33,6 +28,4 @@ __CLC_UPSAMPLE_TYPES()
3328#undef __CLC_UPSAMPLE_DECL
3429#undef __CLC_UPSAMPLE_VEC
3530
36- #endif
37-
3831#endif // __CLC_INTEGER_CLC_UPSAMPLE_H__
Original file line number Diff line number Diff line change 1+ ../generic/integer/clc_clz.cl
2+ ../generic/integer/clc_hadd.cl
3+ ../generic/integer/clc_mad24.cl
4+ ../generic/integer/clc_mul24.cl
5+ ../generic/integer/clc_mul_hi.cl
6+ ../generic/integer/clc_rhadd.cl
7+ ../generic/integer/clc_upsample.cl
18../generic/math/clc_ceil.cl
29../generic/math/clc_fabs.cl
310../generic/math/clc_floor.cl
Original file line number Diff line number Diff line change 22../generic/common/clc_radians.cl
33../generic/common/clc_smoothstep.cl
44../generic/geometric/clc_dot.cl
5+ ../generic/integer/clc_clz.cl
6+ ../generic/integer/clc_hadd.cl
7+ ../generic/integer/clc_mad24.cl
8+ ../generic/integer/clc_mul24.cl
9+ ../generic/integer/clc_mul_hi.cl
10+ ../generic/integer/clc_rhadd.cl
11+ ../generic/integer/clc_upsample.cl
512../generic/math/clc_ceil.cl
613../generic/math/clc_fabs.cl
714../generic/math/clc_floor.cl
You can’t perform that action at this time.
0 commit comments