diff options
author | Richard Henderson <rth@twiddle.net> | 2009-12-13 17:47:25 -0800 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2009-12-17 18:24:59 +0100 |
commit | 5d4e53dc81f35914af0325989622eb149bca6f2d (patch) | |
tree | e1ba471192268354434ec73279e176839e7651fd /host-utils.h | |
parent | 3ebee802265a006cc20feffd4fc6d082b69ca301 (diff) |
target-alpha: Fix generic ctz64.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
(cherry picked from commit 06445248d23d2422a0fb5736b64f9e5a66539749)
Diffstat (limited to 'host-utils.h')
-rw-r--r-- | host-utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |