Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libclc/clc/include/clc/clcfunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define _CLC_OVERLOAD __attribute__((overloadable))
#define _CLC_DECL
#define _CLC_INLINE __attribute__((always_inline)) inline
#define _CLC_CONST __attribute__((const))

// avoid inlines for SPIR-V related targets since we'll optimise later in the
// chain
Expand Down
5 changes: 2 additions & 3 deletions libclc/clc/include/clc/common/clc_smoothstep.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __clc_smoothstep(__CLC_GENTYPE edge0,
__CLC_GENTYPE edge1,
__CLC_GENTYPE x);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE
__clc_smoothstep(__CLC_GENTYPE edge0, __CLC_GENTYPE edge1, __CLC_GENTYPE x);
4 changes: 2 additions & 2 deletions libclc/clc/include/clc/geometric/binary_decl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#if (__CLC_VECSIZE_OR_1 == 1 || __CLC_VECSIZE_OR_1 == 2 || \
__CLC_VECSIZE_OR_1 == 3 || __CLC_VECSIZE_OR_1 == 4)

_CLC_OVERLOAD _CLC_DECL __CLC_SCALAR_GENTYPE FUNCTION(__CLC_GENTYPE a,
__CLC_GENTYPE b);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_SCALAR_GENTYPE
FUNCTION(__CLC_GENTYPE a, __CLC_GENTYPE b);

#endif
12 changes: 6 additions & 6 deletions libclc/clc/include/clc/geometric/clc_cross.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@

#include <clc/internal/clc.h>

_CLC_OVERLOAD _CLC_DECL float3 __clc_cross(float3 p0, float3 p1);
_CLC_OVERLOAD _CLC_DECL float4 __clc_cross(float4 p0, float4 p1);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL float3 __clc_cross(float3 p0, float3 p1);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL float4 __clc_cross(float4 p0, float4 p1);

#ifdef cl_khr_fp64
#pragma OPENCL EXTENSION cl_khr_fp64 : enable

_CLC_OVERLOAD _CLC_DECL double3 __clc_cross(double3 p0, double3 p1);
_CLC_OVERLOAD _CLC_DECL double4 __clc_cross(double4 p0, double4 p1);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL double3 __clc_cross(double3 p0, double3 p1);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL double4 __clc_cross(double4 p0, double4 p1);

#endif

#ifdef cl_khr_fp16
#pragma OPENCL EXTENSION cl_khr_fp16 : enable

_CLC_OVERLOAD _CLC_DECL half3 __clc_cross(half3 p0, half3 p1);
_CLC_OVERLOAD _CLC_DECL half4 __clc_cross(half4 p0, half4 p1);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL half3 __clc_cross(half3 p0, half3 p1);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL half4 __clc_cross(half4 p0, half4 p1);

#endif

Expand Down
2 changes: 1 addition & 1 deletion libclc/clc/include/clc/geometric/unary_decl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#if (__CLC_VECSIZE_OR_1 == 1 || __CLC_VECSIZE_OR_1 == 2 || \
__CLC_VECSIZE_OR_1 == 3 || __CLC_VECSIZE_OR_1 == 4)

_CLC_OVERLOAD _CLC_DECL
_CLC_OVERLOAD _CLC_CONST _CLC_DECL
#ifdef __CLC_GEOMETRIC_RET_GENTYPE
__CLC_GENTYPE
#else
Expand Down
2 changes: 1 addition & 1 deletion libclc/clc/include/clc/integer/clc_abs.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DECL __CLC_U_GENTYPE __clc_abs(__CLC_GENTYPE x);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_U_GENTYPE __clc_abs(__CLC_GENTYPE x);
4 changes: 2 additions & 2 deletions libclc/clc/include/clc/integer/clc_abs_diff.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DECL __CLC_U_GENTYPE __clc_abs_diff(__CLC_GENTYPE x,
__CLC_GENTYPE y);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_U_GENTYPE
__clc_abs_diff(__CLC_GENTYPE x, __CLC_GENTYPE y);
4 changes: 2 additions & 2 deletions libclc/clc/include/clc/integer/clc_bitfield_extract_decl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DECL __RETTYPE FUNCTION(__CLC_GENTYPE base, uint offset,
uint count);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __RETTYPE FUNCTION(__CLC_GENTYPE base,
uint offset, uint count);
7 changes: 4 additions & 3 deletions libclc/clc/include/clc/integer/clc_bitfield_insert.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE FUNCTION(__CLC_GENTYPE base,
__CLC_GENTYPE insert,
uint offset, uint count);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE FUNCTION(__CLC_GENTYPE base,
__CLC_GENTYPE insert,
uint offset,
uint count);
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE FUNCTION(__CLC_GENTYPE a,
__CLC_GENTYPE b);
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE FUNCTION(__CLC_GENTYPE a,
__CLC_SCALAR_GENTYPE b);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE FUNCTION(__CLC_GENTYPE a,
__CLC_GENTYPE b);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE
FUNCTION(__CLC_GENTYPE a, __CLC_SCALAR_GENTYPE b);
4 changes: 2 additions & 2 deletions libclc/clc/include/clc/math/binary_def_via_fp32.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x,
__CLC_GENTYPE y) {
_CLC_OVERLOAD _CLC_CONST _CLC_DEF __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x,
__CLC_GENTYPE y) {
return __CLC_CONVERT_GENTYPE(
FUNCTION(__CLC_CONVERT_FLOATN(x), __CLC_CONVERT_FLOATN(y)));
}
8 changes: 3 additions & 5 deletions libclc/clc/include/clc/math/clc_exp_helper.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
//
//===----------------------------------------------------------------------===//

_CLC_DECL _CLC_OVERLOAD __CLC_GENTYPE __clc_exp_helper(__CLC_GENTYPE x,
__CLC_GENTYPE x_min,
__CLC_GENTYPE x_max,
__CLC_GENTYPE r,
__CLC_INTN n);
_CLC_DECL _CLC_OVERLOAD _CLC_CONST __CLC_GENTYPE
__clc_exp_helper(__CLC_GENTYPE x, __CLC_GENTYPE x_min, __CLC_GENTYPE x_max,
__CLC_GENTYPE r, __CLC_INTN n);
3 changes: 2 additions & 1 deletion libclc/clc/include/clc/math/clc_ldexp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
//
//===----------------------------------------------------------------------===//

_CLC_DECL _CLC_OVERLOAD __CLC_GENTYPE __clc_ldexp(__CLC_GENTYPE, __CLC_INTN);
_CLC_DECL _CLC_OVERLOAD _CLC_CONST __CLC_GENTYPE __clc_ldexp(__CLC_GENTYPE,
__CLC_INTN);
4 changes: 2 additions & 2 deletions libclc/clc/include/clc/math/clc_nan.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __clc_nan(__CLC_U_GENTYPE code);
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __clc_nan(__CLC_S_GENTYPE code);
_CLC_OVERLOAD _CLC_CONST _CLC_DEF __CLC_GENTYPE __clc_nan(__CLC_U_GENTYPE code);
_CLC_OVERLOAD _CLC_CONST _CLC_DEF __CLC_GENTYPE __clc_nan(__CLC_S_GENTYPE code);
2 changes: 1 addition & 1 deletion libclc/clc/include/clc/math/unary_decl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x);
2 changes: 1 addition & 1 deletion libclc/clc/include/clc/math/unary_decl_with_int_return.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DECL __CLC_INTN FUNCTION(__CLC_GENTYPE x);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_INTN FUNCTION(__CLC_GENTYPE x);
8 changes: 4 additions & 4 deletions libclc/clc/include/clc/misc/shuffle2_decl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
// The return type is same base type as the input type, with the same vector
// size as the mask. Elements in the mask must be the same size (number of bits)
// as the input value., e.g. char8 ret = shuffle(char2 x, uchar8 mask);
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE
FUNCTION(__CLC_XCONCAT(__CLC_SCALAR_GENTYPE, 2) x,
__CLC_XCONCAT(__CLC_SCALAR_GENTYPE, 2) y, __CLC_U_GENTYPE mask);
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE
FUNCTION(__CLC_XCONCAT(__CLC_SCALAR_GENTYPE, 4) x,
__CLC_XCONCAT(__CLC_SCALAR_GENTYPE, 4) y, __CLC_U_GENTYPE mask);
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE
FUNCTION(__CLC_XCONCAT(__CLC_SCALAR_GENTYPE, 8) x,
__CLC_XCONCAT(__CLC_SCALAR_GENTYPE, 8) y, __CLC_U_GENTYPE mask);
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE
FUNCTION(__CLC_XCONCAT(__CLC_SCALAR_GENTYPE, 16) x,
__CLC_XCONCAT(__CLC_SCALAR_GENTYPE, 16) y, __CLC_U_GENTYPE mask);

