Another fix

This commit is contained in:
Ryzerth 2021-03-29 22:41:17 +02:00
parent 38c1949538
commit ce56d03c3e

View File

@ -2,5 +2,5 @@
#include <dsp/types.h> #include <dsp/types.h>
#define DSP_SIGN(n) ((n) >= 0) #define DSP_SIGN(n) ((n) >= 0)
#define DSP_STEP_CPLX(c) (complex_t{(c.i > 0.0f) ? 1.0f : -1.0f, (c.q > 0.0f) ? 1.0f : -1.0f}) #define DSP_STEP_CPLX(c) (complex_t{(c.re > 0.0f) ? 1.0f : -1.0f, (c.im > 0.0f) ? 1.0f : -1.0f})
#define DSP_STEP(n) (((n) > 0.0f) ? 1.0f : -1.0f) #define DSP_STEP(n) (((n) > 0.0f) ? 1.0f : -1.0f)