diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-06-16 15:18:20 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-06-25 10:54:12 +0200 |
commit | c9797456f64ce72c03eb2969d97ac1dd4698d91e (patch) | |
tree | fb86954ec52922943ab9f656b1ba0c9808e64801 /include/qemu/ratelimit.h | |
parent | 01ef8185b809af9d287e1a03a3f9d8ea8231118a (diff) | |
download | qemu-c9797456f64ce72c03eb2969d97ac1dd4698d91e.zip qemu-c9797456f64ce72c03eb2969d97ac1dd4698d91e.tar.gz qemu-c9797456f64ce72c03eb2969d97ac1dd4698d91e.tar.bz2 |
osdep: provide ROUND_DOWN macro
osdep.h provides a ROUND_UP macro to hide bitwise operations for the
purpose of rounding a number up to a power of two; add a ROUND_DOWN
macro that does the same with truncation towards zero.
While at it, change the formatting of some comments.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qemu/ratelimit.h')
0 files changed, 0 insertions, 0 deletions