mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
Eliminates redundant and integer-size-troubling AND on ASL.
This commit is contained in:
parent
59b5ee65d4
commit
c212bf27db
@ -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)); \
|
if(shift_count >= size) overflow_flag_ = value && (value != decltype(value)(-1)); \
|
||||||
else { \
|
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); \
|
overflow_flag_ = mask & value && ((mask & value) != mask); \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
|
Loading…
Reference in New Issue
Block a user