none
Torbjorn Granlund
tg at swox.com
Thu Apr 24 13:31:41 CEST 2008
"Chris Saunders" <evas at mountaincable.net> writes:
Just something I think is incorrect in the online documentation:
URL: http://gmplib.org/manual/Integer-Division.html#Integer-Division
The line "tdiv rounds q towards zero, and r will have the same sign as n.
The t stands for "truncate"."
I think the original text is correct.
Think I found an error in the online documentation:
URL:
http://gmplib.org/manual/Random-State-Initialization.html#Random-State-Initialization
Error: - Function: int gmp_randinit_mt (gmp_randstate_t state)
When looking at gmp.h the function appears to return void (I'm not a C
expert).
You're right, I will correct this.
URL:
http://gmplib.org/manual/Integer-Import-and-Export.html#Integer-Import-and-Export
Error: - Function: void mpz_import (mpz_t rop, size_t count, int order,
int size, int endian, size_t nails, const void *op)
Here is the signature from gmp.h:
#define mpz_import __gmpz_import
__GMP_DECLSPEC void mpz_import __GMP_PROTO ((mpz_ptr, size_t, int, size_t,
int, size_t, __gmp_const void *));
I think the correction should be:
- Function: void mpz_import (mpz_t rop, size_t count, int order, size_t
size, int endian, size_t nails, const void *op)
You're right, I will correct this too.
URL:
http://gmplib.org/manual/Integer-Import-and-Export.html#Integer-Import-and-Export
Error: - Function: void * mpz_export (void *rop, size_t *countp, int
order, int size, int endian, size_t nails, mpz_t op)
Here the definition from gmp.h:
#define mpz_export __gmpz_export
__GMP_DECLSPEC void *mpz_export __GMP_PROTO ((void *, size_t *, int,
size_t, int, size_t, mpz_srcptr));
The signatures don't appear to be the same.
You're right about this too.
--
Torbjörn
More information about the gmp-bugs
mailing list