diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2020-08-25 03:20:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-25 03:20:53 -0400 |
commit | c5839905a1259fd7e843c0ffa1ce2470d40b76ae (patch) | |
tree | 145189a2e8e563318172ea72707b6391114fa0b4 /src/m4a.c | |
parent | 2455913e392c79a311f361ca755762aa736fd04f (diff) | |
parent | d8f858d04e1204d3a1997b0e22b02d460b098874 (diff) |
Merge pull request #354 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
@@ -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) |