From 9b8514e56efa59549ad642a494ba69e2b0ca4daf Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 16 Nov 2016 11:27:03 +0100 Subject: target-ppc: Use clz and ctz opcodes Signed-off-by: Richard Henderson --- target/ppc/int_helper.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'target/ppc/int_helper.c') diff --git a/target/ppc/int_helper.c b/target/ppc/int_helper.c index 2d57c9a..e1bb695 100644 --- a/target/ppc/int_helper.c +++ b/target/ppc/int_helper.c @@ -141,16 +141,6 @@ uint64_t helper_divde(CPUPPCState *env, uint64_t rau, uint64_t rbu, uint32_t oe) #endif -target_ulong helper_cntlzw(target_ulong t) -{ - return clz32(t); -} - -target_ulong helper_cnttzw(target_ulong t) -{ - return ctz32(t); -} - #if defined(TARGET_PPC64) /* if x = 0xab, returns 0xababababababababa */ #define pattern(x) (((x) & 0xff) * (~(target_ulong)0 / 0xff)) @@ -174,16 +164,6 @@ uint32_t helper_cmpeqb(target_ulong ra, target_ulong rb) #undef haszero #undef hasvalue -target_ulong helper_cntlzd(target_ulong t) -{ - return clz64(t); -} - -target_ulong helper_cnttzd(target_ulong t) -{ - return ctz64(t); -} - /* Return invalid random number. * * FIXME: Add rng backend or other mechanism to get cryptographically suitable -- cgit v1.1