FreeDV lib: use cosf and sinf to be compatible with complex<float>

This commit is contained in:
f4exb 2019-04-08 16:17:23 +02:00
parent 89506fe368
commit 68bc8bd591
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@
#include "fdv_arm_math.h"
#define cmplx(value) (std::complex<float>{cos(value), sin(value)})
#define cmplx(value) (std::complex<float>{cosf(value), sinf(value)})
namespace FreeDV
{

View File

@ -43,8 +43,8 @@
#define TAU (2.0f * M_PI)
#define ROT45 (M_PI / 4.0f)
#define cmplx(value) (std::complex<float>{cos(value), sin(value)})
#define cmplxconj(value) (std::complex<float>{cos(value), -sin(value)})
#define cmplx(value) (std::complex<float>{cosf(value), sinf(value)})
#define cmplxconj(value) (std::complex<float>{cosf(value), -sinf(value)})
namespace FreeDV
{