From c790603bf6be24cb0d39efebe16fd30470506e51 Mon Sep 17 00:00:00 2001 From: Kamal Mostafa Date: Fri, 3 Jun 2011 17:30:08 -0700 Subject: [PATCH] use hypotf --- src/minimodem.c | 2 +- src/tscope_print.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/minimodem.c b/src/minimodem.c index b976f27..0d40383 100644 --- a/src/minimodem.c +++ b/src/minimodem.c @@ -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; } diff --git a/src/tscope_print.c b/src/tscope_print.c index 640cb36..595a077 100644 --- a/src/tscope_print.c +++ b/src/tscope_print.c @@ -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; }