use hypotf

This commit is contained in:
Kamal Mostafa 2011-06-03 17:30:08 -07:00
parent d93537d128
commit c790603bf6
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ band_mag( fftwf_complex * const cplx, unsigned int band, float scalar )
{
float re = cplx[band][0];
float im = cplx[band][1];
float mag = hypot(re, im);
float mag = hypotf(re, im);
return mag * scalar;
}

View File

@ -26,7 +26,7 @@ band_mag( fftwf_complex * const cplx, unsigned int band, float scalar )
{
float re = cplx[band][0];
float im = cplx[band][1];
float mag = hypot(re, im) * scalar;
float mag = hypotf(re, im) * scalar;
return mag;
}