mirror of
https://github.com/holub/mame
synced 2025-07-04 17:38:08 +03:00
emu/emumem.h: Optimized cache line detection (#13584)
* emu/emumem.h: Optimized cache line detection * use EXPECTED macro instead
This commit is contained in:
parent
688559900f
commit
19b42381d6
@ -1877,13 +1877,13 @@ public:
|
|||||||
|
|
||||||
// see if an address is within bounds, update it if not
|
// see if an address is within bounds, update it if not
|
||||||
void check_address_r(offs_t address) {
|
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;
|
return;
|
||||||
m_root_read->lookup(address, m_addrstart_r, m_addrend_r, m_cache_r);
|
m_root_read->lookup(address, m_addrstart_r, m_addrend_r, m_cache_r);
|
||||||
}
|
}
|
||||||
|
|
||||||
void check_address_w(offs_t address) {
|
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;
|
return;
|
||||||
m_root_write->lookup(address, m_addrstart_w, m_addrend_w, m_cache_w);
|
m_root_write->lookup(address, m_addrstart_w, m_addrend_w, m_cache_w);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user