From c212bf27dbfb7035d2081240fdca96babe2d58eb Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 8 Jul 2019 18:28:36 -0400 Subject: [PATCH] Eliminates redundant and integer-size-troubling AND on ASL. --- Processors/68000/Implementation/68000Implementation.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Processors/68000/Implementation/68000Implementation.hpp b/Processors/68000/Implementation/68000Implementation.hpp index db25a1ee6..9dbc20764 100644 --- a/Processors/68000/Implementation/68000Implementation.hpp +++ b/Processors/68000/Implementation/68000Implementation.hpp @@ -1605,7 +1605,8 @@ template void Proces \ if(shift_count >= size) overflow_flag_ = value && (value != decltype(value)(-1)); \ else { \ - const auto mask = decltype(destination)((0xffffffff << (size - shift_count)) & ((1 << size) - 1)); \ + const auto mask = decltype(destination)(0xffffffff << (size - shift_count)); \ + printf("%02x\n", mask); \ overflow_flag_ = mask & value && ((mask & value) != mask); \ } \ } \