Skip to content

Commit 7b89c00

Browse files
pgorlanibader
andauthored
Update libclc/ptx-nvidiacl/libspirv/math/tanh.cl
Co-authored-by: Alexey Bader <[email protected]>
1 parent 3db7642 commit 7b89c00

File tree

1 file changed

+3
-4
lines changed
  • libclc/ptx-nvidiacl/libspirv/math

1 file changed

+3
-4
lines changed

libclc/ptx-nvidiacl/libspirv/math/tanh.cl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@
1414
int __clc_nvvm_reflect_arch();
1515
int __clc_nvvm_reflect_approx_tanh();
1616

17-
float __select_tanhf (float x){
18-
if(__clc_nvvm_reflect_approx_tanh() && __clc_nvvm_reflect_arch() >= 800) {
17+
float __select_tanhf (float x) {
18+
if (__clc_nvvm_reflect_approx_tanh() && __clc_nvvm_reflect_arch() >= 800) {
1919
return __nvvm_tanh_approx_f(x);
20-
} else {
21-
return __nv_tanhf(x);
2220
}
21+
return __nv_tanhf(x);
2322
}
2423

2524
#define __CLC_FUNCTION __spirv_ocl_tanh

0 commit comments

Comments
 (0)