From 94457d81b62e9947fab6f2bf53cf67bfdd3b90fd 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Processors/68000/Implementation/68000Implementation.hpp b/Processors/68000/Implementation/68000Implementation.hpp index db25a1ee6..4cd34ac1a 100644 --- a/Processors/68000/Implementation/68000Implementation.hpp +++ b/Processors/68000/Implementation/68000Implementation.hpp @@ -1605,7 +1605,7 @@ 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)); \ overflow_flag_ = mask & value && ((mask & value) != mask); \ } \ } \