summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author holub <andrei.holub@gmail.com>2025-04-12 09:58:51 -0400
committer GitHub <noreply@github.com>2025-04-12 15:58:51 +0200
commit19b42381d648b4cbf5b1a8a059d0ee5e59b30720 (patch)
tree9f052558f140dc9fbbe51a678588a8232026f748 /src/emu
parent688559900f3b8793d18c463cb0e10f08bb82ef71 (diff)
emu/emumem.h: Optimized cache line detection (#13584)
* emu/emumem.h: Optimized cache line detection * use EXPECTED macro instead
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/emumem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/emumem.h b/src/emu/emumem.h
index 7828881df2e..39470a45632 100644
--- a/src/emu/emumem.h
+++ b/src/emu/emumem.h
@@ -1877,13 +1877,13 @@ public:
// see if an address is within bounds, update it if not
void check_address_r(offs_t address) {
- if(address >= m_addrstart_r && address <= m_addrend_r)
+ if(EXPECTED(address >= m_addrstart_r && address <= m_addrend_r))
return;
m_root_read->lookup(address, m_addrstart_r, m_addrend_r, m_cache_r);
}
void check_address_w(offs_t address) {
- if(address >= m_addrstart_w && address <= m_addrend_w)
+ if(EXPECTED(address >= m_addrstart_w && address <= m_addrend_w))
return;
m_root_write->lookup(address, m_addrstart_w, m_addrend_w, m_cache_w);
}