[Gmp-commit] /var/hg/gmp: doc/gmp.texi: revert changes not intended for the r...

mercurial at gmplib.org mercurial at gmplib.org
Mon Mar 18 15:51:18 CET 2013


details:   /var/hg/gmp/rev/db4619c0f9a0
changeset: 15597:db4619c0f9a0
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Mon Mar 18 15:51:14 2013 +0100
description:
doc/gmp.texi: revert changes not intended for the repo...

diffstat:

 doc/gmp.texi |  23 ++---------------------
 1 files changed, 2 insertions(+), 21 deletions(-)

diffs (47 lines):

diff -r 90486ce1defe -r db4619c0f9a0 doc/gmp.texi
--- a/doc/gmp.texi	Mon Mar 18 07:31:52 2013 +0100
+++ b/doc/gmp.texi	Mon Mar 18 15:51:14 2013 +0100
@@ -3045,8 +3045,7 @@
 
 @deftypefun int mpz_set_str (mpz_t @var{rop}, char *@var{str}, int @var{base})
 Set the value of @var{rop} from @var{str}, a null-terminated C string in base
- at var{base}.  White space is allowed at the beginning, and at the end of the
-string, or between digits, and is simply ignored.
+ at var{base}.  White space is allowed in the string, and is simply ignored.
 
 The @var{base} may vary from 2 to 62, or if @var{base} is 0, then the leading
 characters are used: @code{0x} and @code{0X} for hexadecimal, @code{0b} and
@@ -3989,15 +3988,7 @@
 @code{short} and @code{int} are always stored in 8 bytes (and with
 @code{sizeof} indicating that) but use only 32 or 46 bits.  The @var{nails}
 feature can account for this, by passing for instance
- at code{8*sizeof(int)-INT_BIT}.  The supported way to set an @code{mpz_t}
-variable with a value in the @code{mpn} format, follows.
-
- at example
-mp_limb_t *xp;
-mp_size_t  xn;
-/* Initialize @var{z} and @var{xp, xn} */
-mpz_import (z, xn, -1, sizeof(mp_limb_t), 0, GMP_NAIL_BITS, xp);
- at end example
+ at code{8*sizeof(int)-INT_BIT}.
 @end deftypefun
 
 @deftypefun {void *} mpz_export (void *@var{rop}, size_t *@var{countp}, int @var{order}, size_t @var{size}, int @var{endian}, size_t @var{nails}, mpz_t @var{op})
@@ -4041,16 +4032,6 @@
 count = (mpz_sizeinbase (z, 2) + numb-1) / numb;
 p = malloc (count * size);
 @end example
-
-The supported way to extract the absolute value of an @code{mpz_t} variable
-into the @code{mpn} format, follows.
-
- at example
-mp_limb_t *xp;
-mp_size_t  xn;
-/* Initialize @var{z} */
-xp = mpz_export (NULL, &xn, -1, sizeof(mp_limb_t), 0, GMP_NAIL_BITS, z);
- at end example
 @end deftypefun
 
 


More information about the gmp-commit mailing list