[NFC][libclc] add missing __CLC_ prefix all internal macros (#153523)

This unifies naming scheme of macros to address review comment
https://github.com/intel/llvm/pull/19779#discussion_r2272194357

math constant value macros are not changed, e.g.
`#define AU0 -9.86494292470009928597e-03`
This commit is contained in:
Wenju He 2025-08-18 07:21:04 +08:00 committed by GitHub
parent 34c7b7ccae
commit 76bb98746b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
665 changed files with 2492 additions and 2462 deletions

View File

@ -14,23 +14,23 @@
#ifdef __CLC_NO_VALUE_ARG
#define __CLC_DECLARE_ATOMIC(ADDRSPACE) \
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE FUNCTION( \
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION( \
volatile ADDRSPACE __CLC_GENTYPE *Ptr, int MemoryOrder, \
int MemoryScope);
#elif defined(__CLC_RETURN_VOID)
#define __CLC_DECLARE_ATOMIC(ADDRSPACE) \
_CLC_OVERLOAD _CLC_DECL void FUNCTION(volatile ADDRSPACE __CLC_GENTYPE *Ptr, \
__CLC_GENTYPE Value, int MemoryOrder, \
int MemoryScope);
_CLC_OVERLOAD _CLC_DECL void __CLC_FUNCTION( \
volatile ADDRSPACE __CLC_GENTYPE *Ptr, __CLC_GENTYPE Value, \
int MemoryOrder, int MemoryScope);
#elif defined(__CLC_COMPARE_EXCHANGE)
#define __CLC_DECLARE_ATOMIC(ADDRSPACE) \
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE FUNCTION( \
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION( \
volatile ADDRSPACE __CLC_GENTYPE *Ptr, __CLC_GENTYPE Comparator, \
__CLC_GENTYPE Value, int MemoryOrderEqual, int MemoryOrderUnequal, \
int MemoryScope);
#else
#define __CLC_DECLARE_ATOMIC(ADDRSPACE) \
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE FUNCTION( \
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION( \
volatile ADDRSPACE __CLC_GENTYPE *Ptr, __CLC_GENTYPE Value, \
int MemoryOrder, int MemoryScope);
#endif

View File

@ -11,7 +11,7 @@
#include <clc/internal/clc.h>
#define FUNCTION __clc_atomic_compare_exchange
#define __CLC_FUNCTION __clc_atomic_compare_exchange
#define __CLC_COMPARE_EXCHANGE
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
@ -21,6 +21,6 @@
#include <clc/math/gentype.inc>
#undef __CLC_COMPARE_EXCHANGE
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_ATOMIC_CLC_ATOMIC_COMPARE_EXCHANGE_H__

View File

@ -11,13 +11,13 @@
#include <clc/internal/clc.h>
#define FUNCTION __clc_atomic_dec
#define __CLC_FUNCTION __clc_atomic_dec
#define __CLC_NO_VALUE_ARG
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
#include <clc/integer/gentype.inc>
#undef __CLC_NO_VALUE_ARG
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_ATOMIC_CLC_ATOMIC_DEC_H__

View File

@ -11,7 +11,7 @@
#include <clc/internal/clc.h>
#define FUNCTION __clc_atomic_exchange
#define __CLC_FUNCTION __clc_atomic_exchange
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
#include <clc/integer/gentype.inc>
@ -19,6 +19,6 @@
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_ATOMIC_CLC_ATOMIC_EXCHANGE_H__

View File

@ -11,7 +11,7 @@
#include <clc/internal/clc.h>
#define FUNCTION __clc_atomic_fetch_add
#define __CLC_FUNCTION __clc_atomic_fetch_add
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
#include <clc/integer/gentype.inc>
@ -19,6 +19,6 @@
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_ATOMIC_CLC_ATOMIC_FETCH_ADD_H__

View File

@ -11,11 +11,11 @@
#include <clc/internal/clc.h>
#define FUNCTION __clc_atomic_fetch_and
#define __CLC_FUNCTION __clc_atomic_fetch_and
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
#include <clc/integer/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_ATOMIC_CLC_ATOMIC_FETCH_AND_H__

View File

@ -11,7 +11,7 @@
#include <clc/internal/clc.h>
#define FUNCTION __clc_atomic_fetch_max
#define __CLC_FUNCTION __clc_atomic_fetch_max
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
#include <clc/integer/gentype.inc>
@ -19,6 +19,6 @@
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_ATOMIC_CLC_ATOMIC_FETCH_MAX_H__

View File

@ -11,7 +11,7 @@
#include <clc/internal/clc.h>
#define FUNCTION __clc_atomic_fetch_min
#define __CLC_FUNCTION __clc_atomic_fetch_min
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
#include <clc/integer/gentype.inc>
@ -19,6 +19,6 @@
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_ATOMIC_CLC_ATOMIC_FETCH_MIN_H__

View File

@ -11,11 +11,11 @@
#include <clc/internal/clc.h>
#define FUNCTION __clc_atomic_fetch_or
#define __CLC_FUNCTION __clc_atomic_fetch_or
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
#include <clc/integer/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_ATOMIC_CLC_ATOMIC_FETCH_OR_H__

View File

@ -11,7 +11,7 @@
#include <clc/internal/clc.h>
#define FUNCTION __clc_atomic_fetch_sub
#define __CLC_FUNCTION __clc_atomic_fetch_sub
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
#include <clc/integer/gentype.inc>
@ -19,6 +19,6 @@
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_ATOMIC_CLC_ATOMIC_FETCH_SUB_H__

View File

@ -11,11 +11,11 @@
#include <clc/internal/clc.h>
#define FUNCTION __clc_atomic_fetch_xor
#define __CLC_FUNCTION __clc_atomic_fetch_xor
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
#include <clc/integer/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_ATOMIC_CLC_ATOMIC_FETCH_XOR_H__

View File

@ -11,13 +11,13 @@
#include <clc/internal/clc.h>
#define FUNCTION __clc_atomic_inc
#define __CLC_FUNCTION __clc_atomic_inc
#define __CLC_NO_VALUE_ARG
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
#include <clc/integer/gentype.inc>
#undef __CLC_NO_VALUE_ARG
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_ATOMIC_CLC_ATOMIC_INC_H__

View File

@ -11,7 +11,7 @@
#include <clc/internal/clc.h>
#define FUNCTION __clc_atomic_load
#define __CLC_FUNCTION __clc_atomic_load
#define __CLC_NO_VALUE_ARG
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
@ -21,6 +21,6 @@
#include <clc/math/gentype.inc>
#undef __CLC_NO_VALUE_ARG
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_ATOMIC_CLC_ATOMIC_LOAD_H__

View File

@ -11,7 +11,7 @@
#include <clc/internal/clc.h>
#define FUNCTION __clc_atomic_store
#define __CLC_FUNCTION __clc_atomic_store
#define __CLC_RETURN_VOID
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
@ -21,6 +21,6 @@
#include <clc/math/gentype.inc>
#undef __CLC_RETURN_VOID
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_ATOMIC_CLC_ATOMIC_STORE_H__

View File

@ -12,58 +12,58 @@
#include <clc/internal/clc.h>
#include <clc/utils.h>
#define _CLC_V_V_VP_VECTORIZE(DECLSPEC, RET_TYPE, FUNCTION, ARG1_TYPE, \
#define _CLC_V_V_VP_VECTORIZE(DECLSPEC, RET_TYPE, __CLC_FUNCTION, ARG1_TYPE, \
ADDR_SPACE, ARG2_TYPE) \
DECLSPEC __CLC_XCONCAT(RET_TYPE, 2) \
FUNCTION(__CLC_XCONCAT(ARG1_TYPE, 2) x, \
ADDR_SPACE __CLC_XCONCAT(ARG2_TYPE, 2) * y) { \
__CLC_FUNCTION(__CLC_XCONCAT(ARG1_TYPE, 2) x, \
ADDR_SPACE __CLC_XCONCAT(ARG2_TYPE, 2) * y) { \
ADDR_SPACE ARG2_TYPE *ptr = (ADDR_SPACE ARG2_TYPE *)y; \
return (__CLC_XCONCAT(RET_TYPE, 2))(FUNCTION(x.s0, ptr), \
FUNCTION(x.s1, ptr + 1)); \
return (__CLC_XCONCAT(RET_TYPE, 2))(__CLC_FUNCTION(x.s0, ptr), \
__CLC_FUNCTION(x.s1, ptr + 1)); \
} \
\
DECLSPEC __CLC_XCONCAT(RET_TYPE, 3) \
FUNCTION(__CLC_XCONCAT(ARG1_TYPE, 3) x, \
ADDR_SPACE __CLC_XCONCAT(ARG2_TYPE, 3) * y) { \
__CLC_FUNCTION(__CLC_XCONCAT(ARG1_TYPE, 3) x, \
ADDR_SPACE __CLC_XCONCAT(ARG2_TYPE, 3) * y) { \
ADDR_SPACE ARG2_TYPE *ptr = (ADDR_SPACE ARG2_TYPE *)y; \
return (__CLC_XCONCAT(RET_TYPE, 3))(FUNCTION(x.s0, ptr), \
FUNCTION(x.s1, ptr + 1), \
FUNCTION(x.s2, ptr + 2)); \
return (__CLC_XCONCAT(RET_TYPE, 3))(__CLC_FUNCTION(x.s0, ptr), \
__CLC_FUNCTION(x.s1, ptr + 1), \
__CLC_FUNCTION(x.s2, ptr + 2)); \
} \
\
DECLSPEC __CLC_XCONCAT(RET_TYPE, 4) \
FUNCTION(__CLC_XCONCAT(ARG1_TYPE, 4) x, \
ADDR_SPACE __CLC_XCONCAT(ARG2_TYPE, 4) * y) { \
__CLC_FUNCTION(__CLC_XCONCAT(ARG1_TYPE, 4) x, \
ADDR_SPACE __CLC_XCONCAT(ARG2_TYPE, 4) * y) { \
ADDR_SPACE ARG2_TYPE *ptr = (ADDR_SPACE ARG2_TYPE *)y; \
return (__CLC_XCONCAT(RET_TYPE, 4))( \
FUNCTION(x.s0, ptr), FUNCTION(x.s1, ptr + 1), FUNCTION(x.s2, ptr + 2), \
FUNCTION(x.s3, ptr + 3)); \
__CLC_FUNCTION(x.s0, ptr), __CLC_FUNCTION(x.s1, ptr + 1), \
__CLC_FUNCTION(x.s2, ptr + 2), __CLC_FUNCTION(x.s3, ptr + 3)); \
} \
\
DECLSPEC __CLC_XCONCAT(RET_TYPE, 8) \
FUNCTION(__CLC_XCONCAT(ARG1_TYPE, 8) x, \
ADDR_SPACE __CLC_XCONCAT(ARG2_TYPE, 8) * y) { \
__CLC_FUNCTION(__CLC_XCONCAT(ARG1_TYPE, 8) x, \
ADDR_SPACE __CLC_XCONCAT(ARG2_TYPE, 8) * y) { \
ADDR_SPACE ARG2_TYPE *ptr = (ADDR_SPACE ARG2_TYPE *)y; \
return (__CLC_XCONCAT(RET_TYPE, 8))( \
FUNCTION(x.s0, ptr), FUNCTION(x.s1, ptr + 1), FUNCTION(x.s2, ptr + 2), \
FUNCTION(x.s3, ptr + 3), FUNCTION(x.s4, ptr + 4), \
FUNCTION(x.s5, ptr + 5), FUNCTION(x.s6, ptr + 6), \
FUNCTION(x.s7, ptr + 7)); \
__CLC_FUNCTION(x.s0, ptr), __CLC_FUNCTION(x.s1, ptr + 1), \
__CLC_FUNCTION(x.s2, ptr + 2), __CLC_FUNCTION(x.s3, ptr + 3), \
__CLC_FUNCTION(x.s4, ptr + 4), __CLC_FUNCTION(x.s5, ptr + 5), \
__CLC_FUNCTION(x.s6, ptr + 6), __CLC_FUNCTION(x.s7, ptr + 7)); \
} \
\
DECLSPEC __CLC_XCONCAT(RET_TYPE, 16) \
FUNCTION(__CLC_XCONCAT(ARG1_TYPE, 16) x, \
ADDR_SPACE __CLC_XCONCAT(ARG2_TYPE, 16) * y) { \
__CLC_FUNCTION(__CLC_XCONCAT(ARG1_TYPE, 16) x, \
ADDR_SPACE __CLC_XCONCAT(ARG2_TYPE, 16) * y) { \
ADDR_SPACE ARG2_TYPE *ptr = (ADDR_SPACE ARG2_TYPE *)y; \
return (__CLC_XCONCAT(RET_TYPE, 16))( \
FUNCTION(x.s0, ptr), FUNCTION(x.s1, ptr + 1), FUNCTION(x.s2, ptr + 2), \
FUNCTION(x.s3, ptr + 3), FUNCTION(x.s4, ptr + 4), \
FUNCTION(x.s5, ptr + 5), FUNCTION(x.s6, ptr + 6), \
FUNCTION(x.s7, ptr + 7), FUNCTION(x.s8, ptr + 8), \
FUNCTION(x.s9, ptr + 9), FUNCTION(x.sa, ptr + 10), \
FUNCTION(x.sb, ptr + 11), FUNCTION(x.sc, ptr + 12), \
FUNCTION(x.sd, ptr + 13), FUNCTION(x.se, ptr + 14), \
FUNCTION(x.sf, ptr + 15)); \
__CLC_FUNCTION(x.s0, ptr), __CLC_FUNCTION(x.s1, ptr + 1), \
__CLC_FUNCTION(x.s2, ptr + 2), __CLC_FUNCTION(x.s3, ptr + 3), \
__CLC_FUNCTION(x.s4, ptr + 4), __CLC_FUNCTION(x.s5, ptr + 5), \
__CLC_FUNCTION(x.s6, ptr + 6), __CLC_FUNCTION(x.s7, ptr + 7), \
__CLC_FUNCTION(x.s8, ptr + 8), __CLC_FUNCTION(x.s9, ptr + 9), \
__CLC_FUNCTION(x.sa, ptr + 10), __CLC_FUNCTION(x.sb, ptr + 11), \
__CLC_FUNCTION(x.sc, ptr + 12), __CLC_FUNCTION(x.sd, ptr + 13), \
__CLC_FUNCTION(x.se, ptr + 14), __CLC_FUNCTION(x.sf, ptr + 15)); \
}
#endif // __CLC_CLCMACRO_H__

View File

@ -10,10 +10,10 @@
#define __CLC_COMMON_CLC_DEGREES_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_degrees
#define __CLC_FUNCTION __clc_degrees
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_COMMON_CLC_DEGREES_H__

View File

@ -10,10 +10,10 @@
#define __CLC_COMMON_CLC_RADIANS_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_radians
#define __CLC_FUNCTION __clc_radians
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_COMMON_CLC_RADIANS_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_COMMON_CLC_SIGN_H__
#define __CLC_COMMON_CLC_SIGN_H__
#define FUNCTION __clc_sign
#define __CLC_FUNCTION __clc_sign
#define __CLC_BODY <clc/math/unary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_COMMON_CLC_SIGN_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_COMMON_CLC_STEP_H__
#define __CLC_COMMON_CLC_STEP_H__
#define FUNCTION __clc_step
#define __CLC_FUNCTION __clc_step
#define __CLC_BODY <clc/shared/binary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_COMMON_CLC_STEP_H__

View File

@ -11,6 +11,6 @@
__CLC_VECSIZE_OR_1 == 3 || __CLC_VECSIZE_OR_1 == 4)
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_SCALAR_GENTYPE
FUNCTION(__CLC_GENTYPE a, __CLC_GENTYPE b);
__CLC_FUNCTION(__CLC_GENTYPE a, __CLC_GENTYPE b);
#endif

View File

@ -8,17 +8,17 @@
#include <clc/utils.h>
#ifndef __IMPL_FUNCTION
#define __IMPL_FUNCTION(x) __CLC_CONCAT(__clc_, x)
#ifndef __CLC_IMPL_FUNCTION
#define __CLC_IMPL_FUNCTION(x) __CLC_CONCAT(__clc_, x)
#endif
// Geometric functions are only defined for scalar, vec2, vec3 and vec4
#if (__CLC_VECSIZE_OR_1 == 1 || __CLC_VECSIZE_OR_1 == 2 || \
__CLC_VECSIZE_OR_1 == 3 || __CLC_VECSIZE_OR_1 == 4)
_CLC_OVERLOAD _CLC_DEF __CLC_SCALAR_GENTYPE FUNCTION(__CLC_GENTYPE a,
__CLC_GENTYPE b) {
return __IMPL_FUNCTION(FUNCTION)(a, b);
_CLC_OVERLOAD _CLC_DEF __CLC_SCALAR_GENTYPE __CLC_FUNCTION(__CLC_GENTYPE a,
__CLC_GENTYPE b) {
return __CLC_IMPL_FUNCTION(__CLC_FUNCTION)(a, b);
}
#endif

View File

@ -9,11 +9,11 @@
#ifndef __CLC_GEOMETRIC_CLC_DISTANCE_H__
#define __CLC_GEOMETRIC_CLC_DISTANCE_H__
#define FUNCTION __clc_distance
#define __CLC_FUNCTION __clc_distance
#define __CLC_BODY <clc/geometric/binary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_GEOMETRIC_CLC_DISTANCE_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_GEOMETRIC_CLC_DOT_H__
#define __CLC_GEOMETRIC_CLC_DOT_H__
#define FUNCTION __clc_dot
#define __CLC_FUNCTION __clc_dot
#define __CLC_BODY <clc/geometric/binary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_GEOMETRIC_CLC_DOT_H__

View File

@ -9,12 +9,12 @@
#ifndef __CLC_GEOMETRIC_CLC_FAST_DISTANCE_H__
#define __CLC_GEOMETRIC_CLC_FAST_DISTANCE_H__
#define __FLOAT_ONLY
#define FUNCTION __clc_fast_distance
#define __CLC_FLOAT_ONLY
#define __CLC_FUNCTION __clc_fast_distance
#define __CLC_BODY <clc/geometric/binary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_GEOMETRIC_CLC_FAST_DISTANCE_H__

View File

@ -9,12 +9,12 @@
#ifndef __CLC_GEOMETRIC_CLC_FAST_LENGTH_H__
#define __CLC_GEOMETRIC_CLC_FAST_LENGTH_H__
#define __FLOAT_ONLY
#define FUNCTION __clc_fast_length
#define __CLC_FLOAT_ONLY
#define __CLC_FUNCTION __clc_fast_length
#define __CLC_BODY <clc/geometric/unary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_GEOMETRIC_CLC_FAST_LENGTH_H__

View File

@ -9,13 +9,13 @@
#ifndef __CLC_GEOMETRIC_CLC_FAST_NORMALIZE_H__
#define __CLC_GEOMETRIC_CLC_FAST_NORMALIZE_H__
#define __FLOAT_ONLY
#define __CLC_FLOAT_ONLY
#define __CLC_GEOMETRIC_RET_GENTYPE
#define FUNCTION __clc_fast_normalize
#define __CLC_FUNCTION __clc_fast_normalize
#define __CLC_BODY <clc/geometric/unary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#undef __CLC_GEOMETRIC_RET_GENTYPE
#endif // __CLC_GEOMETRIC_CLC_FAST_NORMALIZE_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_GEOMETRIC_CLC_LENGTH_H__
#define __CLC_GEOMETRIC_CLC_LENGTH_H__
#define FUNCTION __clc_length
#define __CLC_FUNCTION __clc_length
#define __CLC_BODY <clc/geometric/unary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_GEOMETRIC_CLC_LENGTH_H__

View File

@ -10,11 +10,11 @@
#define __CLC_GEOMETRIC_CLC_NORMALIZE_H__
#define __CLC_GEOMETRIC_RET_GENTYPE
#define FUNCTION __clc_normalize
#define __CLC_FUNCTION __clc_normalize
#define __CLC_BODY <clc/geometric/unary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#undef __CLC_GEOMETRIC_RET_GENTYPE
#endif // __CLC_GEOMETRIC_CLC_NORMALIZE_H__

View File

@ -16,6 +16,6 @@ _CLC_OVERLOAD _CLC_CONST _CLC_DECL
#else
__CLC_SCALAR_GENTYPE
#endif
FUNCTION(__CLC_GENTYPE a);
__CLC_FUNCTION(__CLC_GENTYPE a);
#endif

View File

@ -8,8 +8,8 @@
#include <clc/utils.h>
#ifndef __IMPL_FUNCTION
#define __IMPL_FUNCTION(x) __CLC_CONCAT(__clc_, x)
#ifndef __CLC_IMPL_FUNCTION
#define __CLC_IMPL_FUNCTION(x) __CLC_CONCAT(__clc_, x)
#endif
// Geometric functions are only defined for scalar, vec2, vec3 and vec4
@ -22,8 +22,8 @@ _CLC_OVERLOAD _CLC_DEF
#else
__CLC_SCALAR_GENTYPE
#endif
FUNCTION(__CLC_GENTYPE a) {
return __IMPL_FUNCTION(FUNCTION)(a);
__CLC_FUNCTION(__CLC_GENTYPE a) {
return __CLC_IMPL_FUNCTION(__CLC_FUNCTION)(a);
}
#endif

View File

@ -9,11 +9,11 @@
#ifndef __CLC_INTEGER_CLC_ADD_SAT_H__
#define __CLC_INTEGER_CLC_ADD_SAT_H__
#define FUNCTION __clc_add_sat
#define __CLC_FUNCTION __clc_add_sat
#define __CLC_BODY <clc/shared/binary_decl.inc>
#include <clc/integer/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_INTEGER_CLC_ADD_SAT_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_INTEGER_CLC_BIT_REVERSE_H__
#define __CLC_INTEGER_CLC_BIT_REVERSE_H__
#define FUNCTION __clc_bit_reverse
#define __CLC_FUNCTION __clc_bit_reverse
#define __CLC_BODY <clc/shared/unary_decl.inc>
#include <clc/integer/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_INTEGER_CLC_BIT_REVERSE_H__

View File

@ -6,5 +6,5 @@
//
//===----------------------------------------------------------------------===//
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __RETTYPE FUNCTION(__CLC_GENTYPE base,
uint offset, uint count);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_RETTYPE
__CLC_FUNCTION(__CLC_GENTYPE base, uint offset, uint count);

View File

@ -11,13 +11,13 @@
#include <clc/internal/clc.h>
#define FUNCTION __clc_bitfield_extract_signed
#define __RETTYPE __CLC_S_GENTYPE
#define __CLC_FUNCTION __clc_bitfield_extract_signed
#define __CLC_RETTYPE __CLC_S_GENTYPE
#define __CLC_BODY <clc/integer/clc_bitfield_extract_decl.inc>
#include <clc/integer/gentype.inc>
#undef __RETTYPE
#undef FUNCTION
#undef __CLC_RETTYPE
#undef __CLC_FUNCTION
#endif // __CLC_INTEGER_CLC_BITFIELD_EXTRACT_SIGNED_H__

View File

@ -11,13 +11,13 @@
#include <clc/internal/clc.h>
#define FUNCTION __clc_bitfield_extract_unsigned
#define __RETTYPE __CLC_U_GENTYPE
#define __CLC_FUNCTION __clc_bitfield_extract_unsigned
#define __CLC_RETTYPE __CLC_U_GENTYPE
#define __CLC_BODY <clc/integer/clc_bitfield_extract_decl.inc>
#include <clc/integer/gentype.inc>
#undef __RETTYPE
#undef FUNCTION
#undef __CLC_RETTYPE
#undef __CLC_FUNCTION
#endif // __CLC_INTEGER_CLC_BITFIELD_EXTRACT_SIGNED_H__

View File

@ -11,7 +11,7 @@
#include <clc/internal/clc.h>
#define FUNCTION __clc_bitfield_insert
#define __CLC_FUNCTION __clc_bitfield_insert
#define __CLC_BODY <clc/integer/clc_bitfield_insert.inc>
#include <clc/integer/gentype.inc>

View File

@ -6,7 +6,5 @@
//
//===----------------------------------------------------------------------===//
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE FUNCTION(__CLC_GENTYPE base,
__CLC_GENTYPE insert,
uint offset,
uint count);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION(
__CLC_GENTYPE base, __CLC_GENTYPE insert, uint offset, uint count);

View File

@ -9,11 +9,11 @@
#ifndef __CLC_INTEGER_CLC_CLZ_H__
#define __CLC_INTEGER_CLC_CLZ_H__
#define FUNCTION __clc_clz
#define __CLC_FUNCTION __clc_clz
#define __CLC_BODY <clc/shared/unary_decl.inc>
#include <clc/integer/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_INTEGER_CLC_CLZ_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_INTEGER_CLC_CTZ_H__
#define __CLC_INTEGER_CLC_CTZ_H__
#define FUNCTION __clc_ctz
#define __CLC_FUNCTION __clc_ctz
#define __CLC_BODY <clc/shared/unary_decl.inc>
#include <clc/integer/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_INTEGER_CLC_CTZ_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_INTEGER_CLC_HADD_H__
#define __CLC_INTEGER_CLC_HADD_H__
#define FUNCTION __clc_hadd
#define __CLC_FUNCTION __clc_hadd
#define __CLC_BODY <clc/shared/binary_decl.inc>
#include <clc/integer/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_INTEGER_CLC_HADD_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_INTEGER_CLC_MAD24_H__
#define __CLC_INTEGER_CLC_MAD24_H__
#define FUNCTION __clc_mad24
#define __CLC_FUNCTION __clc_mad24
#define __CLC_BODY <clc/shared/ternary_decl.inc>
#include <clc/integer/gentype24.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_INTEGER_CLC_MAD24_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_INTEGER_CLC_MAD_SAT_H__
#define __CLC_INTEGER_CLC_MAD_SAT_H__
#define FUNCTION __clc_mad_sat
#define __CLC_FUNCTION __clc_mad_sat
#define __CLC_BODY <clc/shared/ternary_decl.inc>
#include <clc/integer/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_INTEGER_CLC_MAD_SAT_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_INTEGER_CLC_MUL24_H__
#define __CLC_INTEGER_CLC_MUL24_H__
#define FUNCTION __clc_mul24
#define __CLC_FUNCTION __clc_mul24
#define __CLC_BODY <clc/shared/binary_decl.inc>
#include <clc/integer/gentype24.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_INTEGER_CLC_MUL24_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_INTEGER_CLC_MUL_HI_H__
#define __CLC_INTEGER_CLC_MUL_HI_H__
#define FUNCTION __clc_mul_hi
#define __CLC_FUNCTION __clc_mul_hi
#define __CLC_BODY <clc/shared/binary_decl.inc>
#include <clc/integer/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_INTEGER_CLC_MUL_HI_H__

View File

@ -9,12 +9,12 @@
#ifndef __CLC_INTEGER_CLC_POPCOUNT_H__
#define __CLC_INTEGER_CLC_POPCOUNT_H__
#define FUNCTION __clc_popcount
#define __CLC_FUNCTION __clc_popcount
#define __CLC_BODY <clc/shared/unary_decl.inc>
#include <clc/integer/gentype.inc>
#undef __CLC_INTRINSIC
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_INTEGER_CLC_POPCOUNT_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_INTEGER_CLC_RHADD_H__
#define __CLC_INTEGER_CLC_RHADD_H__
#define FUNCTION __clc_rhadd
#define __CLC_FUNCTION __clc_rhadd
#define __CLC_BODY <clc/shared/binary_decl.inc>
#include <clc/integer/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_INTEGER_CLC_RHADD_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_INTEGER_CLC_ROTATE_H__
#define __CLC_INTEGER_CLC_ROTATE_H__
#define FUNCTION __clc_rotate
#define __CLC_FUNCTION __clc_rotate
#define __CLC_BODY <clc/shared/binary_decl.inc>
#include <clc/integer/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_INTEGER_CLC_ROTATE_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_INTEGER_CLC_SUB_SAT_H__
#define __CLC_INTEGER_CLC_SUB_SAT_H__
#define FUNCTION __clc_sub_sat
#define __CLC_FUNCTION __clc_sub_sat
#define __CLC_BODY <clc/shared/binary_decl.inc>
#include <clc/integer/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_INTEGER_CLC_SUB_SAT_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_INTERNAL_MATH_CLC_SW_FMA_H__
#define __CLC_INTERNAL_MATH_CLC_SW_FMA_H__
#define FUNCTION __clc_sw_fma
#define __CLC_FUNCTION __clc_sw_fma
#define __CLC_BODY <clc/shared/ternary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_INTERNAL_MATH_CLC_SW_FMA_H__

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
_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);
__CLC_FUNCTION(__CLC_GENTYPE a, __CLC_GENTYPE b);
_CLC_OVERLOAD _CLC_CONST _CLC_DECL __CLC_GENTYPE
__CLC_FUNCTION(__CLC_GENTYPE a, __CLC_SCALAR_GENTYPE b);

View File

@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//
_CLC_OVERLOAD _CLC_CONST _CLC_DEF __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x,
__CLC_GENTYPE y) {
_CLC_OVERLOAD _CLC_CONST _CLC_DEF __CLC_GENTYPE
__CLC_FUNCTION(__CLC_GENTYPE x, __CLC_GENTYPE y) {
return __CLC_CONVERT_GENTYPE(
FUNCTION(__CLC_CONVERT_FLOATN(x), __CLC_CONVERT_FLOATN(y)));
__CLC_FUNCTION(__CLC_CONVERT_FLOATN(x), __CLC_CONVERT_FLOATN(y)));
}

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_ACOS_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_acos
#define __CLC_FUNCTION __clc_acos
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_ACOS_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_ACOSH_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_acosh
#define __CLC_FUNCTION __clc_acosh
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_ACOSH_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_ACOSPI_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_acospi
#define __CLC_FUNCTION __clc_acospi
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_ACOSPI_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_ASIN_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_asin
#define __CLC_FUNCTION __clc_asin
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_ASIN_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_ASINH_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_asinh
#define __CLC_FUNCTION __clc_asinh
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_ASINH_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_ASINPI_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_asinpi
#define __CLC_FUNCTION __clc_asinpi
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_ASINPI_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_ATAN_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_atan
#define __CLC_FUNCTION __clc_atan
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_ATAN_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_ATAN2_H__
#define __CLC_BODY <clc/shared/binary_decl.inc>
#define FUNCTION __clc_atan2
#define __CLC_FUNCTION __clc_atan2
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_ATAN2_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_ATAN2PI_H__
#define __CLC_BODY <clc/shared/binary_decl.inc>
#define FUNCTION __clc_atan2pi
#define __CLC_FUNCTION __clc_atan2pi
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_ATAN2PI_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_ATANH_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_atanh
#define __CLC_FUNCTION __clc_atanh
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_ATANH_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_ATANPI_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_atanpi
#define __CLC_FUNCTION __clc_atanpi
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_ATANPI_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_CBRT_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_cbrt
#define __CLC_FUNCTION __clc_cbrt
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_CBRT_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_CEIL_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_ceil
#define __CLC_FUNCTION __clc_ceil
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_CEIL_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_COPYSIGN_H__
#define __CLC_BODY <clc/shared/binary_decl.inc>
#define FUNCTION __clc_copysign
#define __CLC_FUNCTION __clc_copysign
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_COPYSIGN_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_COS_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_cos
#define __CLC_FUNCTION __clc_cos
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_COS_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_COSH_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_cosh
#define __CLC_FUNCTION __clc_cosh
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_COSH_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_COSPI_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_cospi
#define __CLC_FUNCTION __clc_cospi
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_COSPI_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_ERF_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_erf
#define __CLC_FUNCTION __clc_erf
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_ERF_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_ERFC_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_erfc
#define __CLC_FUNCTION __clc_erfc
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_ERFC_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_EXP_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_exp
#define __CLC_FUNCTION __clc_exp
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_EXP_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_EXP10_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_exp10
#define __CLC_FUNCTION __clc_exp10
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_EXP10_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_EXP2_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_exp2
#define __CLC_FUNCTION __clc_exp2
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_EXP2_H__

View File

@ -9,7 +9,7 @@
#ifndef __CLC_MATH_CLC_EXP_HELPER
#define __CLC_MATH_CLC_EXP_HELPER
#define __DOUBLE_ONLY
#define __CLC_DOUBLE_ONLY
#define __CLC_BODY <clc/math/clc_exp_helper.inc>
#include <clc/math/gentype.inc>

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_EXPM1_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_expm1
#define __CLC_FUNCTION __clc_expm1
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_EXPM1_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_FABS_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_fabs
#define __CLC_FUNCTION __clc_fabs
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_FABS_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_FDIM_H__
#define __CLC_BODY <clc/shared/binary_decl.inc>
#define FUNCTION __clc_fdim
#define __CLC_FUNCTION __clc_fdim
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_FDIM_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_FLOOR_H__
#define __CLC_BODY <clc/math/unary_decl.inc>
#define FUNCTION __clc_floor
#define __CLC_FUNCTION __clc_floor
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_FLOOR_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_MATH_CLC_FMA_H__
#define __CLC_MATH_CLC_FMA_H__
#define FUNCTION __clc_fma
#define __CLC_FUNCTION __clc_fma
#define __CLC_BODY <clc/shared/ternary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_FMA_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_MATH_CLC_FMAX_H__
#define __CLC_MATH_CLC_FMAX_H__
#define FUNCTION __clc_fmax
#define __CLC_FUNCTION __clc_fmax
#define __CLC_BODY <clc/shared/binary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_FMAX_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_MATH_CLC_FMIN_H__
#define __CLC_MATH_CLC_FMIN_H__
#define FUNCTION __clc_fmin
#define __CLC_FUNCTION __clc_fmin
#define __CLC_BODY <clc/shared/binary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_FMIN_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_MATH_CLC_FMOD_H__
#define __CLC_MATH_CLC_FMOD_H__
#define FUNCTION __clc_fmod
#define __CLC_FUNCTION __clc_fmod
#define __CLC_BODY <clc/shared/binary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_FMOD_H__

View File

@ -9,11 +9,11 @@
#ifndef __CLC_MATH_CLC_FRACT_H__
#define __CLC_MATH_CLC_FRACT_H__
#define FUNCTION __clc_fract
#define __CLC_FUNCTION __clc_fract
#define __CLC_BODY <clc/math/unary_decl_with_ptr.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_FRACT_H__

View File

@ -9,10 +9,10 @@
#ifndef __CLC_MATH_CLC_FREXP_H__
#define __CLC_MATH_CLC_FREXP_H__
#define FUNCTION __clc_frexp
#define __CLC_FUNCTION __clc_frexp
#define __CLC_BODY <clc/math/unary_decl_with_int_ptr.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_FREXP_H__

View File

@ -9,12 +9,12 @@
#ifndef __CLC_MATH_CLC_HALF_COS_H__
#define __CLC_MATH_CLC_HALF_COS_H__
#define __FLOAT_ONLY
#define FUNCTION __clc_half_cos
#define __CLC_FLOAT_ONLY
#define __CLC_FUNCTION __clc_half_cos
#define __CLC_BODY <clc/shared/unary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_HALF_COS_H__

View File

@ -9,12 +9,12 @@
#ifndef __CLC_MATH_CLC_HALF_DIVIDE_H__
#define __CLC_MATH_CLC_HALF_DIVIDE_H__
#define __FLOAT_ONLY
#define FUNCTION __clc_half_divide
#define __CLC_FLOAT_ONLY
#define __CLC_FUNCTION __clc_half_divide
#define __CLC_BODY <clc/shared/binary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_HALF_DIVIDE_H__

View File

@ -9,12 +9,12 @@
#ifndef __CLC_MATH_CLC_HALF_EXP_H__
#define __CLC_MATH_CLC_HALF_EXP_H__
#define __FLOAT_ONLY
#define FUNCTION __clc_half_exp
#define __CLC_FLOAT_ONLY
#define __CLC_FUNCTION __clc_half_exp
#define __CLC_BODY <clc/shared/unary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_HALF_EXP_H__

View File

@ -9,12 +9,12 @@
#ifndef __CLC_MATH_CLC_HALF_EXP10_H__
#define __CLC_MATH_CLC_HALF_EXP10_H__
#define __FLOAT_ONLY
#define FUNCTION __clc_half_exp10
#define __CLC_FLOAT_ONLY
#define __CLC_FUNCTION __clc_half_exp10
#define __CLC_BODY <clc/shared/unary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_HALF_EXP10_H__

View File

@ -9,12 +9,12 @@
#ifndef __CLC_MATH_CLC_HALF_EXP2_H__
#define __CLC_MATH_CLC_HALF_EXP2_H__
#define __FLOAT_ONLY
#define FUNCTION __clc_half_exp2
#define __CLC_FLOAT_ONLY
#define __CLC_FUNCTION __clc_half_exp2
#define __CLC_BODY <clc/shared/unary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_HALF_EXP2_H__

View File

@ -9,12 +9,12 @@
#ifndef __CLC_MATH_CLC_HALF_LOG_H__
#define __CLC_MATH_CLC_HALF_LOG_H__
#define __FLOAT_ONLY
#define FUNCTION __clc_half_log
#define __CLC_FLOAT_ONLY
#define __CLC_FUNCTION __clc_half_log
#define __CLC_BODY <clc/shared/unary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_HALF_LOG_H__

View File

@ -9,12 +9,12 @@
#ifndef __CLC_MATH_CLC_HALF_LOG10_H__
#define __CLC_MATH_CLC_HALF_LOG10_H__
#define __FLOAT_ONLY
#define FUNCTION __clc_half_log10
#define __CLC_FLOAT_ONLY
#define __CLC_FUNCTION __clc_half_log10
#define __CLC_BODY <clc/shared/unary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_HALF_LOG10_H__

View File

@ -9,12 +9,12 @@
#ifndef __CLC_MATH_CLC_HALF_LOG2_H__
#define __CLC_MATH_CLC_HALF_LOG2_H__
#define __FLOAT_ONLY
#define FUNCTION __clc_half_log2
#define __CLC_FLOAT_ONLY
#define __CLC_FUNCTION __clc_half_log2
#define __CLC_BODY <clc/shared/unary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_HALF_LOG2_H__

View File

@ -9,12 +9,12 @@
#ifndef __CLC_MATH_CLC_HALF_POWR_H__
#define __CLC_MATH_CLC_HALF_POWR_H__
#define __FLOAT_ONLY
#define FUNCTION __clc_half_powr
#define __CLC_FLOAT_ONLY
#define __CLC_FUNCTION __clc_half_powr
#define __CLC_BODY <clc/shared/binary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_HALF_POWR_H__

View File

@ -9,12 +9,12 @@
#ifndef __CLC_MATH_CLC_HALF_RECIP_H__
#define __CLC_MATH_CLC_HALF_RECIP_H__
#define __FLOAT_ONLY
#define FUNCTION __clc_half_recip
#define __CLC_FLOAT_ONLY
#define __CLC_FUNCTION __clc_half_recip
#define __CLC_BODY <clc/shared/unary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_HALF_RECIP_H__

View File

@ -9,12 +9,12 @@
#ifndef __CLC_MATH_CLC_HALF_RSQRT_H__
#define __CLC_MATH_CLC_HALF_RSQRT_H__
#define __FLOAT_ONLY
#define FUNCTION __clc_half_rsqrt
#define __CLC_FLOAT_ONLY
#define __CLC_FUNCTION __clc_half_rsqrt
#define __CLC_BODY <clc/shared/unary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_HALF_RSQRT_H__

View File

@ -9,12 +9,12 @@
#ifndef __CLC_MATH_CLC_HALF_SIN_H__
#define __CLC_MATH_CLC_HALF_SIN_H__
#define __FLOAT_ONLY
#define FUNCTION __clc_half_sin
#define __CLC_FLOAT_ONLY
#define __CLC_FUNCTION __clc_half_sin
#define __CLC_BODY <clc/shared/unary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_HALF_SIN_H__

View File

@ -9,12 +9,12 @@
#ifndef __CLC_MATH_CLC_HALF_SQRT_H__
#define __CLC_MATH_CLC_HALF_SQRT_H__
#define __FLOAT_ONLY
#define FUNCTION __clc_half_sqrt
#define __CLC_FLOAT_ONLY
#define __CLC_FUNCTION __clc_half_sqrt
#define __CLC_BODY <clc/shared/unary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_HALF_SQRT_H__

View File

@ -9,12 +9,12 @@
#ifndef __CLC_MATH_CLC_HALF_TAN_H__
#define __CLC_MATH_CLC_HALF_TAN_H__
#define __FLOAT_ONLY
#define FUNCTION __clc_half_tan
#define __CLC_FLOAT_ONLY
#define __CLC_FUNCTION __clc_half_tan
#define __CLC_BODY <clc/shared/unary_decl.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_HALF_TAN_H__

View File

@ -10,10 +10,10 @@
#define __CLC_MATH_CLC_HYPOT_H__
#define __CLC_BODY <clc/shared/binary_decl.inc>
#define FUNCTION __clc_hypot
#define __CLC_FUNCTION __clc_hypot
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_HYPOT_H__

View File

@ -9,10 +9,10 @@
#ifndef __CLC_MATH_CLC_ILOGB_H__
#define __CLC_MATH_CLC_ILOGB_H__
#define FUNCTION __clc_ilogb
#define __CLC_FUNCTION __clc_ilogb
#define __CLC_BODY <clc/math/unary_decl_with_int_return.inc>
#include <clc/math/gentype.inc>
#undef FUNCTION
#undef __CLC_FUNCTION
#endif // __CLC_MATH_CLC_ILOGB_H__

Some files were not shown because too many files have changed in this diff Show More