GSL + CPP core guidelines changes.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2017-11-18 14:29:30 +00:00
parent dea1847280
commit 67c27d4a3e
27 changed files with 162 additions and 150 deletions

View File

@@ -70,5 +70,5 @@ void EightBit::Bus::write(register16_t address, uint8_t value) {
uint8_t& EightBit::Bus::reference() {
bool rom;
auto& value = reference(ADDRESS().word, rom);
return rom ? placeDATA(value) : referenceDATA(value);
return GSL_LIKELY(!rom) ? referenceDATA(value) : placeDATA(value);
}