mirror of https://github.com/f4exb/sdrangel.git
FreeDV lib: use cosf and sinf to be compatible with complex<float>
This commit is contained in:
parent
89506fe368
commit
68bc8bd591
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
#include "fdv_arm_math.h"
|
#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
|
namespace FreeDV
|
||||||
{
|
{
|
||||||
|
|
|
@ -43,8 +43,8 @@
|
||||||
#define TAU (2.0f * M_PI)
|
#define TAU (2.0f * M_PI)
|
||||||
#define ROT45 (M_PI / 4.0f)
|
#define ROT45 (M_PI / 4.0f)
|
||||||
|
|
||||||
#define cmplx(value) (std::complex<float>{cos(value), sin(value)})
|
#define cmplx(value) (std::complex<float>{cosf(value), sinf(value)})
|
||||||
#define cmplxconj(value) (std::complex<float>{cos(value), -sin(value)})
|
#define cmplxconj(value) (std::complex<float>{cosf(value), -sinf(value)})
|
||||||
|
|
||||||
namespace FreeDV
|
namespace FreeDV
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue