mirror of
https://github.com/aicodix/dsp.git
synced 2026-04-27 14:30:36 +00:00
check if TAPS-1 is divisible by four
This commit is contained in:
parent
58fe117116
commit
999ee7d2be
1 changed files with 1 additions and 0 deletions
1
cdc.hh
1
cdc.hh
|
|
@ -14,6 +14,7 @@ namespace DSP {
|
|||
template <typename TYPE, int TAPS>
|
||||
class CDC
|
||||
{
|
||||
static_assert((TAPS-1) % 4 == 0, "TAPS-1 not divisible by four");
|
||||
typedef TYPE complex_type;
|
||||
typedef typename TYPE::value_type value_type;
|
||||
value_type real[(TAPS-1)/4];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue