From: Richard Henderson Date: Mon, 14 Dec 2009 01:47:25 +0000 (-0800) Subject: target-alpha: Fix generic ctz64. X-Git-Tag: v0.12.0~59 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d4e53dc81f35914af0325989622eb149bca6f2d;p=thirdparty%2Fqemu.git target-alpha: Fix generic ctz64. Signed-off-by: Richard Henderson Signed-off-by: Aurelien Jarno (cherry picked from commit 06445248d23d2422a0fb5736b64f9e5a66539749) --- diff --git a/host-utils.h b/host-utils.h index e335c5cb68e..0ddc1765829 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