From: Richard Henderson Date: Mon, 14 Dec 2009 01:47:25 +0000 (-0800) Subject: target-alpha: Fix generic ctz64. X-Git-Tag: pull-nvme-20200902~13250 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=06445248d23d2422a0fb5736b64f9e5a66539749;p=qemu-nvme.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 e335c5cb68..0ddc176582 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