check if TAPS-1 is divisible by four

This commit is contained in:
Ahmet Inan 2020-03-11 23:35:01 +01:00
commit 999ee7d2be

1
cdc.hh
View file

@ -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];