mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
DSP: Allowed AudioBlocks of const elements
This commit is contained in:
parent
bdfbcff62d
commit
827055c2c1
9 changed files with 143 additions and 59 deletions
|
|
@ -43,8 +43,8 @@ namespace SIMDInternal
|
|||
template <> struct MaskTypeFor <std::complex<float>> { using type = uint32_t; };
|
||||
template <> struct MaskTypeFor <std::complex<double>> { using type = uint64_t; };
|
||||
|
||||
template <typename Primitive> struct PrimitiveType { using type = Primitive; };
|
||||
template <typename Primitive> struct PrimitiveType<std::complex<Primitive>> { using type = Primitive; };
|
||||
template <typename Primitive> struct PrimitiveType { using type = typename std::remove_cv<Primitive>::type; };
|
||||
template <typename Primitive> struct PrimitiveType<std::complex<Primitive>> { using type = typename std::remove_cv<Primitive>::type; };
|
||||
|
||||
template <int n> struct Log2Helper { enum { value = Log2Helper<n/2>::value + 1 }; };
|
||||
template <> struct Log2Helper<1> { enum { value = 0 }; };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue