summary refs log tree commit diff stats
path: root/python/scripts
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 /python/scripts
parent7798f5c576d898e7e10c4a2518f3f16411dedeb9 (diff)
downloadfocaccia-qemu-47de6c4c287079744ceb96f606b3c0457addf380.tar.gz
focaccia-qemu-47de6c4c287079744ceb96f606b3c0457addf380.zip
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 'python/scripts')
0 files changed, 0 insertions, 0 deletions