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 re = cplx[band][0];
|
||||||
float im = cplx[band][1];
|
float im = cplx[band][1];
|
||||||
float mag = hypot(re, im);
|
float mag = hypotf(re, im);
|
||||||
return mag * scalar;
|
return mag * scalar;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ band_mag( fftwf_complex * const cplx, unsigned int band, float scalar )
|
|||||||
{
|
{
|
||||||
float re = cplx[band][0];
|
float re = cplx[band][0];
|
||||||
float im = cplx[band][1];
|
float im = cplx[band][1];
|
||||||
float mag = hypot(re, im) * scalar;
|
float mag = hypotf(re, im) * scalar;
|
||||||
return mag;
|
return mag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user