summaryrefslogtreecommitdiff
path: root/src/m4a.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-08-21 12:44:07 -0400
committerGitHub <noreply@github.com>2020-08-21 12:44:07 -0400
commitcd895e497d68bf9adbaa067dc411cc99a3bd1a4b (patch)
treead8bed728bb939cf08fbb8b9fd7d4c009a06459e /src/m4a.c
parent6c34effda93c67a37895e79b684b31b3cb9a2a88 (diff)
parent0e7f634b00f904ac29088f3b7fdac0c51999be2d (diff)
Merge pull request #1141 from GriffinRichards/add-nonmatch
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)