diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | doc/gmp.texi | 6 |
2 files changed, 6 insertions, 2 deletions
@@ -2,6 +2,8 @@ * doc/gmp.texi (Low-level Functions): Document that scratch need for mpn_sec_add_1 and mpn_sec_sub_1 are at most n limbs. + (Low-level Functions): Document allowed overlap for mpn_addmul_1 + and mpn_submul_1. 2014-07-02 Torbjörn Granlund <tege@gmplib.org> diff --git a/doc/gmp.texi b/doc/gmp.texi index a90fc28a0..99165ddd2 100644 --- a/doc/gmp.texi +++ b/doc/gmp.texi @@ -5301,7 +5301,8 @@ with a count equal to the logarithm of @var{s2limb} instead, for optimal speed. Multiply @{@var{s1p}, @var{n}@} and @var{s2limb}, and add the @var{n} least significant limbs of the product to @{@var{rp}, @var{n}@} and write the result to @var{rp}. Return the most significant limb of the product, plus carry-out -from the addition. +from the addition. @{@var{s1p}, @var{n}@} and @{@var{rp}, @var{n}@} are +allowed to overlap provided @math{@var{rp} @le{} @var{s1p}}. This is a low-level function that is a building block for general multiplication as well as other operations in GMP@. It is written in assembly @@ -5312,7 +5313,8 @@ for most CPUs. Multiply @{@var{s1p}, @var{n}@} and @var{s2limb}, and subtract the @var{n} least significant limbs of the product from @{@var{rp}, @var{n}@} and write the result to @var{rp}. Return the most significant limb of the product, plus -borrow-out from the subtraction. +borrow-out from the subtraction. @{@var{s1p}, @var{n}@} and @{@var{rp}, +@var{n}@} are allowed to overlap provided @math{@var{rp} @le{} @var{s1p}}. This is a low-level function that is a building block for general multiplication and division as well as other operations in GMP@. It is written |