GCC: Fixed __SIMD32 type punning warnings.

With help from https://github.com/ARM-software/CMSIS_5/issues/98

Using void* makes me really queasy though!
This commit is contained in:
Jared Boone
2017-08-08 10:24:49 -07:00
parent 245dad6b05
commit 74ecff13ad
3 changed files with 15 additions and 15 deletions
@@ -59,7 +59,7 @@ private:
const buffer_c16_t& src,
uint32_t max_squared
) {
auto src_p = src.p;
void* src_p = src.p;
while(src_p < &src.p[src.count]) {
const uint32_t sample = *__SIMD32(src_p)++;
const uint32_t mag_sq = __SMUAD(sample, sample);