File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -152,8 +152,7 @@ double __complex__ __devicelib_cexp(double __complex__ z) {
152152 } else if (__spirv_IsNan (z_real)) {
153153 if (z_imag == 0.0 )
154154 return z;
155- else /* z_imag != 0.0 */
156- return CMPLX (NAN, NAN);
155+ return CMPLX (NAN, NAN);
157156 } else if (__spirv_IsFinite (z_real) &&
158157 (__spirv_IsNan (z_imag) || __spirv_IsInf (z_imag))) {
159158 return CMPLX (NAN, NAN);
Original file line number Diff line number Diff line change @@ -153,8 +153,7 @@ float __complex__ __devicelib_cexpf(float __complex__ z) {
153153 } else if (__spirv_IsNan (z_real)) {
154154 if (z_imag == 0 .0f )
155155 return z;
156- else /* z_imag != 0.0f */
157- return CMPLX (NAN, NAN);
156+ return CMPLX (NAN, NAN);
158157 } else if (__spirv_IsFinite (z_real) &&
159158 (__spirv_IsNan (z_imag) || __spirv_IsInf (z_imag))) {
160159 return CMPLX (NAN, NAN);
You can’t perform that action at this time.
0 commit comments