use hypotf
This commit is contained in:
parent
d93537d128
commit
c790603bf6
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue