Wrap asm statements in NONMATCHING

This commit is contained in:
GriffinR
2020-08-18 08:11:25 -04:00
parent 3372993a63
commit 0e7f634b00
13 changed files with 59 additions and 30 deletions
+3 -1
View File
@@ -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)