Spelling fixes
David Sparks
sparks05 at proton.me
Sun Feb 8 13:56:06 CET 2026
I ran across one it's/its error while reading, so I did a grep
and tried to fix them all. Mostly it's -> its, but there's one
(mpn/generic/get_d.c) in the other direction.
diff --git a/Makefile.am b/Makefile.am
index 03356e0c6..862ea4067 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -430,7 +430,7 @@ EXTRA_DIST += mini-gmp/README mini-gmp/mini-gmp.c mini-gmp/mini-gmp.h \
# *~ - emacs backups
# .#* - cvs merge originals
#
-# *~ and .#* only occur when a whole directory without it's own Makefile.am
+# *~ and .#* only occur when a whole directory without its own Makefile.am
# is distributed, like "doc" or the mpn cpu subdirectories.
#
dist-hook:
diff --git a/acinclude.m4 b/acinclude.m4
index 4fca12de2..5eb2ca5fb 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1250,7 +1250,7 @@ dnl -oldas ends up being harmless, but clearly that's only through good
dnl luck.
dnl
dnl This macro is designed for use while probing for a good compiler, and
-dnl so doesn't cache it's result.
+dnl so doesn't cache its result.
AC_DEFUN([GMP_GCC_WA_OLDAS],
[AC_MSG_CHECKING([for $1 -Wa,-oldas])
diff --git a/configure.ac b/configure.ac
index edee25fae..88069c989 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1078,7 +1078,7 @@ case $host in
;;
- # Darwin (powerpc-apple-darwin1.3) has it's hacked gcc installed as cc.
+ # Darwin (powerpc-apple-darwin1.3) has its hacked gcc installed as cc.
# Our usual "gcc in disguise" detection means gcc_cflags etc here gets
# used.
#
@@ -2792,7 +2792,7 @@ esac
# and an empty result. This only happens when invoked as "sh configure",
# ie. no path, and can be seen for instance on ia64-*-hpux*.
#
-# FIXME: Newer libtool should have it's own fix for this.
+# FIXME: Newer libtool should have its own fix for this.
#
if test -z "$CONFIG_SHELL"; then
CONFIG_SHELL=$SHELL
diff --git a/cxx/osdoprnti.cc b/cxx/osdoprnti.cc
index 00dee1557..fa07ace3d 100644
--- a/cxx/osdoprnti.cc
+++ b/cxx/osdoprnti.cc
@@ -42,7 +42,7 @@ using namespace std;
/* The gmp_asprintf support routines never give an error, so
- __gmp_doprnt_integer shouldn't fail and it's return can just be checked
+ __gmp_doprnt_integer shouldn't fail and its return can just be checked
with an ASSERT. */
ostream&
diff --git a/cxx/osmpf.cc b/cxx/osmpf.cc
index fd875dbb2..bbdb84021 100644
--- a/cxx/osmpf.cc
+++ b/cxx/osmpf.cc
@@ -39,7 +39,7 @@ using namespace std;
/* The gmp_asprintf support routines never give an error, so
- __gmp_doprnt_mpf shouldn't fail and it's return can just be checked with
+ __gmp_doprnt_mpf shouldn't fail and its return can just be checked with
an ASSERT. */
ostream&
diff --git a/demos/calc/calc.y b/demos/calc/calc.y
index b86d43610..76f8070b4 100644
--- a/demos/calc/calc.y
+++ b/demos/calc/calc.y
@@ -192,7 +192,7 @@ statement:
| DECIMAL { ibase = 0; obase = 10; }
| QUIT { exit (0); };
-/* "e" leaves it's value on the top of the mpz stack. A rule like "e '+' e"
+/* "e" leaves its value on the top of the mpz stack. A rule like "e '+' e"
will have done a reduction for the first "e" first and the second "e"
second, so the code receives the values in that order on the stack. */
e:
diff --git a/demos/calc/calcread.c b/demos/calc/calcread.c
index 40433686c..ad1e86a4c 100644
--- a/demos/calc/calcread.c
+++ b/demos/calc/calcread.c
@@ -82,7 +82,7 @@ calc_init_readline (void)
/* This function is supposed to return YY_NULL to indicate EOF, but that
constant is only in calclex.c and we don't want to clutter calclex.l with
this readline stuff, so instead just hard code 0 for YY_NULL. That's
- it's defined value on unix anyway. */
+ its defined value on unix anyway. */
int
calc_input (char *buf, size_t max_size)
diff --git a/doc/tasks.html b/doc/tasks.html
index 9a25bef1a..8eb29af57 100644
--- a/doc/tasks.html
+++ b/doc/tasks.html
@@ -81,7 +81,7 @@ either already been taken care of, or have become irrelevant.
situation; put similar code in <code>mpf_eq</code>. [In progress.]
<li> <code>mpf_eq</code> doesn't implement what gmp.texi specifies. It should
not use just whole limbs, but partial limbs. [In progress.]
-<li> <code>mpf_set_str</code> doesn't validate it's exponent, for instance
+<li> <code>mpf_set_str</code> doesn't validate its exponent, for instance
garbage 123.456eX789X is accepted (and an exponent 0 used), and overflow
of a <code>long</code> is not detected.
<li> <code>mpf_add</code> doesn't check for a carry from truncated portions of
diff --git a/mpn/cpp-ccas b/mpn/cpp-ccas
index 25f7cdcbe..6eabdcbd8 100755
--- a/mpn/cpp-ccas
+++ b/mpn/cpp-ccas
@@ -97,7 +97,7 @@ if test -z "$S"; then
exit 1
fi
-# Libtool adds it's own -o when sending output to .libs/foo.o, but not
+# Libtool adds its own -o when sending output to .libs/foo.o, but not
# when just wanting foo.o in the current directory. We need an
# explicit -o in both cases since we're assembling tmp-foo.s.
#
diff --git a/mpn/generic/get_d.c b/mpn/generic/get_d.c
index 8bef12810..fd0fbf692 100644
--- a/mpn/generic/get_d.c
+++ b/mpn/generic/get_d.c
@@ -109,7 +109,7 @@ static volatile const long CONST_NEG_1022_SUB_53 = -1022 - 53;
denorms may or may not be taken. The IEEE code works bitwise and so
probably won't trigger them, the generic code works by float operations and
so probably will. This difference might be thought less than ideal, but
- again its felt straightforward code is better than trying to get intimate
+ again it's felt straightforward code is better than trying to get intimate
with hardware exceptions (of perhaps unknown nature).
diff --git a/mpn/m4-ccas b/mpn/m4-ccas
index 16d80c6f5..85411f0c0 100755
--- a/mpn/m4-ccas
+++ b/mpn/m4-ccas
@@ -89,7 +89,7 @@ if test -z "$ASM"; then
exit 1
fi
-# Libtool adds it's own -o when sending output to .libs/foo.o, but not
+# Libtool adds its own -o when sending output to .libs/foo.o, but not
# when just wanting foo.o in the current directory. We need an
# explicit -o in both cases since we're assembling tmp-foo.s.
#
diff --git a/mpn/m68k/m68k-defs.m4 b/mpn/m68k/m68k-defs.m4
index 15289f676..2417ddd8f 100644
--- a/mpn/m68k/m68k-defs.m4
+++ b/mpn/m68k/m68k-defs.m4
@@ -111,7 +111,7 @@ dnl
dnl `base' is an address register, `index' is a data register, `size' is w
dnl or l, and scale is 1, 2, 4 or 8.
dnl
-dnl M(-,base) has it's arguments that way around to emphasise it's a
+dnl M(-,base) has its arguments that way around to emphasise it's a
dnl pre-decrement, as opposed to M(base,+) a post-increment.
dnl
dnl Enhancement: Add the memory indirect modes, if/when they're needed.
diff --git a/mpn/x86/k6/mul_basecase.asm b/mpn/x86/k6/mul_basecase.asm
index 7030001c3..804ae5cf7 100644
--- a/mpn/x86/k6/mul_basecase.asm
+++ b/mpn/x86/k6/mul_basecase.asm
@@ -43,7 +43,7 @@ dnl 32 9.3
dnl Maximum possible with the current code is 32.
dnl
dnl With 16 the inner unrolled loop fits exactly in a 256 byte block, which
-dnl might explain it's good performance.
+dnl might explain its good performance.
deflit(UNROLL_COUNT, 16)
diff --git a/printf/snprntffuns.c b/printf/snprntffuns.c
index 885c7ab57..7d117e882 100644
--- a/printf/snprntffuns.c
+++ b/printf/snprntffuns.c
@@ -53,7 +53,7 @@ see https://www.gnu.org/licenses/. */
of vsnprintf we've got. size-1 should occur rarely in normal
circumstances.
- vsnprintf might trash it's given ap (it does for instance in glibc 2.1.3
+ vsnprintf might trash its given ap (it does for instance in glibc 2.1.3
on powerpc), so copy it in case we need to use it to probe for the size
output that would have been produced. Note there's no need to preserve
it for our callers, just for ourselves. */
diff --git a/printf/vasprintf.c b/printf/vasprintf.c
index 8a29a1234..e43afbd4d 100644
--- a/printf/vasprintf.c
+++ b/printf/vasprintf.c
@@ -63,7 +63,7 @@ see https://www.gnu.org/licenses/. */
successful. But actually GMP_ASPRINTF_T_NEED() will realloc to even
bigger than that ret+2.
- vsnprintf might trash it's given ap, so copy it in case we need to use it
+ vsnprintf might trash its given ap, so copy it in case we need to use it
more than once. See comments with gmp_snprintf_format. */
static int
diff --git a/tune/common.c b/tune/common.c
index 2bd9c39b0..b888780ff 100644
--- a/tune/common.c
+++ b/tune/common.c
@@ -394,7 +394,7 @@ speed_option_set (const char *s)
/* The following are basic speed running routines for various gmp functions.
Many are very similar and use speed.h macros.
- Each routine allocates it's own destination space for the result of the
+ Each routine allocates its own destination space for the result of the
function, because only it can know what the function needs.
speed_starttime() and speed_endtime() are put tight around the code to be
More information about the gmp-devel
mailing list