summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/emumem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/emumem.h')
-rw-r--r--src/emu/emumem.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/emu/emumem.h b/src/emu/emumem.h
index 492edf5a4ac..08dbd02ab77 100644
--- a/src/emu/emumem.h
+++ b/src/emu/emumem.h
@@ -242,13 +242,10 @@ template<int Width, int AddrShift, int Endian> class memory_units_descriptor;
static inline constexpr int handler_entry_dispatch_lowbits(int highbits, int width, int ashift)
{
- if(highbits > 48)
- return 48;
- if(highbits > 32)
- return 32;
- if(highbits > 14)
- return 14;
- return width + ashift;
+ return (highbits > 48) ? 48 :
+ (highbits > 32) ? 32 :
+ (highbits > 14) ? 14 :
+ width + ashift;
}