Re: [Qemu-devel] [PATCH 36/52] target-m68k: inline shift ops
On 05/04/2016 11:08 AM, Laurent Vivier wrote: -if (count == 0) { -count = 8; -} +count = ((count - 1) & 0x7) + 1; /* 1..8 */ How is that clearer, or even simpler? +tcg_gen_setcond_i32(TCG_COND_EQ, QREG_CC_V, reg, zero); +/* adjust V: (1,0) -
[Qemu-devel] [PATCH 36/52] target-m68k: inline shift ops
Signed-off-by: Laurent Vivier --- target-m68k/translate.c | 211 1 file changed, 176 insertions(+), 35 deletions(-) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index d183a3c..d48ab66 100644 --- a/target-m68k/translate.c +++ b/ta