Removed mpn_bdivmod from docs in line with GMP.

This commit is contained in:
William Hart 2014-03-26 13:49:46 +00:00
parent a561013502
commit b479dcd950

View File

@ -2123,6 +2123,10 @@ with other @code{mpn} functions.
@code{mpf_get_prec} counted precision slightly differently in GMP 3.0 and
3.0.1, but in 3.1 reverted to the 2.x style.
@item
@code{mpn_bdivmod} provided provisionally in the past has been removed from MPIR
2.7.0.
@item
MPIR does not support the secure cryptographic functions provided by GMP.
@ -5137,26 +5141,6 @@ Divide @{@var{s1p}, @var{s1n}@} by @var{s2limb}, and return the remainder.
@var{s1n} can be zero.
@end deftypefun
@deftypefun mp_limb_t mpn_bdivmod (mp_limb_t *@var{rp}, mp_limb_t *@var{s1p}, mp_size_t @var{s1n}, const mp_limb_t *@var{s2p}, mp_size_t @var{s2n}, mpir_ui @var{d})
This function puts the low
@math{@GMPfloor{@var{d}/@nicode{mp\_bits\_per\_limb}}} limbs of @var{q} =
@{@var{s1p}, @var{s1n}@}/@{@var{s2p}, @var{s2n}@} mod @m{2^d,2^@var{d}} at
@var{rp}, and returns the high @var{d} mod @code{mp_bits_per_limb} bits of
@var{q}.
@{@var{s1p}, @var{s1n}@} - @var{q} * @{@var{s2p}, @var{s2n}@} mod @m{2
\GMPraise{@var{s1n}*@code{mp\_bits\_per\_limb}},
2^(@var{s1n}*@nicode{mp\_bits\_per\_limb})} is placed at @var{s1p}. Since the
low @math{@GMPfloor{@var{d}/@nicode{mp\_bits\_per\_limb}}} limbs of this
difference are zero, it is possible to overwrite the low limbs at @var{s1p}
with this difference, provided @math{@var{rp} @le{} @var{s1p}}.
This function requires that @math{@var{s1n} * @nicode{mp\_bits\_per\_limb}
@ge{} @var{D}}, and that @{@var{s2p}, @var{s2n}@} is odd.
@strong{This interface is preliminary. It might change incompatibly in future revisions.}
@end deftypefun
@deftypefun mp_limb_t mpn_lshift (mp_limb_t *@var{rp}, const mp_limb_t *@var{sp}, mp_size_t @var{n}, unsigned int @var{count})
Shift @{@var{sp}, @var{n}@} left by @var{count} bits, and write the result to
@{@var{rp}, @var{n}@}. The bits shifted out at the left are returned in the