Expand Down
8 changes: 4 additions & 4 deletions libclc/clc/include/clc/misc/shuffle_decl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
// The return type is same base type as the input type, with the same vector
// size as the mask. Elements in the mask must be the same size (number of bits)
// as the input value., e.g. char8 ret = shuffle(char2 x, uchar8 mask);
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE
FUNCTION(__CLC_XCONCAT(__CLC_SCALAR_GENTYPE, 2) x, __CLC_U_GENTYPE mask);
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE
FUNCTION(__CLC_XCONCAT(__CLC_SCALAR_GENTYPE, 4) x, __CLC_U_GENTYPE mask);
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE
FUNCTION(__CLC_XCONCAT(__CLC_SCALAR_GENTYPE, 8) x, __CLC_U_GENTYPE mask);
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE
FUNCTION(__CLC_XCONCAT(__CLC_SCALAR_GENTYPE, 16) x, __CLC_U_GENTYPE mask);

#endif
3 changes: 2 additions & 1 deletion libclc/clc/include/clc/relational/binary_decl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define __RETTYPE __CLC_BIT_INTN
#endif

_CLC_OVERLOAD _CLC_DECL __RETTYPE FUNCTION(__CLC_GENTYPE a, __CLC_GENTYPE b);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __RETTYPE FUNCTION(__CLC_GENTYPE a,
__CLC_GENTYPE b);

#undef __RETTYPE
3 changes: 2 additions & 1 deletion libclc/clc/include/clc/relational/clc_all.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
#include <clc/clcfunc.h>
#include <clc/clctypes.h>

#define _CLC_ALL_DECL(TYPE) _CLC_OVERLOAD _CLC_DECL int __clc_all(TYPE v);
#define _CLC_ALL_DECL(TYPE) \
_CLC_OVERLOAD _CLC_CONST _CLC_DECL int __clc_all(TYPE v);

#define _CLC_VECTOR_ALL_DECL(TYPE) \
_CLC_ALL_DECL(TYPE) \
Expand Down
3 changes: 2 additions & 1 deletion libclc/clc/include/clc/relational/clc_any.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
#include <clc/clcfunc.h>
#include <clc/clctypes.h>

#define _CLC_ANY_DECL(TYPE) _CLC_OVERLOAD _CLC_DECL int __clc_any(TYPE v);
#define _CLC_ANY_DECL(TYPE) \
_CLC_OVERLOAD _CLC_CONST _CLC_DECL int __clc_any(TYPE v);

#define _CLC_VECTOR_ANY_DECL(TYPE) \
_CLC_ANY_DECL(TYPE) \
Expand Down
5 changes: 2 additions & 3 deletions libclc/clc/include/clc/relational/clc_bitselect.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __clc_bitselect(__CLC_GENTYPE x,
__CLC_GENTYPE y,
__CLC_GENTYPE z);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE
__clc_bitselect(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_GENTYPE z);
2 changes: 1 addition & 1 deletion libclc/clc/include/clc/relational/clc_isequal.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <clc/clctypes.h>

#define _CLC_ISEQUAL_DECL(TYPE, RETTYPE) \
_CLC_OVERLOAD _CLC_DECL RETTYPE __clc_isequal(TYPE x, TYPE y);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL RETTYPE __clc_isequal(TYPE x, TYPE y);

#define _CLC_VECTOR_ISEQUAL_DECL(TYPE, RETTYPE) \
_CLC_ISEQUAL_DECL(TYPE##2, RETTYPE##2) \
Expand Down
2 changes: 1 addition & 1 deletion libclc/clc/include/clc/relational/clc_isinf.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <clc/clctypes.h>

#define _CLC_ISINF_DECL(RET_TYPE, ARG_TYPE) \
_CLC_OVERLOAD _CLC_DECL RET_TYPE __clc_isinf(ARG_TYPE);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL RET_TYPE __clc_isinf(ARG_TYPE);

#define _CLC_VECTOR_ISINF_DECL(RET_TYPE, ARG_TYPE) \
_CLC_ISINF_DECL(RET_TYPE##2, ARG_TYPE##2) \
Expand Down
2 changes: 1 addition & 1 deletion libclc/clc/include/clc/relational/clc_isnan.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <clc/clctypes.h>

#define _CLC_ISNAN_DECL(RET_TYPE, ARG_TYPE) \
_CLC_OVERLOAD _CLC_DECL RET_TYPE __clc_isnan(ARG_TYPE);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL RET_TYPE __clc_isnan(ARG_TYPE);

#define _CLC_VECTOR_ISNAN_DECL(RET_TYPE, ARG_TYPE) \
_CLC_ISNAN_DECL(RET_TYPE##2, ARG_TYPE##2) \
Expand Down
10 changes: 4 additions & 6 deletions libclc/clc/include/clc/relational/clc_select_decl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_SELECT_FN(__CLC_GENTYPE x,
__CLC_GENTYPE y,
__CLC_S_GENTYPE z);
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_SELECT_FN(__CLC_GENTYPE x,
__CLC_GENTYPE y,
__CLC_U_GENTYPE z);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE
__CLC_SELECT_FN(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_S_GENTYPE z);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE
__CLC_SELECT_FN(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_U_GENTYPE z);
2 changes: 1 addition & 1 deletion libclc/clc/include/clc/relational/unary_decl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
#define __RETTYPE __CLC_BIT_INTN
#endif

_CLC_OVERLOAD _CLC_DECL __RETTYPE FUNCTION(__CLC_GENTYPE x);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __RETTYPE FUNCTION(__CLC_GENTYPE x);

#undef __RETTYPE
4 changes: 2 additions & 2 deletions libclc/clc/include/clc/shared/binary_decl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x,
__CLC_GENTYPE y);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x,
__CLC_GENTYPE y);
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@

#include <clc/utils.h>

_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x, __CLC_INTN y);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x,
__CLC_INTN y);
11 changes: 5 additions & 6 deletions libclc/clc/include/clc/shared/clc_clamp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __clc_clamp(__CLC_GENTYPE x,
__CLC_GENTYPE y,
__CLC_GENTYPE z);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE __clc_clamp(__CLC_GENTYPE x,
__CLC_GENTYPE y,
__CLC_GENTYPE z);

