summaryrefslogtreecommitdiff
path: root/mpn
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2009-11-15 01:11:19 +0100
committerTorbjorn Granlund <tege@gmplib.org>2009-11-15 01:11:19 +0100
commitf7fa2e843382fba23fd46d68958ffc8652300b1d (patch)
tree31db0a9dd2ede49ca1c5622378efdf1511e26284 /mpn
parenta0c731b2f4f00407146eaeb29763e388476264e2 (diff)
downloadgmp-f7fa2e843382fba23fd46d68958ffc8652300b1d.tar.gz
Fix lot of spelling errors.
Diffstat (limited to 'mpn')
-rw-r--r--mpn/a29k/submul_1.s4
-rw-r--r--mpn/alpha/README2
-rw-r--r--mpn/alpha/ev6/mul_1.asm2
-rw-r--r--mpn/alpha/ev6/nails/mul_1.asm2
-rw-r--r--mpn/alpha/ev6/nails/submul_1.asm2
-rw-r--r--mpn/asm-defs.m42
-rw-r--r--mpn/generic/bdivmod.c2
-rw-r--r--mpn/generic/gcd_1.c4
-rw-r--r--mpn/generic/matrix22_mul.c2
-rw-r--r--mpn/generic/tdiv_qr.c2
-rw-r--r--mpn/generic/toom44_mul.c2
-rw-r--r--mpn/generic/toom62_mul.c4
-rw-r--r--mpn/generic/toom_eval_dgr3_pm2.c2
-rw-r--r--mpn/generic/toom_eval_pm1.c2
-rw-r--r--mpn/generic/toom_eval_pm2exp.c2
-rw-r--r--mpn/generic/toom_interpolate_6pts.c2
-rw-r--r--mpn/generic/toom_interpolate_7pts.c8
-rw-r--r--mpn/ia64/ia64-defs.m42
-rw-r--r--mpn/pa32/pa-defs.m42
-rw-r--r--mpn/pa64/aors_n.asm2
-rw-r--r--mpn/x86/invert_limb.asm4
-rw-r--r--mpn/x86/k6/aorsmul_1.asm4
-rw-r--r--mpn/x86/p6/aors_n.asm2
-rw-r--r--mpn/x86/p6/aorsmul_1.asm2
-rw-r--r--mpn/x86/x86-defs.m42
-rw-r--r--mpn/x86_64/aorrlsh1_n.asm2
-rw-r--r--mpn/x86_64/mod_1_4.asm2
-rw-r--r--mpn/x86_64/sqr_basecase.asm2
28 files changed, 36 insertions, 36 deletions
diff --git a/mpn/a29k/submul_1.s b/mpn/a29k/submul_1.s
index 7955b8953..8a02d88ab 100644
--- a/mpn/a29k/submul_1.s
+++ b/mpn/a29k/submul_1.s
@@ -82,7 +82,7 @@ Loop: mtsrim cr,(8-1)
subc gr102,gr102,gr110
subc gr103,gr103,gr111
- add gr104,gr103,gr111 ; invert carry from previus sub
+ add gr104,gr103,gr111 ; invert carry from previous sub
addc gr120,gr120,0
mtsrim cr,(8-1)
@@ -105,7 +105,7 @@ Loop2: load 0,0,gr116,lr3
add gr117,gr117,gr120
addc gr118,gr118,0
sub gr119,gr119,gr117
- add gr104,gr119,gr117 ; invert carry from previus sub
+ add gr104,gr119,gr117 ; invert carry from previous sub
store 0,0,gr119,lr2
jmpfdec lr4,Loop2
addc gr120,gr118,0
diff --git a/mpn/alpha/README b/mpn/alpha/README
index 3578c53b8..02a04a596 100644
--- a/mpn/alpha/README
+++ b/mpn/alpha/README
@@ -36,7 +36,7 @@ Cray T3 code is very very different...
them to "$6" or "$f6" where necessary.
"0x" introduces a hex constant in gas and DEC as, but on Unicos "^X" is
-required. The X() macro accomodates this difference.
+required. The X() macro accommodates this difference.
"cvttqc" is required by DEC as, "cvttq/c" is required by Unicos, and gas will
accept either. We use cvttqc and have an m4 define expand to cvttq/c where
diff --git a/mpn/alpha/ev6/mul_1.asm b/mpn/alpha/ev6/mul_1.asm
index 841f5083c..4e89ad9d0 100644
--- a/mpn/alpha/ev6/mul_1.asm
+++ b/mpn/alpha/ev6/mul_1.asm
@@ -49,7 +49,7 @@ C r20,r29,r13-r15 scramble
C
C We're doing 7 of the 8 carry propagations with a br fixup code and 1 with a
C put-the-carry-into-hi. The idea is that these branches are very rarely
-C taken, and since a non-taken branch consumes no resurces, that is better
+C taken, and since a non-taken branch consumes no resources, that is better
C than an addq.
C
C Software pipeline: a load in cycle #09, feeds a mul in cycle #16, feeds an
diff --git a/mpn/alpha/ev6/nails/mul_1.asm b/mpn/alpha/ev6/nails/mul_1.asm
index cac3776ba..534e1d35c 100644
--- a/mpn/alpha/ev6/nails/mul_1.asm
+++ b/mpn/alpha/ev6/nails/mul_1.asm
@@ -28,7 +28,7 @@ C TODO
C * Reroll loop for 3.0 c/l with current 4-way unrulling.
C * The loop is overscheduled wrt loads and wrt multiplies, in particular
C umulh.
-C * Use FP loop count and multiple exit points, that would simpily feed-in lp0
+C * Use FP loop count and multiple exit points, that would simplify feed-in lp0
C and would work since the loop structure is really regular.
C INPUT PARAMETERS
diff --git a/mpn/alpha/ev6/nails/submul_1.asm b/mpn/alpha/ev6/nails/submul_1.asm
index 4242517a4..41815e980 100644
--- a/mpn/alpha/ev6/nails/submul_1.asm
+++ b/mpn/alpha/ev6/nails/submul_1.asm
@@ -28,7 +28,7 @@ C TODO
C * Reroll loop for 3.75 c/l with current 4-way unrulling.
C * The loop is overscheduled wrt loads and wrt multiplies, in particular
C umulh.
-C * Use FP loop count and multiple exit points, that would simpily feed-in lp0
+C * Use FP loop count and multiple exit points, that would simplify feed-in lp0
C and would work since the loop structure is really regular.
C INPUT PARAMETERS
diff --git a/mpn/asm-defs.m4 b/mpn/asm-defs.m4
index 682c07258..5a3306bcb 100644
--- a/mpn/asm-defs.m4
+++ b/mpn/asm-defs.m4
@@ -49,7 +49,7 @@ dnl
dnl But note that when a quoted string is being read, a # isn't special, so
dnl apostrophes in comments in quoted strings must be avoided or they'll be
dnl interpreted as a closing quote mark. But when the quoted text is
-dnl re-read # will still act like a normal comment, supressing macro
+dnl re-read # will still act like a normal comment, suppressing macro
dnl expansion.
dnl
dnl For example,
diff --git a/mpn/generic/bdivmod.c b/mpn/generic/bdivmod.c
index 783b59408..a7bff1bbd 100644
--- a/mpn/generic/bdivmod.c
+++ b/mpn/generic/bdivmod.c
@@ -36,7 +36,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
Funding for this work has been partially provided by Conselho Nacional
de Desenvolvimento Cienti'fico e Tecnolo'gico (CNPq) do Brazil, Grant
- 301314194-2, and was done while I was a visiting reseacher in the Instituto
+ 301314194-2, and was done while I was a visiting researcher in the Instituto
de Matema'tica at Universidade Federal do Rio Grande do Sul (UFRGS).
References:
diff --git a/mpn/generic/gcd_1.c b/mpn/generic/gcd_1.c
index 5a899df60..ab16f4bb2 100644
--- a/mpn/generic/gcd_1.c
+++ b/mpn/generic/gcd_1.c
@@ -131,7 +131,7 @@ mpn_gcd_1 (mp_srcptr up, mp_size_t size, mp_limb_t vlimb)
vlimb >>= 1;
while (ulimb != vlimb)
- {
+ {
int c;
mp_limb_t t = ulimb - vlimb;
mp_limb_t vgtu = LIMB_HIGHBIT_TO_MASK (t);
@@ -144,7 +144,7 @@ mpn_gcd_1 (mp_srcptr up, mp_size_t size, mp_limb_t vlimb)
#if USE_ZEROTAB
/* Number of trailing zeros is the same no matter if we look at
- * t or ulimb, but using t gives more parallellism. */
+ * t or ulimb, but using t gives more parallelism. */
c = zerotab[t & 15];
while (UNLIKELY (c == 4))
diff --git a/mpn/generic/matrix22_mul.c b/mpn/generic/matrix22_mul.c
index e8287bc70..a0690c19c 100644
--- a/mpn/generic/matrix22_mul.c
+++ b/mpn/generic/matrix22_mul.c
@@ -155,7 +155,7 @@ mpn_matrix22_mul_strassen (mp_ptr r0, mp_ptr r1, mp_ptr r2, mp_ptr r3, mp_size_t
{
s0s = abs_sub_n (s0, r0, r1, rn);
s0[rn] = 0;
- }
+ }
MUL (u1, r0, rn, m0, mn); /* u0 = s0 * t0 */
r0[rn+mn] = mpn_add_n (r0, u0, u1, rn + mn);
ASSERT (r0[rn+mn] < 2); /* u0 + u5 */
diff --git a/mpn/generic/tdiv_qr.c b/mpn/generic/tdiv_qr.c
index 94e3c0bc4..59d04c424 100644
--- a/mpn/generic/tdiv_qr.c
+++ b/mpn/generic/tdiv_qr.c
@@ -1,7 +1,7 @@
/* mpn_tdiv_qr -- Divide the numerator (np,nn) by the denominator (dp,dn) and
write the nn-dn+1 quotient limbs at qp and the dn remainder limbs at rp. If
qxn is non-zero, generate that many fraction limbs and append them after the
- other quotient limbs, and update the remainder accordningly. The input
+ other quotient limbs, and update the remainder accordingly. The input
operands are unaffected.
Preconditions:
diff --git a/mpn/generic/toom44_mul.c b/mpn/generic/toom44_mul.c
index d6b200655..4a3e3d045 100644
--- a/mpn/generic/toom44_mul.c
+++ b/mpn/generic/toom44_mul.c
@@ -206,7 +206,7 @@ mpn_toom44_mul (mp_ptr pp,
ASSERT (bpx[n] < 15);
TOOM44_MUL_N_REC (vh, apx, bpx, n + 1, tp); /* vh, 2n+1 limbs */
-
+
/* Compute apx = a0 + a1 + a2 + a3 and amx = a0 - a1 + a2 - a3. */
if (mpn_toom_eval_dgr3_pm1 (apx, amx, ap, n, s, tp))
flags |= toom7_w3_neg;
diff --git a/mpn/generic/toom62_mul.c b/mpn/generic/toom62_mul.c
index 63110aa15..33b6acff9 100644
--- a/mpn/generic/toom62_mul.c
+++ b/mpn/generic/toom62_mul.c
@@ -174,7 +174,7 @@ mpn_toom62_mul (mp_ptr pp,
bflags = toom7_w3_neg;
}
else
- {
+ {
mpn_sub (bsm1, b0, n, b1, t);
bflags = 0;
}
@@ -248,7 +248,7 @@ mpn_toom62_mul (mp_ptr pp,
mpn_mul_n (v2, as2, bs2, n + 1); /* v2, 2n+1 limbs */
mpn_mul_n (vm2, asm2, bsm2, n + 1); /* vm2, 2n+1 limbs */
mpn_mul_n (vh, ash, bsh, n + 1); /* vh, 2n+1 limbs */
-
+
/* vm1, 2n+1 limbs */
mpn_mul_n (vm1, asm1, bsm1, n);
cy = 0;
diff --git a/mpn/generic/toom_eval_dgr3_pm2.c b/mpn/generic/toom_eval_dgr3_pm2.c
index 9b2405704..6ae6cff42 100644
--- a/mpn/generic/toom_eval_dgr3_pm2.c
+++ b/mpn/generic/toom_eval_dgr3_pm2.c
@@ -57,7 +57,7 @@ mpn_toom_eval_dgr3_pm2 (mp_ptr xp2, mp_ptr xm2,
tp[n] += mpn_add_n (tp, xp + n, tp, n);
#endif
mpn_lshift (tp, tp, n+1, 1);
-
+
neg = (mpn_cmp (xp2, tp, n + 1) < 0);
#if HAVE_NATIVE_mpn_add_n_sub_n
if (neg)
diff --git a/mpn/generic/toom_eval_pm1.c b/mpn/generic/toom_eval_pm1.c
index f32a4bb1f..ee6d2e1c7 100644
--- a/mpn/generic/toom_eval_pm1.c
+++ b/mpn/generic/toom_eval_pm1.c
@@ -42,7 +42,7 @@ mpn_toom_eval_pm1 (mp_ptr xp1, mp_ptr xm1, unsigned k,
/* The degree k is also the number of full-size coefficients, so
* that last coefficient, of size hn, starts at xp + k*n. */
-
+
xp1[n] = mpn_add_n (xp1, xp, xp + 2*n, n);
for (i = 4; i < k; i += 2)
ASSERT_NOCARRY (mpn_add (xp1, xp1, n+1, xp+i*n, n));
diff --git a/mpn/generic/toom_eval_pm2exp.c b/mpn/generic/toom_eval_pm2exp.c
index 9f83cd728..01a594af8 100644
--- a/mpn/generic/toom_eval_pm2exp.c
+++ b/mpn/generic/toom_eval_pm2exp.c
@@ -29,7 +29,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
/* Evaluates a polynomial of degree k > 3, in the points +2 and -2. */
int
-mpn_toom_eval_pm2exp (mp_ptr xp2, mp_ptr xm2, unsigned k,
+mpn_toom_eval_pm2exp (mp_ptr xp2, mp_ptr xm2, unsigned k,
mp_srcptr xp, mp_size_t n, mp_size_t hn, unsigned shift,
mp_ptr tp)
{
diff --git a/mpn/generic/toom_interpolate_6pts.c b/mpn/generic/toom_interpolate_6pts.c
index 550dc2090..67d2ef079 100644
--- a/mpn/generic/toom_interpolate_6pts.c
+++ b/mpn/generic/toom_interpolate_6pts.c
@@ -56,7 +56,7 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
Interpolation sequence was taken from the paper: "Integer and
Polynomial Multiplication: Towards Optimal Toom-Cook Matrices".
- Some slight variations were introduced: adaptatation to "gmp
+ Some slight variations were introduced: adaptation to "gmp
instruction set", and a final saving of an operation by interlacing
interpolation and recomposition phases.
*/
diff --git a/mpn/generic/toom_interpolate_7pts.c b/mpn/generic/toom_interpolate_7pts.c
index 3717e3b60..490ea08b8 100644
--- a/mpn/generic/toom_interpolate_7pts.c
+++ b/mpn/generic/toom_interpolate_7pts.c
@@ -99,7 +99,7 @@ mpn_toom_interpolate_7pts (mp_ptr rp, mp_size_t n, enum toom7_flags flags,
#define w0 rp
#define w2 (rp + 2*n)
#define w6 (rp + 6*n)
-
+
ASSERT (w6n > 0);
ASSERT (w6n <= 2*n);
@@ -156,7 +156,7 @@ mpn_toom_interpolate_7pts (mp_ptr rp, mp_size_t n, enum toom7_flags flags,
mpn_sub (w4, w4, m, w0, 2*n);
mpn_sub_n (w4, w4, w1, m); ASSERT (!(w4[0] & 3));
mpn_rshift (w4, w4, m, 2); /* w4>=0 */
-
+
tp[w6n] = mpn_lshift (tp, w6, w6n, 4);
mpn_sub (w4, w4, m, tp, w6n+1);
@@ -178,13 +178,13 @@ mpn_toom_interpolate_7pts (mp_ptr rp, mp_size_t n, enum toom7_flags flags,
mpn_rshift (w3, w3, m, 1);
#endif
}
-
+
mpn_sub_n (w2, w2, w3, m);
mpn_submul_1 (w5, w2, m, 65);
mpn_sub (w2, w2, m, w6, w6n);
mpn_sub (w2, w2, m, w0, 2*n);
-
+
mpn_addmul_1 (w5, w2, m, 45); ASSERT (!(w5[0] & 1));
mpn_rshift (w5, w5, m, 1);
mpn_sub_n (w4, w4, w2, m);
diff --git a/mpn/ia64/ia64-defs.m4 b/mpn/ia64/ia64-defs.m4
index 65ade991d..2a8b5cffb 100644
--- a/mpn/ia64/ia64-defs.m4
+++ b/mpn/ia64/ia64-defs.m4
@@ -75,7 +75,7 @@ dnl
dnl Emit a ".align" directive. "bytes" is eval()ed, so can be an
dnl expression.
dnl
-dnl This version overrides the definition in mpn/asm-defs.m4. We supress
+dnl This version overrides the definition in mpn/asm-defs.m4. We suppress
dnl any .align if the gas byte-swapped-nops bug was detected by configure
dnl GMP_ASM_IA64_ALIGN_OK.
diff --git a/mpn/pa32/pa-defs.m4 b/mpn/pa32/pa-defs.m4
index affaef897..837ee4747 100644
--- a/mpn/pa32/pa-defs.m4
+++ b/mpn/pa32/pa-defs.m4
@@ -22,7 +22,7 @@ dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
dnl hppa assembler comments are introduced with ";".
dnl
-dnl For cooperation with cpp, aparently lines "# 123" set the line number,
+dnl For cooperation with cpp, apparently lines "# 123" set the line number,
dnl and other lines starting with a "#" are ignored.
changecom(;)
diff --git a/mpn/pa64/aors_n.asm b/mpn/pa64/aors_n.asm
index 1831d0a61..14a860ac0 100644
--- a/mpn/pa64/aors_n.asm
+++ b/mpn/pa64/aors_n.asm
@@ -19,7 +19,7 @@ dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
dnl This runs at 2 cycles/limb on PA8000 and 1.6875 cycles/limb on PA8500. It
-dnl should be possible to reach the cache bandwith 1.5 cycles/limb at least
+dnl should be possible to reach the cache bandwidth 1.5 cycles/limb at least
dnl with PA8500. The problem now is stalling of the first ADD,DC after LDO,
dnl where the processor gets confused about where carry comes from.
diff --git a/mpn/x86/invert_limb.asm b/mpn/x86/invert_limb.asm
index 53641f8f6..c9295c79a 100644
--- a/mpn/x86/invert_limb.asm
+++ b/mpn/x86/invert_limb.asm
@@ -32,7 +32,7 @@ C %ebx and %edx are temporaries.
C %esi and %ebp is unused.
defframe(PARAM_DIVISOR,4)
-
+
TEXT
ALIGN(16)
PROLOGUE(mpn_invert_limb)
@@ -90,7 +90,7 @@ ifdef(`PIC',`
pop %edi
C pop %ebp
pop %ebx
-
+
ret
EPILOGUE()
diff --git a/mpn/x86/k6/aorsmul_1.asm b/mpn/x86/k6/aorsmul_1.asm
index c3795e3ab..5f1cd9cd1 100644
--- a/mpn/x86/k6/aorsmul_1.asm
+++ b/mpn/x86/k6/aorsmul_1.asm
@@ -36,7 +36,7 @@ C K7:
C K8:
-dnl K6: large multpliers small multpliers
+dnl K6: large multipliers small multipliers
dnl UNROLL_COUNT cycles/limb cycles/limb
dnl 4 9.5 7.78
dnl 8 9.0 7.78
@@ -247,7 +247,7 @@ C registers at the point of doing the mul for the initial two carry limbs.
C
C The add/adc for the initial carry in %esi is necessary only for the
C mpn_addmul/submul_1c entry points. Duplicating the startup code to
-C eliminiate this for the plain mpn_add/submul_1 doesn't seem like a good
+C eliminate this for the plain mpn_add/submul_1 doesn't seem like a good
C idea.
dnl overlapping with parameters already fetched
diff --git a/mpn/x86/p6/aors_n.asm b/mpn/x86/p6/aors_n.asm
index f4652ec2c..784ed08d6 100644
--- a/mpn/x86/p6/aors_n.asm
+++ b/mpn/x86/p6/aors_n.asm
@@ -20,7 +20,7 @@ dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
include(`../config.m4')
C TODO:
-C * Avoid indexed adressing, it makes us stall on the two-ported register
+C * Avoid indexed addressing, it makes us stall on the two-ported register
C file.
C cycles/limb
diff --git a/mpn/x86/p6/aorsmul_1.asm b/mpn/x86/p6/aorsmul_1.asm
index 746bf05f1..d0b0cef62 100644
--- a/mpn/x86/p6/aorsmul_1.asm
+++ b/mpn/x86/p6/aorsmul_1.asm
@@ -170,7 +170,7 @@ C registers when doing the mul for the initial two carry limbs.
C
C The add/adc for the initial carry in %ebx is necessary only for the
C mpn_add/submul_1c entry points. Duplicating the startup code to
-C eliminiate this for the plain mpn_add/submul_1 doesn't seem like a good
+C eliminate this for the plain mpn_add/submul_1 doesn't seem like a good
C idea.
dnl overlapping with parameters already fetched
diff --git a/mpn/x86/x86-defs.m4 b/mpn/x86/x86-defs.m4
index 5b4a8e1fa..b1f36ddeb 100644
--- a/mpn/x86/x86-defs.m4
+++ b/mpn/x86/x86-defs.m4
@@ -895,7 +895,7 @@ dnl movl_code_address(L(foo),%eax)
dnl
dnl This macro is only meant for use in ASSERT()s or when testing, since
dnl the PIC sequence it generates will want to be done with a ret balancing
-dnl the call on CPUs with return address branch predition.
+dnl the call on CPUs with return address branch prediction.
dnl
dnl The addl generated here has a backward reference to the label, and so
dnl won't suffer from the two forwards references bug in old gas (described
diff --git a/mpn/x86_64/aorrlsh1_n.asm b/mpn/x86_64/aorrlsh1_n.asm
index 6dc3a33c1..514e9b57a 100644
--- a/mpn/x86_64/aorrlsh1_n.asm
+++ b/mpn/x86_64/aorrlsh1_n.asm
@@ -142,7 +142,7 @@ ifdef(`OPERATION_addlsh1_n',`
ifdef(`OPERATION_rsblsh1_n',`
sub R32(%rax), R32(%rbp)
movslq R32(%rbp), %rax')
-
+
pop %rbp
ret
EPILOGUE()
diff --git a/mpn/x86_64/mod_1_4.asm b/mpn/x86_64/mod_1_4.asm
index 1b9bf405e..bb8a6b221 100644
--- a/mpn/x86_64/mod_1_4.asm
+++ b/mpn/x86_64/mod_1_4.asm
@@ -38,7 +38,7 @@ PROLOGUE(mpn_mod_1s_4p)
push %r12
push %rbp
push %rbx
-
+
mov %rdx, -16(%rsp)
mov %rcx, %r14
mov 16(%rcx), %r11
diff --git a/mpn/x86_64/sqr_basecase.asm b/mpn/x86_64/sqr_basecase.asm
index b7374c5c6..8774d0a68 100644
--- a/mpn/x86_64/sqr_basecase.asm
+++ b/mpn/x86_64/sqr_basecase.asm
@@ -310,7 +310,7 @@ L(L3): xor R32(w1), R32(w1)
adc %rdx, w1
mov w2, 8(tp)
mov w1, 16(tp)
-
+
lea eval(2*8)(tp), tp C tp += 2
lea -8(up), up
jmp L(dowhile)