Skip to content

Commit f898b54

Browse files
committed
apply suggestion
1 parent 7daaa41 commit f898b54

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

libdevice/fallback-complex-fp64.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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);

libdevice/fallback-complex.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)