diff options
Diffstat (limited to 'target-i386/ops_template.h')
-rw-r--r-- | target-i386/ops_template.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/target-i386/ops_template.h b/target-i386/ops_template.h index 9a91c07..f91d19e 100644 --- a/target-i386/ops_template.h +++ b/target-i386/ops_template.h @@ -200,51 +200,6 @@ void OPPROTO glue(op_setle_T0_sub, SUFFIX)(void) T0 = ((DATA_STYPE)src1 <= (DATA_STYPE)src2); } -/* bit operations */ -#if DATA_BITS >= 16 - -void OPPROTO glue(glue(op_bsf, SUFFIX), _T0_cc)(void) -{ - int count; - target_long res; - - res = T0 & DATA_MASK; - if (res != 0) { - count = 0; - while ((res & 1) == 0) { - count++; - res >>= 1; - } - T1 = count; - CC_DST = 1; /* ZF = 0 */ - } else { - CC_DST = 0; /* ZF = 1 */ - } - FORCE_RET(); -} - -void OPPROTO glue(glue(op_bsr, SUFFIX), _T0_cc)(void) -{ - int count; - target_long res; - - res = T0 & DATA_MASK; - if (res != 0) { - count = DATA_BITS - 1; - while ((res & SIGN_MASK) == 0) { - count--; - res <<= 1; - } - T1 = count; - CC_DST = 1; /* ZF = 0 */ - } else { - CC_DST = 0; /* ZF = 1 */ - } - FORCE_RET(); -} - -#endif - /* string operations */ void OPPROTO glue(op_movl_T0_Dshift, SUFFIX)(void) |