From 1c4ae49942a5328d082ed86de1c500d2aebc7f93 Mon Sep 17 00:00:00 2001 From: Wilbert Pol Date: Wed, 9 Jul 2014 20:20:43 +0000 Subject: [PATCH] sh4: inlined some functions (nw) --- src/emu/cpu/sh4/sh4.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/emu/cpu/sh4/sh4.c b/src/emu/cpu/sh4/sh4.c index ac369d79f29..c2ea1c98229 100644 --- a/src/emu/cpu/sh4/sh4.c +++ b/src/emu/cpu/sh4/sh4.c @@ -228,7 +228,7 @@ UINT32 abs; } #endif -UINT8 sh34_base_device::RB(offs_t A) +inline UINT8 sh34_base_device::RB(offs_t A) { if (A >= 0xe0000000) return m_program->read_byte(A); @@ -236,7 +236,7 @@ UINT8 sh34_base_device::RB(offs_t A) return m_program->read_byte(A & AM); } -UINT16 sh34_base_device::RW(offs_t A) +inline UINT16 sh34_base_device::RW(offs_t A) { if (A >= 0xe0000000) return m_program->read_word(A); @@ -244,7 +244,7 @@ UINT16 sh34_base_device::RW(offs_t A) return m_program->read_word(A & AM); } -UINT32 sh34_base_device::RL(offs_t A) +inline UINT32 sh34_base_device::RL(offs_t A) { if (A >= 0xe0000000) return m_program->read_dword(A); @@ -252,7 +252,7 @@ UINT32 sh34_base_device::RL(offs_t A) return m_program->read_dword(A & AM); } -void sh34_base_device::WB(offs_t A, UINT8 V) +inline void sh34_base_device::WB(offs_t A, UINT8 V) { if (A >= 0xe0000000) { @@ -263,7 +263,7 @@ void sh34_base_device::WB(offs_t A, UINT8 V) m_program->write_byte(A & AM,V); } -void sh34_base_device::WW(offs_t A, UINT16 V) +inline void sh34_base_device::WW(offs_t A, UINT16 V) { if (A >= 0xe0000000) { @@ -274,7 +274,7 @@ void sh34_base_device::WW(offs_t A, UINT16 V) m_program->write_word(A & AM,V); } -void sh34_base_device::WL(offs_t A, UINT32 V) +inline void sh34_base_device::WL(offs_t A, UINT32 V) { if (A >= 0xe0000000) {