projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4932398
)
bitops: Replace bitops_ctol with ctzl
author
Richard Henderson
<rth@twiddle.net>
Thu, 14 Feb 2013 01:47:42 +0000
(17:47 -0800)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sat, 16 Feb 2013 11:12:45 +0000
(11:12 +0000)
The is the only remaining user.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
util/bitops.c
patch
|
blob
|
history
diff --git
a/util/bitops.c
b/util/bitops.c
index 50b4a811a6e7ed7d89898330214b85c99b143b28..e72237ab2b34fe7ef038ae80f2e2546fedf2e063 100644
(file)
--- a/
util/bitops.c
+++ b/
util/bitops.c
@@
-109,7
+109,7
@@
found_first:
return result + size; /* Nope. */
}
found_middle:
- return result +
bitops_ctol(
tmp);
+ return result +
ctzl(~
tmp);
}
unsigned long find_last_bit(const unsigned long *addr, unsigned long size)