Re: [PATCH v2 04/19] host-utils: add 128-bit quotient support to divu128/divs128

2021-09-03 Thread Richard Henderson
On 9/2/21 11:07 PM, Luis Fernando Fujita Pires wrote: From: Richard Henderson Hmm. I'll note that we have a better divmod primitive in tree, but we aren't using it here: udiv_qrnnd in include/fpu/softfloat-macros.h. Good to know! I'll change to a (much simpler) implementation using udiv_qrnn

RE: [PATCH v2 04/19] host-utils: add 128-bit quotient support to divu128/divs128

2021-09-02 Thread Luis Fernando Fujita Pires
From: Richard Henderson > Hmm. I'll note that we have a better divmod primitive in tree, but we aren't > using it > here: udiv_qrnnd in include/fpu/softfloat-macros.h. Good to know! I'll change to a (much simpler) implementation using udiv_qrnnd. Any pointers on what would be a good place to put

Re: [PATCH v2 04/19] host-utils: add 128-bit quotient support to divu128/divs128

2021-08-31 Thread Richard Henderson
On 8/31/21 9:39 AM, Luis Pires wrote: These will be used to implement new decimal floating point instructions from Power ISA 3.1. A new argument, prem, was added to divu128/divs128 to receive the remainder, freeing up phigh to receive the high 64 bits of the quotient. For scenarios supported by

[PATCH v2 04/19] host-utils: add 128-bit quotient support to divu128/divs128

2021-08-31 Thread Luis Pires
These will be used to implement new decimal floating point instructions from Power ISA 3.1. A new argument, prem, was added to divu128/divs128 to receive the remainder, freeing up phigh to receive the high 64 bits of the quotient. For scenarios supported by the previous implementation (<= 64-bit