We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b48f08f commit b51bb87Copy full SHA for b51bb87
libdevice/fallback-complex.cpp
@@ -285,7 +285,7 @@ DEVICE_EXTERN_C
285
float __complex__ __sqrf(float __complex__ z) {
286
float z_real = __devicelib_crealf(z);
287
float z_imag = __devicelib_cimagf(z);
288
- return CMPLXF((z_real + z_imag) * (z_real - z_imag), 2.0 * z_real * z_imag);
+ return CMPLXF((z_real + z_imag) * (z_real - z_imag), 2.0f * z_real * z_imag);
289
}
290
291
DEVICE_EXTERN_C
0 commit comments