#ifndef __CLC_SCALAR
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __clc_clamp(__CLC_GENTYPE x,
__CLC_SCALAR_GENTYPE y,
__CLC_SCALAR_GENTYPE z);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE
__clc_clamp(__CLC_GENTYPE x, __CLC_SCALAR_GENTYPE y, __CLC_SCALAR_GENTYPE z);
#endif
8 changes: 4 additions & 4 deletions libclc/clc/include/clc/shared/clc_max.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __clc_max(__CLC_GENTYPE a,
__CLC_GENTYPE b);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE __clc_max(__CLC_GENTYPE a,
__CLC_GENTYPE b);

#ifndef __CLC_SCALAR
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __clc_max(__CLC_GENTYPE a,
__CLC_SCALAR_GENTYPE b);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE
__clc_max(__CLC_GENTYPE a, __CLC_SCALAR_GENTYPE b);
#endif
8 changes: 4 additions & 4 deletions libclc/clc/include/clc/shared/clc_min.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __clc_min(__CLC_GENTYPE a,
__CLC_GENTYPE b);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE __clc_min(__CLC_GENTYPE a,
__CLC_GENTYPE b);

#ifndef __CLC_SCALAR
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __clc_min(__CLC_GENTYPE a,
__CLC_SCALAR_GENTYPE b);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE
__clc_min(__CLC_GENTYPE a, __CLC_SCALAR_GENTYPE b);
#endif
5 changes: 3 additions & 2 deletions libclc/clc/include/clc/shared/ternary_decl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE FUNCTION(__CLC_GENTYPE a, __CLC_GENTYPE b,
__CLC_GENTYPE c);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE FUNCTION(__CLC_GENTYPE a,
__CLC_GENTYPE b,
__CLC_GENTYPE c);
2 changes: 1 addition & 1 deletion libclc/clc/include/clc/shared/unary_decl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
//
//===----------------------------------------------------------------------===//

_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x);
2 changes: 1 addition & 1 deletion libclc/clc/include/clc/workitem/clc_get_global_id.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

#include <clc/internal/clc.h>

_CLC_OVERLOAD _CLC_DECL size_t __clc_get_global_id(uint dim);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL size_t __clc_get_global_id(uint dim);

#endif // __CLC_WORKITEM_CLC_GET_GLOBAL_ID_H__
2 changes: 1 addition & 1 deletion libclc/clc/include/clc/workitem/clc_get_global_offset.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

#include <clc/internal/clc.h>

_CLC_OVERLOAD _CLC_DECL size_t __clc_get_global_offset(uint dim);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL size_t __clc_get_global_offset(uint dim);

#endif // __CLC_WORKITEM_CLC_GET_GLOBAL_OFFSET_H__
2 changes: 1 addition & 1 deletion libclc/clc/include/clc/workitem/clc_get_global_size.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

#include <clc/internal/clc.h>

_CLC_OVERLOAD _CLC_DECL size_t __clc_get_global_size(uint dim);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL size_t __clc_get_global_size(uint dim);

#endif // __CLC_WORKITEM_CLC_GET_GLOBAL_SIZE_H__
2 changes: 1 addition & 1 deletion libclc/clc/include/clc/workitem/clc_get_group_id.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

#include <clc/internal/clc.h>

_CLC_OVERLOAD _CLC_DECL size_t __clc_get_group_id(uint dim);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL size_t __clc_get_group_id(uint dim);

#endif // __CLC_WORKITEM_CLC_GET_GROUP_ID_H__
Loading
Loading