From: Richard Henderson Date: Mon, 14 Dec 2009 01:47:25 +0000 (-0800) Subject: target-alpha: Fix generic ctz64. X-Git-Tag: TizenStudio_2.0_p2.3~6235 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a931b95c0ddaa1c183ba06410190bf82b539478;p=sdk%2Femulator%2Fqemu.git target-alpha: Fix generic ctz64. Signed-off-by: Richard Henderson Signed-off-by: Aurelien Jarno --- diff --git a/host-utils.h b/host-utils.h index e335c5c..0ddc176 100644 --- a/host-utils.h +++ b/host-utils.h @@ -164,7 +164,7 @@ static inline int ctz64(uint64_t val) { #if QEMU_GNUC_PREREQ(3, 4) if (val) - return __builtin_ctz(val); + return __builtin_ctzll(val); else return 64; #else