summaryrefslogtreecommitdiff
path: root/src/m4a.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-08-18 09:09:25 -0400
committerGriffinR <griffin.g.richards@gmail.com>2020-08-18 09:09:25 -0400
commitd8f858d04e1204d3a1997b0e22b02d460b098874 (patch)
tree145189a2e8e563318172ea72707b6391114fa0b4 /src/m4a.c
parent2455913e392c79a311f361ca755762aa736fd04f (diff)
Wrap asm statements in NONMATCHING
Diffstat (limited to 'src/m4a.c')
-rw-r--r--src/m4a.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/m4a.c b/src/m4a.c
index 7b4441ca4..284863247 100644
--- a/src/m4a.c
+++ b/src/m4a.c
@@ -903,7 +903,9 @@ void CgbModVol(struct CgbChannel *chan)
// Force chan->rightVolume and chan->leftVolume to be read from memory again,
// even though there is no reason to do so.
// The command line option "-fno-gcse" achieves the same result as this.
- asm("" : : : "memory");
+ #ifndef NONMATCHING
+ asm("" : : : "memory");
+ #endif
chan->eg = (u32)(chan->rightVolume + chan->leftVolume) >> 4;
if (chan->eg > 15)