mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2026-04-18 22:32:44 +00:00
6 lines
233 B
C
6 lines
233 B
C
#pragma once
|
|
#include <dsp/types.h>
|
|
|
|
#define DSP_SIGN(n) ((n) >= 0)
|
|
#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) |