File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
libclc/ptx-nvidiacl/libspirv/math Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ _CLC_DEF _CLC_OVERLOAD half __spirv_ocl_fmax(half x, half y) {
37
37
if (__clc_nvvm_reflect_arch () >= 800 ) {
38
38
return __nvvm_fmax_f16 (x , y );
39
39
}
40
- return x > y ? x : y ;
40
+ return __nv_fmaxf ( x , y ) ;
41
41
}
42
42
_CLC_DEF _CLC_OVERLOAD half2 __spirv_ocl_fmax (half2 x , half2 y ) {
43
43
if (__clc_nvvm_reflect_arch () >= 800 ) {
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ _CLC_DEF _CLC_OVERLOAD half __spirv_ocl_fmin(half x, half y) {
37
37
if (__clc_nvvm_reflect_arch () >= 800 ) {
38
38
return __nvvm_fmin_f16 (x , y );
39
39
}
40
- return x < y ? x : y ;
40
+ return __nv_fminf ( x , y ) ;
41
41
}
42
42
_CLC_DEF _CLC_OVERLOAD half2 __spirv_ocl_fmin (half2 x , half2 y ) {
43
43
if (__clc_nvvm_reflect_arch () >= 800 ) {
You can’t perform that action at this time.
0 commit comments