[Gmp-commit] /var/hg/gmp: Fix some spelling errors.

mercurial at gmplib.org mercurial at gmplib.org
Sun May 3 14:13:28 UTC 2015


details:   /var/hg/gmp/rev/8abbe32eaa70
changeset: 16613:8abbe32eaa70
user:      Torbjorn Granlund <torbjorng at google.com>
date:      Sun May 03 16:13:25 2015 +0200
description:
Fix some spelling errors.

diffstat:

 gmp-h.in                           |  2 +-
 gmp-impl.h                         |  4 ++--
 mpn/generic/tdiv_qr.c              |  2 +-
 mpn/powerpc32/vmx/copyd.asm        |  2 +-
 mpn/powerpc32/vmx/copyi.asm        |  2 +-
 mpn/x86/pentium4/sse2/popcount.asm |  2 +-
 mpq/clear.c                        |  2 +-
 mpz/cmp_ui.c                       |  2 +-
 mpz/cmpabs_ui.c                    |  2 +-
 mpz/powm_ui.c                      |  2 +-
 10 files changed, 11 insertions(+), 11 deletions(-)

diffs (113 lines):

diff -r 4fe5cd26ebf2 -r 8abbe32eaa70 gmp-h.in
--- a/gmp-h.in	Sat May 02 13:01:30 2015 +0200
+++ b/gmp-h.in	Sun May 03 16:13:25 2015 +0200
@@ -463,7 +463,7 @@
 #endif
 
 
-/* Allow direct user access to numerator and denominator of a mpq_t object.  */
+/* Allow direct user access to numerator and denominator of an mpq_t object.  */
 #define mpq_numref(Q) (&((Q)->_mp_num))
 #define mpq_denref(Q) (&((Q)->_mp_den))
 
diff -r 4fe5cd26ebf2 -r 8abbe32eaa70 gmp-impl.h
--- a/gmp-impl.h	Sat May 02 13:01:30 2015 +0200
+++ b/gmp-impl.h	Sun May 03 16:13:25 2015 +0200
@@ -2808,8 +2808,8 @@
 struct bases
 {
   /* Number of digits in the conversion base that always fits in an mp_limb_t.
-     For example, for base 10 on a machine where a mp_limb_t has 32 bits this
-     is 9, since 10**9 is the largest number that fits into a mp_limb_t.  */
+     For example, for base 10 on a machine where an mp_limb_t has 32 bits this
+     is 9, since 10**9 is the largest number that fits into an mp_limb_t.  */
   int chars_per_limb;
 
   /* log(2)/log(conversion_base) */
diff -r 4fe5cd26ebf2 -r 8abbe32eaa70 mpn/generic/tdiv_qr.c
--- a/mpn/generic/tdiv_qr.c	Sat May 02 13:01:30 2015 +0200
+++ b/mpn/generic/tdiv_qr.c	Sun May 03 16:13:25 2015 +0200
@@ -183,7 +183,7 @@
 		  by the qn most significant limbs from the denominator.  Call
 		  the result qest.  This is either the correct quotient, but
 		  might be 1 or 2 too large.  Compute the remainder from the
-		  division.  (This step is implemented by a mpn_divrem call.)
+		  division.  (This step is implemented by an mpn_divrem call.)
 
 	       2) Is the most significant limb from the remainder < p, where p
 		  is the product of the most significant limb from the quotient
diff -r 4fe5cd26ebf2 -r 8abbe32eaa70 mpn/powerpc32/vmx/copyd.asm
--- a/mpn/powerpc32/vmx/copyd.asm	Sat May 02 13:01:30 2015 +0200
+++ b/mpn/powerpc32/vmx/copyd.asm	Sun May 03 16:13:25 2015 +0200
@@ -48,7 +48,7 @@
 C  * The VMX code is used from the smallest sizes it handles, but measurements
 C    show a large speed bump at the cutoff points.  Small copying (perhaps
 C    using some read-modify-write technique) should be optimized.
