You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
486 B
23 lines
486 B
4 months ago
|
|
||
|
#ifndef __CLC_SCALAR
|
||
|
|
||
|
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x, __CLC_GENTYPE y) {
|
||
|
return FUNCTION_IMPL(x, y);
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
|
||
|
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x, float y) {
|
||
|
__CLC_GENTYPE vec_y = (__CLC_GENTYPE) (y);
|
||
|
return FUNCTION_IMPL(x, vec_y);
|
||
|
}
|
||
|
|
||
|
#ifdef cl_khr_fp64
|
||
|
|
||
|
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE FUNCTION(__CLC_GENTYPE x, double y) {
|
||
|
__CLC_GENTYPE vec_y = (__CLC_GENTYPE) (y);
|
||
|
return FUNCTION_IMPL(x, vec_y);
|
||
|
}
|
||
|
|
||
|
#endif
|