aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2009-12-13 17:47:25 -0800
committerAurelien Jarno <aurelien@aurel32.net>2009-12-17 18:12:04 +0100
commit06445248d23d2422a0fb5736b64f9e5a66539749 (patch)
tree9f141c95d34be811b6a8c660756706c3e9b78d53
parentdbb30fe6ef39e4e155d13c633e3bd77db5372abe (diff)
downloadqemu-06445248d23d2422a0fb5736b64f9e5a66539749.zip
qemu-06445248d23d2422a0fb5736b64f9e5a66539749.tar.gz
qemu-06445248d23d2422a0fb5736b64f9e5a66539749.tar.bz2
target-alpha: Fix generic ctz64.
Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r--host-utils.h2
1 files changed, 1 insertions, 1 deletions
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