-C  * Make a mpn_com based on this code.
+C  * Make an mpn_com based on this code.
 
 define(`GMP_LIMB_BYTES', eval(GMP_LIMB_BITS/8))
 define(`LIMBS_PER_VR',  eval(16/GMP_LIMB_BYTES))
diff -r 4fe5cd26ebf2 -r 8abbe32eaa70 mpn/powerpc32/vmx/copyi.asm
--- a/mpn/powerpc32/vmx/copyi.asm	Sat May 02 13:01:30 2015 +0200
+++ b/mpn/powerpc32/vmx/copyi.asm	Sun May 03 16:13:25 2015 +0200
@@ -48,7 +48,7 @@
 C  * The VMX code is used from the smallest sizes it handles, but measurements
 C    show a large speed bump at the cutoff points.  Small copying (perhaps
 C    using some read-modify-write technique) should be optimized.
-C  * Make a mpn_com based on this code.
+C  * Make an mpn_com based on this code.
 
 define(`GMP_LIMB_BYTES', eval(GMP_LIMB_BITS/8))
 define(`LIMBS_PER_VR',  eval(16/GMP_LIMB_BYTES))
diff -r 4fe5cd26ebf2 -r 8abbe32eaa70 mpn/x86/pentium4/sse2/popcount.asm
--- a/mpn/x86/pentium4/sse2/popcount.asm	Sat May 02 13:01:30 2015 +0200
+++ b/mpn/x86/pentium4/sse2/popcount.asm	Sun May 03 16:13:25 2015 +0200
@@ -58,7 +58,7 @@
 C VIA nano			6.5
 
 C TODO
-C  * Make a mpn_hamdist based on this.  Alignment could either be handled by
+C  * Make an mpn_hamdist based on this.  Alignment could either be handled by
 C    using movdqu for one operand and movdqa for the other, or by painfully
 C    shifting as we go.  Unfortunately, there seem to be no usable shift
 C    instruction, except for one that takes an immediate count.
diff -r 4fe5cd26ebf2 -r 8abbe32eaa70 mpq/clear.c
--- a/mpq/clear.c	Sat May 02 13:01:30 2015 +0200
+++ b/mpq/clear.c	Sun May 03 16:13:25 2015 +0200
@@ -1,4 +1,4 @@
-/* mpq_clear -- free the space occupied by a mpq_t.
+/* mpq_clear -- free the space occupied by an mpq_t.
 
 Copyright 1991, 1994, 1995, 2000, 2001 Free Software Foundation, Inc.
 
diff -r 4fe5cd26ebf2 -r 8abbe32eaa70 mpz/cmp_ui.c
--- a/mpz/cmp_ui.c	Sat May 02 13:01:30 2015 +0200
+++ b/mpz/cmp_ui.c	Sun May 03 16:13:25 2015 +0200
@@ -1,4 +1,4 @@
-/* mpz_cmp_ui.c -- Compare a mpz_t a with an mp_limb_t b.  Return positive,
+/* mpz_cmp_ui.c -- Compare an mpz_t a with an mp_limb_t b.  Return positive,
   zero, or negative based on if a > b, a == b, or a < b.
 
 Copyright 1991, 1993-1996, 2001, 2002 Free Software Foundation, Inc.
diff -r 4fe5cd26ebf2 -r 8abbe32eaa70 mpz/cmpabs_ui.c
--- a/mpz/cmpabs_ui.c	Sat May 02 13:01:30 2015 +0200
+++ b/mpz/cmpabs_ui.c	Sun May 03 16:13:25 2015 +0200
@@ -1,4 +1,4 @@
-/* mpz_cmpabs_ui.c -- Compare a mpz_t a with an mp_limb_t b.  Return positive,
+/* mpz_cmpabs_ui.c -- Compare an mpz_t a with an mp_limb_t b.  Return positive,
   zero, or negative based on if a > b, a == b, or a < b.
 
 Copyright 1991, 1993-1995, 1997, 2000-2002 Free Software Foundation, Inc.
diff -r 4fe5cd26ebf2 -r 8abbe32eaa70 mpz/powm_ui.c
--- a/mpz/powm_ui.c	Sat May 02 13:01:30 2015 +0200
+++ b/mpz/powm_ui.c	Sun May 03 16:13:25 2015 +0200
@@ -282,7 +282,7 @@
     }
   else
     {
-      /* For large exponents, fake a mpz_t exponent and deflect to the more
+      /* For large exponents, fake an mpz_t exponent and deflect to the more
 	 sophisticated mpz_powm.  */
       mpz_t e;
       mp_limb_t ep[LIMBS_PER_ULONG];


More information about the gmp-commit mailing list