On 9/10/21 4:26 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.

Signed-off-by: Luis Pires <luis.pi...@eldorado.org.br>

Why not return the remainder? That would avoid the need for an extra argument, and the need for a conditional vs prem inside the division functions.

Modulo that, the code looks good so,
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>


r~

Reply via email to