silc_mp_div_qr

SYNOPSIS

    SilcBool silc_mp_div_qr(SilcMPInt *q, SilcMPInt *r, SilcMPInt *mp1,
                            SilcMPInt *mp2);

DESCRIPTION

Divide the `mp1' and `mp2' and save the quotient to the `q' and the remainder to the `r'. This is equivalent to the q = mp1 / mp2, r = mp1 mod mp2 (or mp1 = mp2 * q + r). If the `q' or `r' is NULL then the operation is omitted.