summaryrefslogtreecommitdiff
path: root/src/m4a.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-08-18 08:11:25 -0400
committerGriffinR <griffin.g.richards@gmail.com>2020-08-18 08:16:09 -0400
commit0e7f634b00f904ac29088f3b7fdac0c51999be2d (patch)
tree57451f084310621d1169f6da3cedff4ae32a5dc1 /src/m4a.c
parent3372993a6361e9417f016046caa8629254b84ba6 (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 267a72657..11a4525ea 100644
--- a/src/m4a.c
+++ b/src/m4a.c
@@ -904,7 +904,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)