diff options
| author | Paolo Bonzini | 2015-03-23 16:29:29 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2015-04-28 15:36:08 +0200 |
| commit | 41074f3d3ff0e9a3c6f638627c12ebbf6d757cea (patch) | |
| tree | ec3bc9485585d311b5a14e590719562967fb604b /scripts | |
| parent | sd: convert sd_normal_command() ffs(3) call to ctz32() (diff) | |
| download | qemu-41074f3d3ff0e9a3c6f638627c12ebbf6d757cea.tar.gz qemu-41074f3d3ff0e9a3c6f638627c12ebbf6d757cea.tar.xz qemu-41074f3d3ff0e9a3c6f638627c12ebbf6d757cea.zip | |
omap_intc: convert ffs(3) to ctz32() in omap_inth_sir_update()
Rewrite the loop using level &= level - 1 to clear the least significant
bit after each iteration. This simplifies the loop and makes it easy to
replace ffs(3) with ctz32().
Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1427124571-28598-8-git-send-email-stefanha@redhat.com
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
