<div dir="ltr"><div dir="ltr">Hi<br>On Mon, Nov 12, 2018 at 7:37 PM Cédric Le Goater <<a href="mailto:clg@kaod.org">clg@kaod.org</a>> wrote:<br>> isn't QEMU using the helpers from :<br>><br>>         include/qemu/host-utils.h<br>><br>> which do about the same ?<br><div><br></div><div>Multdiv64 only takes unsigned ints, and while I'm not familiar with the details of how that propagates to the division, it seems to result in nonsensical values for negative inputs.</div><div>Before copying this logic here I looked for an equivalent for signed ints but did not find any suitable one, and the expansion seemed simple enough.</div><div><br></div><div>You can see more details in <a href="https://github.com/openbmc/qemu/issues/14#issuecomment-437692215">https://github.com/openbmc/qemu/issues/14#issuecomment-437692215</a>.</div><div><br></div></div></div>