aboutsummaryrefslogtreecommitdiff
path: root/accel/accel-user.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2023-08-08 14:19:47 +1000
committerCédric Le Goater <clg@kaod.org>2023-09-06 11:19:33 +0200
commit47de6c4c287079744ceb96f606b3c0457addf380 (patch)
treea0a66493d90bada49ac23e12774b24024e763d92 /accel/accel-user.c
parent7798f5c576d898e7e10c4a2518f3f16411dedeb9 (diff)
downloadqemu-47de6c4c287079744ceb96f606b3c0457addf380.zip
qemu-47de6c4c287079744ceb96f606b3c0457addf380.tar.gz
qemu-47de6c4c287079744ceb96f606b3c0457addf380.tar.bz2
host-utils: Add muldiv64_round_up
This will be used for converting time intervals in different base units to host units, for the purpose of scheduling timers to emulate target timers. Timers typically must not fire before their requested expiry time but may fire some time afterward, so rounding up is the right way to implement these. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> [ clg: renamed __muldiv64() to muldiv64_rounding() ] Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'accel/accel-user.c')
0 files changed, 0 insertions, 0 deletions