diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2020-08-21 12:44:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-21 12:44:07 -0400 |
commit | cd895e497d68bf9adbaa067dc411cc99a3bd1a4b (patch) | |
tree | ad8bed728bb939cf08fbb8b9fd7d4c009a06459e /src/m4a.c | |
parent | 6c34effda93c67a37895e79b684b31b3cb9a2a88 (diff) | |
parent | 0e7f634b00f904ac29088f3b7fdac0c51999be2d (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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |