Skip to content

Commit fb84062

Browse files
committed
Fix bitshift operation on atmel-samd
1 parent c92efd6 commit fb84062

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shared-module/audiomixer/Mixer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ static inline uint32_t add16signed(uint32_t a, uint32_t b) {
9494
__attribute__((always_inline))
9595
static inline uint32_t mult16signed(uint32_t val, int32_t mul[2]) {
9696
#if (defined(__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ == 1))
97-
mul <<= 16;
97+
mul[0] <<= 16;
98+
mul[1] <<= 16;
9899
int32_t hi, lo;
99100
enum { bits = 16 }; // saturate to 16 bits
100101
enum { shift = 15 }; // shift is done automatically

0 commit comments

Comments
 (0)