Skip to content

Commit

Permalink
[SYCL] remove float type functions in fallback library for fp64 compl…
Browse files Browse the repository at this point in the history
…ex (#1370)

Signed-off-by: gejin <[email protected]>
  • Loading branch information
jinge90 authored Mar 24, 2020
1 parent 3f6b74b commit 6ccd84a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libdevice/fallback-complex-fp64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ double __complex__ __devicelib_cacos(double __complex__ z) {
double __complex__ w =
__devicelib_clog(z + __devicelib_csqrt(__sqr(z) - 1.0));
if (__spirv_SignBitSet(z_imag))
return CMPLX(__spirv_ocl_fabs(__devicelib_cimagf(w)),
return CMPLX(__spirv_ocl_fabs(__devicelib_cimag(w)),
__spirv_ocl_fabs(__devicelib_creal(w)));
return CMPLX(__spirv_ocl_fabs(__devicelib_cimagf(w)),
return CMPLX(__spirv_ocl_fabs(__devicelib_cimag(w)),
-__spirv_ocl_fabs(__devicelib_creal(w)));
}

Expand Down

0 comments on commit 6ccd84a

Please sign in to comment.