]> Git Repo - qemu.git/commit - include/qemu/osdep.h
osdep: provide ROUND_DOWN macro
authorPaolo Bonzini <[email protected]>
Wed, 16 Jun 2021 13:18:20 +0000 (15:18 +0200)
committerPaolo Bonzini <[email protected]>
Fri, 25 Jun 2021 08:54:12 +0000 (10:54 +0200)
commitc9797456f64ce72c03eb2969d97ac1dd4698d91e
treefb86954ec52922943ab9f656b1ba0c9808e64801
parent01ef8185b809af9d287e1a03a3f9d8ea8231118a
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 <[email protected]>
include/qemu/osdep.h
This page took 0.024386 seconds and 4 git commands to generate.