From 035c20e01cbc1ec9af4a61e49f4925f8960ce651 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Mon, 6 Feb 2023 18:14:48 +0000 Subject: [PATCH] Fixed build issue in mixer when FAST_MIXER not used --- lib_xua/src/core/mixer/mixer.xc | 34 ++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/lib_xua/src/core/mixer/mixer.xc b/lib_xua/src/core/mixer/mixer.xc index a80d5428..8acfd639 100644 --- a/lib_xua/src/core/mixer/mixer.xc +++ b/lib_xua/src/core/mixer/mixer.xc @@ -109,7 +109,7 @@ int doMix7(volatile int * const unsafe samples, xc_ptr mult); /* DO NOT inline, causes 10.4.2 tools to add extra loads in loop */ /* At 18 x 12dB we could get 64 x bigger */ #pragma unsafe arrays -static inline int doMix(xc_ptr samples, xc_ptr ptr, xc_ptr mult) +static inline int doMix(volatile int * unsafe samples, xc_ptr ptr, xc_ptr mult) { int h=0; int l=0; @@ -117,14 +117,14 @@ static inline int doMix(xc_ptr samples, xc_ptr ptr, xc_ptr mult) /* By breaking up the loop we keep things in the encoding for ldw (0-11) */ #pragma loop unroll for (int i=0; i