From 06445248d23d2422a0fb5736b64f9e5a66539749 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 13 Dec 2009 17:47:25 -0800 Subject: [PATCH] target-alpha: Fix generic ctz64. Signed-off-by: Richard Henderson Signed-off-by: Aurelien Jarno --- host-utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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