[Gmp-commit] /var/hg/gmp-5.0: mpf_urandomb doc

mercurial at gmplib.org mercurial at gmplib.org
Sun May 1 12:08:24 CEST 2011


details:   /var/hg/gmp-5.0/rev/6285e9364044
changeset: 13460:6285e9364044
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Sun May 01 12:08:19 2011 +0200
description:
mpf_urandomb doc

diffstat:

 ChangeLog    |  3 +++
 doc/gmp.texi |  3 ++-
 2 files changed, 5 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r d7c0e3fd4742 -r 6285e9364044 ChangeLog
--- a/ChangeLog	Sat Apr 30 14:57:16 2011 +0200
+++ b/ChangeLog	Sun May 01 12:08:19 2011 +0200
@@ -5,6 +5,9 @@
 	(mpz_remove): Likewise.
 	(mpf_eq): Likewise.
 
+	* doc/gmp.texi (mpf_urandomb): Explicit the fact that it does not
+	change the precision.
+
 2011-04-27  Torbjorn Granlund  <tege at gmplib.org>
 
 	* tune/speed.h (speed_cyclecounter): Always use PIC variant when
diff -r d7c0e3fd4742 -r 6285e9364044 doc/gmp.texi
--- a/doc/gmp.texi	Sat Apr 30 14:57:16 2011 +0200
+++ b/doc/gmp.texi	Sun May 01 12:08:19 2011 +0200
@@ -5037,7 +5037,8 @@
 @cindex Random number functions
 @cindex Float random number functions
 Generate a uniformly distributed random float in @var{rop}, such that @math{0
- at le{} @var{rop} < 1}, with @var{nbits} significant bits in the mantissa.
+ at le{} @var{rop} < 1}, with @var{nbits} significant bits in the mantissa or
+less if the precision of @var{rop} is smaller.
 
 The variable @var{state} must be initialized by calling one of the
 @code{gmp_randinit} functions (@ref{Random State Initialization}) before


More information about the gmp-commit mailing list