1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-30 23:29:08 +00:00

Eliminates redundant and integer-size-troubling AND on ASL.

This commit is contained in:
Thomas Harte 2019-07-08 18:28:36 -04:00
parent 59b5ee65d4
commit c212bf27db

View File

@ -1605,7 +1605,8 @@ template <class T, bool dtack_is_implicit, bool signal_will_perform> 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); \
} \
} \