Skip to content

Commit 5f48908

Browse files
committed
error if __CLC_MIN_VECSIZE > 3, use binary_def in fmax/fmin
1 parent b4db951 commit 5f48908

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

libclc/clc/include/clc/shared/binary_def_scalarize.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ _CLC_OVERLOAD __CLC_DEF_SPEC __CLC_RET_TYPE2 FUNCTION(__CLC_ARG1_TYPE2 x,
5555
#undef __CLC_ARG2_TYPE2
5656
#endif // __CLC_MIN_VECSIZE <= 2
5757

58+
#if __CLC_MIN_VECSIZE > 3
59+
#error "__CLC_MIN_VECSIZE > 3 isn't implemented"
60+
#endif
61+
5862
#define __CLC_RET_TYPE3 __CLC_XCONCAT(__CLC_RET_TYPE, 3)
5963
#define __CLC_ARG1_TYPE3 __CLC_XCONCAT(__CLC_ARG1_TYPE, 3)
6064
#define __CLC_ARG2_TYPE3 __CLC_XCONCAT(__CLC_ARG2_TYPE, 3)

libclc/clc/include/clc/shared/ternary_def_scalarize.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ _CLC_OVERLOAD __CLC_DEF_SPEC __CLC_RET_TYPE2 FUNCTION(__CLC_ARG1_TYPE2 x,
6363
#undef __CLC_ARG3_TYPE2
6464
#endif // __CLC_MIN_VECSIZE <= 2
6565

66+
#if __CLC_MIN_VECSIZE > 3
67+
#error "__CLC_MIN_VECSIZE > 3 isn't implemented"
68+
#endif
69+
6670
#define __CLC_RET_TYPE3 __CLC_XCONCAT(__CLC_RET_TYPE, 3)
6771
#define __CLC_ARG1_TYPE3 __CLC_XCONCAT(__CLC_ARG1_TYPE, 3)
6872
#define __CLC_ARG2_TYPE3 __CLC_XCONCAT(__CLC_ARG2_TYPE, 3)

libclc/clc/include/clc/shared/unary_def_scalarize.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ _CLC_OVERLOAD _CLC_DEF __CLC_RET_TYPE2 FUNCTION(__CLC_ARG1_TYPE2 x) {
4646
#undef __CLC_ARG1_TYPE2
4747
#endif // __CLC_MIN_VECSIZE <= 2
4848

49+
#if __CLC_MIN_VECSIZE > 3
50+
#error "__CLC_MIN_VECSIZE > 3 isn't implemented"
51+
#endif
52+
4953
#define __CLC_RET_TYPE3 __CLC_XCONCAT(__CLC_RET_TYPE, 3)
5054
#define __CLC_ARG1_TYPE3 __CLC_XCONCAT(__CLC_ARG1_TYPE, 3)
5155
_CLC_OVERLOAD _CLC_DEF __CLC_RET_TYPE3 FUNCTION(__CLC_ARG1_TYPE3 x) {

0 commit comments

Comments
 (0)