Re: [PATCH v6 03/18] qemu/int128: addition of div/rem 128-bit operations

2021-11-29 Thread Frédéric Pétrot
On 29/11/2021 11:07, Richard Henderson wrote: On 11/28/21 2:57 PM, Frédéric Pétrot wrote: --- /dev/null +++ b/util/int128.c @@ -0,0 +1,145 @@ +#include "qemu/osdep.h" +#include "qemu/host-utils.h" +#include "qemu/int128.h" Missing file header and copyright boilerplate. +#ifdef CONFIG_INT128

Re: [PATCH v6 03/18] qemu/int128: addition of div/rem 128-bit operations

2021-11-29 Thread Richard Henderson
On 11/29/21 3:27 PM, Frédéric Pétrot wrote: On 29/11/2021 11:07, Richard Henderson wrote: On 11/28/21 2:57 PM, Frédéric Pétrot wrote: --- /dev/null +++ b/util/int128.c @@ -0,0 +1,145 @@ +#include "qemu/osdep.h" +#include "qemu/host-utils.h" +#include "qemu/int128.h" Missing file header and co

Re: [PATCH v6 03/18] qemu/int128: addition of div/rem 128-bit operations

2021-11-29 Thread Richard Henderson
On 11/28/21 2:57 PM, Frédéric Pétrot wrote: --- /dev/null +++ b/util/int128.c @@ -0,0 +1,145 @@ +#include "qemu/osdep.h" +#include "qemu/host-utils.h" +#include "qemu/int128.h" Missing file header and copyright boilerplate. +#ifdef CONFIG_INT128 + +Int128 int128_divu(Int128 a, Int128 b) +{ +

[PATCH v6 03/18] qemu/int128: addition of div/rem 128-bit operations

2021-11-28 Thread Frédéric Pétrot
Addition of div and rem on 128-bit integers, using the 128/64->128 divu and 64x64->128 mulu in host-utils. These operations will be used within div/rem helpers in the 128-bit riscv target. Signed-off-by: Frédéric Pétrot Co-authored-by: Fabien Portas Reviewed-by: Alistair Francis --- include/qe