summaryrefslogtreecommitdiff
path: root/libc/ports
diff options
context:
space:
mode:
authorjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2013-09-05 22:41:05 +0000
committerjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2013-09-05 22:41:05 +0000
commit2c1d357a5fe5bdc4c9521a9d1af05ba1b5a4c238 (patch)
tree12e23fa555f1432064e8fdeeb063dce798764f50 /libc/ports
parent0d983ceeeee6bd20ae296d224ca2fd4bf27a47af (diff)
Merge changes between r23795 and r23927 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@23928 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/ports')
-rw-r--r--libc/ports/ChangeLog7
-rw-r--r--libc/ports/ChangeLog.alpha8
-rw-r--r--libc/ports/ChangeLog.am338
-rw-r--r--libc/ports/ChangeLog.arm30
-rw-r--r--libc/ports/ChangeLog.hppa11
-rw-r--r--libc/ports/ChangeLog.ia6427
-rw-r--r--libc/ports/ChangeLog.m68k8
-rw-r--r--libc/ports/ChangeLog.mips26
-rw-r--r--libc/ports/ChangeLog.powerpc4
-rw-r--r--libc/ports/ChangeLog.tile4
-rw-r--r--libc/ports/sysdeps/alpha/alphaev67/stpncpy.S2
-rw-r--r--libc/ports/sysdeps/am33/fpu/fraiseexcpt.c2
-rw-r--r--libc/ports/sysdeps/arm/armv6t2/strlen.S169
-rw-r--r--libc/ports/sysdeps/arm/dl-machine.h2
-rw-r--r--libc/ports/sysdeps/hppa/dl-lookupcfg.h2
-rw-r--r--libc/ports/sysdeps/hppa/fpu/fraiseexcpt.c2
-rw-r--r--libc/ports/sysdeps/ia64/fpu/e_acoshl.S4
-rw-r--r--libc/ports/sysdeps/ia64/fpu/e_atanhl.S2
-rw-r--r--libc/ports/sysdeps/ia64/fpu/e_log.S2
-rw-r--r--libc/ports/sysdeps/ia64/fpu/e_log2l.S2
-rw-r--r--libc/ports/sysdeps/ia64/fpu/e_logf.S6
-rw-r--r--libc/ports/sysdeps/ia64/fpu/e_logl.S4
-rw-r--r--libc/ports/sysdeps/ia64/fpu/fraiseexcpt.c2
-rw-r--r--libc/ports/sysdeps/ia64/fpu/libm_lgammaf.S4
-rw-r--r--libc/ports/sysdeps/ia64/fpu/libm_lgammal.S74
-rw-r--r--libc/ports/sysdeps/ia64/fpu/libm_reduce.S6
-rw-r--r--libc/ports/sysdeps/ia64/fpu/s_erfc.S2
-rw-r--r--libc/ports/sysdeps/ia64/fpu/s_erfcf.S2
-rw-r--r--libc/ports/sysdeps/ia64/fpu/s_erfcl.S2
-rw-r--r--libc/ports/sysdeps/ia64/fpu/s_log1p.S2
-rw-r--r--libc/ports/sysdeps/ia64/fpu/s_log1pl.S4
-rw-r--r--libc/ports/sysdeps/ia64/fpu/w_tgammal.S10
-rw-r--r--libc/ports/sysdeps/m68k/m680x0/fpu/fraiseexcpt.c2
-rw-r--r--libc/ports/sysdeps/mips/fpu/fedisblxcpt.c1
-rw-r--r--libc/ports/sysdeps/mips/fpu/feenablxcpt.c1
-rw-r--r--libc/ports/sysdeps/mips/fpu_control.h5
-rw-r--r--libc/ports/sysdeps/mips/memcpy.S18
-rw-r--r--libc/ports/sysdeps/mips/sys/asm.h2
-rw-r--r--libc/ports/sysdeps/powerpc/powerpc32/405/memcpy.S2
-rw-r--r--libc/ports/sysdeps/tile/jmpbuf-offsets.h2
-rw-r--r--libc/ports/sysdeps/unix/sysv/linux/alpha/bits/netdb.h2
-rw-r--r--libc/ports/sysdeps/unix/sysv/linux/am33/bits/fcntl.h2
-rw-r--r--libc/ports/sysdeps/unix/sysv/linux/arm/clone.S4
-rw-r--r--libc/ports/sysdeps/unix/sysv/linux/arm/ldsodefs.h6
-rw-r--r--libc/ports/sysdeps/unix/sysv/linux/hppa/Versions3
-rw-r--r--libc/ports/sysdeps/unix/sysv/linux/hppa/clone.S2
-rw-r--r--libc/ports/sysdeps/unix/sysv/linux/hppa/nptl/pthread.h4
-rw-r--r--libc/ports/sysdeps/unix/sysv/linux/hppa/syscalls.list1
-rw-r--r--libc/ports/sysdeps/unix/sysv/linux/hppa/sysdep.h2
-rw-r--r--libc/ports/sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c2
-rw-r--r--libc/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h6
-rw-r--r--libc/ports/sysdeps/unix/sysv/linux/m68k/mmap64.c5
-rw-r--r--libc/ports/sysdeps/unix/sysv/linux/mips/ldsodefs.h4
53 files changed, 410 insertions, 106 deletions
diff --git a/libc/ports/ChangeLog b/libc/ports/ChangeLog
index fcb58cc0a..9b638017f 100644
--- a/libc/ports/ChangeLog
+++ b/libc/ports/ChangeLog
@@ -1,3 +1,10 @@
+2013-09-02 Mike Frysinger <vapier@gentoo.org>
+
+ * sysdeps/unix/sysv/linux/hppa/syscalls.list (fanotify_mark): New
+ entry.
+ * sysdeps/unix/sysv/linux/hppa/Versions (libc): Add GLIBC_2.19 and
+ fanotify_mark.
+
2013-01-02 Joseph Myers <joseph@codesourcery.com>
* README: Update copyright dates in example.
diff --git a/libc/ports/ChangeLog.alpha b/libc/ports/ChangeLog.alpha
index 4a4db09fb..e5c7bc1da 100644
--- a/libc/ports/ChangeLog.alpha
+++ b/libc/ports/ChangeLog.alpha
@@ -1,3 +1,11 @@
+2013-08-30 Ondřej Bílka <neleai@seznam.cz>
+
+ * sysdeps/alpha/alphaev67/stpncpy.S: Fix then/than typos.
+
+2013-08-30 Ondřej Bílka <neleai@seznam.cz>
+
+ * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: Fix typos.
+
2013-07-02 Richard Henderson <rth@redhat.com>
* sysdeps/alpha/fpu/libm-test-ulps: Update.
diff --git a/libc/ports/ChangeLog.am33 b/libc/ports/ChangeLog.am33
index 3206e0b74..79bcc0a10 100644
--- a/libc/ports/ChangeLog.am33
+++ b/libc/ports/ChangeLog.am33
@@ -1,3 +1,11 @@
+2013-08-29 Ondřej Bílka <neleai@seznam.cz>
+
+ * sysdeps/unix/sysv/linux/am33/bits/fcntl.h: Fix typos.
+
+2013-08-21 Ondřej Bílka <neleai@seznam.cz>
+
+ * sysdeps/am33/fpu/fraiseexcpt.c: Fix typos.
+
2013-06-05 Joseph Myers <joseph@codesourcery.com>
* sysdeps/am33/elf/start.S: Remove trailing whitespace.
diff --git a/libc/ports/ChangeLog.arm b/libc/ports/ChangeLog.arm
index 1e7a35c6a..8ef09b116 100644
--- a/libc/ports/ChangeLog.arm
+++ b/libc/ports/ChangeLog.arm
@@ -1,3 +1,33 @@
+2013-08-30 Roland McGrath <roland@hack.frob.com>
+
+ * sysdeps/arm/armv6t2/strlen.S: Use sfi_pld and sfi_breg macros.
+
+ * sysdeps/arm/armv6t2/strlen.S: Include <arm-features.h> first thing.
+ [NO_THUMB]: Adapt code for ARM mode.
+
+2013-08-30 Will Newton <will.newton@linaro.org>
+
+ [BZ #15909]
+ * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Use blx
+ instead of mov lr, pc.
+
+2013-08-30 Will Newton <will.newton@linaro.org>
+
+ * sysdeps/arm/armv6t2/strlen.S: New file.
+
+2013-08-29 Thomas Schwinge <thomas@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/arm/ldsodefs.h (VALID_ELF_OSABI)
+ (MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU instead of
+ ELFOSABI_LINUX.
+
+2013-08-28 Kyle McMartin <kyle@redhat.com>
+ Carlos O'Donell <carlos@redhat.com>
+
+ [BZ #15905]
+ * sysdeps/arm/dl-machine [!RTLD_BOOTSTRAP] (elf_machine_rel):
+ Pass GLRO(dl_hwcap) to the IFUNC resolver.
+
2013-07-03 Joseph Myers <joseph@codesourcery.com>
* sysdeps/arm/include/bits/setjmp.h [_ISOMAC] (JMP_BUF_REGLIST):
diff --git a/libc/ports/ChangeLog.hppa b/libc/ports/ChangeLog.hppa
index d40fb9950..ea4ef886f 100644
--- a/libc/ports/ChangeLog.hppa
+++ b/libc/ports/ChangeLog.hppa
@@ -1,3 +1,14 @@
+2013-08-30 Ondřej Bílka <neleai@seznam.cz>
+
+ * sysdeps/unix/sysv/linux/hppa/clone.S: Fix typos.
+ * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Likewise.
+
+2013-08-21 Ondřej Bílka <neleai@seznam.cz>
+
+ * sysdeps/hppa/dl-lookupcfg.h: Fix typos.
+ * sysdeps/hppa/fpu/fraiseexcpt.c: Likewise.
+ * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
+
2013-07-23 Carlos O'Donell <carlos@redhat.com>
* sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
diff --git a/libc/ports/ChangeLog.ia64 b/libc/ports/ChangeLog.ia64
index 92b81cba9..efe352e6b 100644
--- a/libc/ports/ChangeLog.ia64
+++ b/libc/ports/ChangeLog.ia64
@@ -1,3 +1,30 @@
+2013-08-30 Ondřej Bílka <neleai@seznam.cz>
+
+ * sysdeps/ia64/fpu/libm_reduce.S: Fix typos.
+ * sysdeps/ia64/fpu/s_erfcf.S: Likewise.
+ * sysdeps/ia64/fpu/s_erfcl.S: Likewise.
+ * sysdeps/ia64/fpu/s_erfc.S: Likewise.
+ * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Likewise.
+
+2013-08-29 Ondřej Bílka <neleai@seznam.cz>
+
+ * sysdeps/ia64/fpu/e_acoshl.S: Fix typos.
+ * sysdeps/ia64/fpu/e_logf.S: Likewise.
+ * sysdeps/ia64/fpu/e_log.S: Likewise.
+ * sysdeps/ia64/fpu/libm_lgammaf.S: Likewise.
+ * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
+ * sysdeps/ia64/fpu/s_log1p.S: Likewise.
+ * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
+
+2013-08-21 Ondřej Bílka <neleai@seznam.cz>
+
+ * sysdeps/ia64/fpu/e_atanhl.S: Fix typos.
+ * sysdeps/ia64/fpu/e_log2l.S: Likewise.
+ * sysdeps/ia64/fpu/e_logl.S: Likewise.
+ * sysdeps/ia64/fpu/fraiseexcpt.c: Likewise.
+ * sysdeps/ia64/fpu/libm_lgammal.S: Likewise.
+ * sysdeps/ia64/fpu/s_log1pl.S: Likewise.
+
2013-07-04 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_LISTEN):
diff --git a/libc/ports/ChangeLog.m68k b/libc/ports/ChangeLog.m68k
index 2666d38e8..ba9865a9d 100644
--- a/libc/ports/ChangeLog.m68k
+++ b/libc/ports/ChangeLog.m68k
@@ -1,3 +1,11 @@
+2013-09-04 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/m68k/mmap64.c: New file.
+
+2013-08-21 Ondřej Bílka <neleai@seznam.cz>
+
+ * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c: Fix typos.
+
2013-07-20 Andreas Schwab <schwab@linux-m68k.org>
* sysdeps/unix/sysv/linux/m68k/dl-static.c: New file.
diff --git a/libc/ports/ChangeLog.mips b/libc/ports/ChangeLog.mips
index 6e42b77de..5844bf589 100644
--- a/libc/ports/ChangeLog.mips
+++ b/libc/ports/ChangeLog.mips
@@ -1,3 +1,29 @@
+2013-08-30 Ondřej Bílka <neleai@seznam.cz>
+
+ * sysdeps/mips/memcpy.S: Fix then/than typos.
+
+2013-08-30 Ondřej Bílka <neleai@seznam.cz>
+
+ * sysdeps/mips/memcpy.S: Fix typos.
+
+2013-08-29 Thomas Schwinge <thomas@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
+ Use ELFOSABI_GNU instead of ELFOSABI_LINUX.
+
+2013-08-29 Ondřej Bílka <neleai@seznam.cz>
+
+ * sysdeps/mips/sys/asm.h: Fix typos.
+
+2013-08-22 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * sysdeps/mips/fpu_control.h: Document bits reserved for
+ architecture implementers.
+ (_FPU_RESERVED): Clear bit #21.
+ * sysdeps/mips/fpu/fedisblxcpt.c (fedisableexcept): Don't clear
+ reserved bits.
+ * sysdeps/mips/fpu/feenablxcpt.c (feenableexcept): Likewise.
+
2013-07-02 Joseph Myers <joseph@codesourcery.com>
* sysdeps/mips/mips32/libm-test-ulps: Regenerated.
diff --git a/libc/ports/ChangeLog.powerpc b/libc/ports/ChangeLog.powerpc
index e503682ce..375e9566e 100644
--- a/libc/ports/ChangeLog.powerpc
+++ b/libc/ports/ChangeLog.powerpc
@@ -1,3 +1,7 @@
+2013-08-30 Ondřej Bílka <neleai@seznam.cz>
+
+ * sysdeps/powerpc/powerpc32/405/memcpy.S: Fix typos.
+
2013-08-17 Alexandre Oliva <aoliva@redhat.com>
PR 15483
diff --git a/libc/ports/ChangeLog.tile b/libc/ports/ChangeLog.tile
index a2ec5e18c..5ad254c5f 100644
--- a/libc/ports/ChangeLog.tile
+++ b/libc/ports/ChangeLog.tile
@@ -1,3 +1,7 @@
+2013-08-21 Ondřej Bílka <neleai@seznam.cz>
+
+ * sysdeps/tile/jmpbuf-offsets.h: Fix typos.
+
2013-07-22 Chris Metcalf <cmetcalf@tilera.com>
[BZ #15759]
diff --git a/libc/ports/sysdeps/alpha/alphaev67/stpncpy.S b/libc/ports/sysdeps/alpha/alphaev67/stpncpy.S
index 47841bbfa..336db7dd0 100644
--- a/libc/ports/sysdeps/alpha/alphaev67/stpncpy.S
+++ b/libc/ports/sysdeps/alpha/alphaev67/stpncpy.S
@@ -16,7 +16,7 @@
License along with the GNU C Library. If not, see
<http://www.gnu.org/licenses/>. */
-/* Copy no more then N bytes from SRC to DEST, returning the address of
+/* Copy no more than N bytes from SRC to DEST, returning the address of
the terminating '\0' in DEST. */
#include <sysdep.h>
diff --git a/libc/ports/sysdeps/am33/fpu/fraiseexcpt.c b/libc/ports/sysdeps/am33/fpu/fraiseexcpt.c
index f62e83a19..1610adf5e 100644
--- a/libc/ports/sysdeps/am33/fpu/fraiseexcpt.c
+++ b/libc/ports/sysdeps/am33/fpu/fraiseexcpt.c
@@ -35,7 +35,7 @@ __feraiseexcept (int excepts)
/* First: invalid exception. */
if (excepts & FE_INVALID)
{
- /* One example of a invalid operation is 0 * Infinity. */
+ /* One example of an invalid operation is 0 * Infinity. */
float x = HUGE_VALF, y = 0.0f;
__asm__ __volatile__ ("fmul %1,%0" : "+f" (x) : "f" (y));
}
diff --git a/libc/ports/sysdeps/arm/armv6t2/strlen.S b/libc/ports/sysdeps/arm/armv6t2/strlen.S
new file mode 100644
index 000000000..f2b3ab4b5
--- /dev/null
+++ b/libc/ports/sysdeps/arm/armv6t2/strlen.S
@@ -0,0 +1,169 @@
+/* Copyright (C) 2010-2011,2013 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library. If not, see
+ <http://www.gnu.org/licenses/>. */
+
+/*
+ Assumes:
+ ARMv6T2, AArch32
+
+ */
+
+#include <arm-features.h> /* This might #define NO_THUMB. */
+#include <sysdep.h>
+
+#ifdef __ARMEB__
+#define S2LO lsl
+#define S2HI lsr
+#else
+#define S2LO lsr
+#define S2HI lsl
+#endif
+
+#ifndef NO_THUMB
+/* This code is best on Thumb. */
+ .thumb
+#else
+/* Using bne.w explicitly is desirable in Thumb mode because it helps
+ align the following label without a nop. In ARM mode there is no
+ such difference. */
+.macro bne.w label
+ bne \label
+.endm
+
+/* This clobbers the condition codes, which the real Thumb cbnz instruction
+ does not do. But it doesn't matter for any of the uses here. */
+.macro cbnz reg, label
+ cmp \reg, #0
+ bne \label
+.endm
+#endif
+
+/* Parameters and result. */
+#define srcin r0
+#define result r0
+
+/* Internal variables. */
+#define src r1
+#define data1a r2
+#define data1b r3
+#define const_m1 r12
+#define const_0 r4
+#define tmp1 r4 /* Overlaps const_0 */
+#define tmp2 r5
+
+ .text
+ .p2align 6
+ENTRY(strlen)
+ sfi_pld srcin, #0
+ strd r4, r5, [sp, #-8]!
+ cfi_adjust_cfa_offset (8)
+ cfi_rel_offset (r4, 0)
+ cfi_rel_offset (r5, 4)
+ cfi_remember_state
+ bic src, srcin, #7
+ mvn const_m1, #0
+ ands tmp1, srcin, #7 /* (8 - bytes) to alignment. */
+ sfi_pld src, #32
+ bne.w .Lmisaligned8
+ mov const_0, #0
+ mov result, #-8
+.Lloop_aligned:
+ /* Bytes 0-7. */
+ sfi_breg src, \
+ ldrd data1a, data1b, [\B]
+ sfi_pld src, #64
+ add result, result, #8
+.Lstart_realigned:
+ uadd8 data1a, data1a, const_m1 /* Saturating GE<0:3> set. */
+ sel data1a, const_0, const_m1 /* Select based on GE<0:3>. */
+ uadd8 data1b, data1b, const_m1
+ sel data1b, data1a, const_m1 /* Only used if d1a == 0. */
+ cbnz data1b, .Lnull_found
+
+ /* Bytes 8-15. */
+ sfi_breg src, \
+ ldrd data1a, data1b, [\B, #8]
+ uadd8 data1a, data1a, const_m1 /* Saturating GE<0:3> set. */
+ add result, result, #8
+ sel data1a, const_0, const_m1 /* Select based on GE<0:3>. */
+ uadd8 data1b, data1b, const_m1
+ sel data1b, data1a, const_m1 /* Only used if d1a == 0. */
+ cbnz data1b, .Lnull_found
+
+ /* Bytes 16-23. */
+ sfi_breg src, \
+ ldrd data1a, data1b, [\B, #16]
+ uadd8 data1a, data1a, const_m1 /* Saturating GE<0:3> set. */
+ add result, result, #8
+ sel data1a, const_0, const_m1 /* Select based on GE<0:3>. */
+ uadd8 data1b, data1b, const_m1
+ sel data1b, data1a, const_m1 /* Only used if d1a == 0. */
+ cbnz data1b, .Lnull_found
+
+ /* Bytes 24-31. */
+ sfi_breg src, \
+ ldrd data1a, data1b, [\B, #24]
+ add src, src, #32
+ uadd8 data1a, data1a, const_m1 /* Saturating GE<0:3> set. */
+ add result, result, #8
+ sel data1a, const_0, const_m1 /* Select based on GE<0:3>. */
+ uadd8 data1b, data1b, const_m1
+ sel data1b, data1a, const_m1 /* Only used if d1a == 0. */
+ cmp data1b, #0
+ beq .Lloop_aligned
+
+.Lnull_found:
+ cmp data1a, #0
+ itt eq
+ addeq result, result, #4
+ moveq data1a, data1b
+#ifndef __ARMEB__
+ rev data1a, data1a
+#endif
+ clz data1a, data1a
+ ldrd r4, r5, [sp], #8
+ cfi_adjust_cfa_offset (-8)
+ cfi_restore (r4)
+ cfi_restore (r5)
+ add result, result, data1a, lsr #3 /* Bits -> Bytes. */
+ DO_RET(lr)
+
+.Lmisaligned8:
+ cfi_restore_state
+ sfi_breg src, \
+ ldrd data1a, data1b, [\B]
+ and tmp2, tmp1, #3
+ rsb result, tmp1, #0
+ lsl tmp2, tmp2, #3 /* Bytes -> bits. */
+ tst tmp1, #4
+ sfi_pld src, #64
+ S2HI tmp2, const_m1, tmp2
+#ifdef NO_THUMB
+ mvn tmp1, tmp2
+ orr data1a, data1a, tmp1
+ itt ne
+ orrne data1b, data1b, tmp1
+#else
+ orn data1a, data1a, tmp2
+ itt ne
+ ornne data1b, data1b, tmp2
+#endif
+ movne data1a, const_m1
+ mov const_0, #0
+ b .Lstart_realigned
+
+END(strlen)
+libc_hidden_builtin_def (strlen)
diff --git a/libc/ports/sysdeps/arm/dl-machine.h b/libc/ports/sysdeps/arm/dl-machine.h
index d25152733..85dba67fb 100644
--- a/libc/ports/sysdeps/arm/dl-machine.h
+++ b/libc/ports/sysdeps/arm/dl-machine.h
@@ -503,7 +503,7 @@ elf_machine_rel (struct link_map *map, const Elf32_Rel *reloc,
break;
case R_ARM_IRELATIVE:
value = map->l_addr + *reloc_addr;
- value = ((Elf32_Addr (*) (void)) value) ();
+ value = ((Elf32_Addr (*) (int)) value) (GLRO(dl_hwcap));
*reloc_addr = value;
break;
#endif
diff --git a/libc/ports/sysdeps/hppa/dl-lookupcfg.h b/libc/ports/sysdeps/hppa/dl-lookupcfg.h
index 5c84c4367..f3125e5ec 100644
--- a/libc/ports/sysdeps/hppa/dl-lookupcfg.h
+++ b/libc/ports/sysdeps/hppa/dl-lookupcfg.h
@@ -57,7 +57,7 @@ void _dl_unmap (struct link_map *map);
})
-/* The test for "addr & 2" below is to accomodate old binaries which
+/* The test for "addr & 2" below is to accommodate old binaries which
violated the ELF ABI by pointing DT_INIT and DT_FINI at a function
descriptor. */
#define DL_DT_INIT_ADDRESS(map, addr) \
diff --git a/libc/ports/sysdeps/hppa/fpu/fraiseexcpt.c b/libc/ports/sysdeps/hppa/fpu/fraiseexcpt.c
index 0b55d3439..28e2db4aa 100644
--- a/libc/ports/sysdeps/hppa/fpu/fraiseexcpt.c
+++ b/libc/ports/sysdeps/hppa/fpu/fraiseexcpt.c
@@ -42,7 +42,7 @@ feraiseexcept (int excepts)
/* First: Invalid exception. */
if (excepts & FE_INVALID)
{
- /* One example of a invalid operation is 0 * Infinity. */
+ /* One example of an invalid operation is 0 * Infinity. */
double d = HUGE_VAL;
__asm__ __volatile__ (
" fcpy,dbl %%fr0,%%fr22\n"
diff --git a/libc/ports/sysdeps/ia64/fpu/e_acoshl.S b/libc/ports/sysdeps/ia64/fpu/e_acoshl.S
index 1ce292c88..71f899e42 100644
--- a/libc/ports/sysdeps/ia64/fpu/e_acoshl.S
+++ b/libc/ports/sysdeps/ia64/fpu/e_acoshl.S
@@ -249,7 +249,7 @@
RODATA
.align 64
-// Near 1 path rational aproximation coefficients
+// Near 1 path rational approximation coefficients
LOCAL_OBJECT_START(Poly_P)
data8 0xB0978143F695D40F, 0x3FF1 // .84205539791447100108478906277453574946e-4
data8 0xB9800D841A8CAD29, 0x3FF6 // .28305085180397409672905983082168721069e-2
@@ -655,7 +655,7 @@ GLOBAL_LIBM_ENTRY(acoshl)
};;
{ .mfi
- getf.d GR_Arg = FR_Arg // get arument as double (int64)
+ getf.d GR_Arg = FR_Arg // get argument as double (int64)
fma.s0 FR_Two = f1, f1, f1 // construct 2.0
addl GR_ad_z_1 = @ltoff(Constants_Z_1#),gp // logl tables
}
diff --git a/libc/ports/sysdeps/ia64/fpu/e_atanhl.S b/libc/ports/sysdeps/ia64/fpu/e_atanhl.S
index 846a89ec3..5d828d5ff 100644
--- a/libc/ports/sysdeps/ia64/fpu/e_atanhl.S
+++ b/libc/ports/sysdeps/ia64/fpu/e_atanhl.S
@@ -99,7 +99,7 @@
// calculation is subdivided into two stages. The first stage is
// calculating of X = 2*|x|/(1-|x|). The second one is calculating of
// sign(x)*log1pl(X)/2. To obtain required accuracy we use precise division
-// algorythm output of which is a pair of two extended precision values those
+// algorithm output of which is a pair of two extended precision values those
// approximate result of division with accuracy higher than working
// precision. This pair is passed to modified log1pl function.
//
diff --git a/libc/ports/sysdeps/ia64/fpu/e_log.S b/libc/ports/sysdeps/ia64/fpu/e_log.S
index 3c5ebc2f0..d755fa5f2 100644
--- a/libc/ports/sysdeps/ia64/fpu/e_log.S
+++ b/libc/ports/sysdeps/ia64/fpu/e_log.S
@@ -134,7 +134,7 @@
// InvX = frcpa(x)
// r = InvX*x - 1
// P(r) = r*((r*A3 - A2) + r^4*((A4 + r*A5) + r^2*(A6 + r*A7)),
-// all coefficients are calcutated in quad and rounded to double
+// all coefficients are calculated in quad and rounded to double
// precision. A7,A6,A5,A4 are stored in memory whereas A3 and A2
// created with setf.
//
diff --git a/libc/ports/sysdeps/ia64/fpu/e_log2l.S b/libc/ports/sysdeps/ia64/fpu/e_log2l.S
index 837c55d29..f33969aba 100644
--- a/libc/ports/sysdeps/ia64/fpu/e_log2l.S
+++ b/libc/ports/sysdeps/ia64/fpu/e_log2l.S
@@ -471,7 +471,7 @@ GLOBAL_IEEE754_ENTRY(log2l)
(p7) br.cond.spnt LOG2_PSEUDO_ZERO
}
{.mfi
- // get T_low adress
+ // get T_low address
shladd r3=r28,3,r3
// if first 8 bits after leading 1 are all ones, use polynomial approx. only
(p10) fms.s1 f6=f7,f36,f1
diff --git a/libc/ports/sysdeps/ia64/fpu/e_logf.S b/libc/ports/sysdeps/ia64/fpu/e_logf.S
index 3d11a296c..9175f9551 100644
--- a/libc/ports/sysdeps/ia64/fpu/e_logf.S
+++ b/libc/ports/sysdeps/ia64/fpu/e_logf.S
@@ -159,7 +159,7 @@
//
// 3. How we define is input argument such that |x-1| < 1/256 or not.
//
-// To do it we analyze biased exponent and significand of input argment.
+// To do it we analyze biased exponent and significand of input argument.
//
// a) First we test is biased exponent equal to 0xFFFE or 0xFFFF (i.e.
// we test is 0.5 <= x < 2). This comparison can be performed using
@@ -838,7 +838,7 @@ GLOBAL_IEEE754_ENTRY(log10f)
{ .mib
setf.exp FR_A2 = GR_05 // create A2
sub GR_de = GR_Exp,GR_05 // biased_exponent_of_x - 0xFFFE
- // needed to comparion with 0.5 and 2.0
+ // needed for comparison with 0.5 and 2.0
br.cond.sptk logf_log10f_common
};;
GLOBAL_IEEE754_END(log10f)
@@ -873,7 +873,7 @@ GLOBAL_IEEE754_ENTRY(logf)
setf.d FR_A3 = GR_A3 // create A3
fcmp.eq.s1 p13,p14 = f0,f0 // p13 - true for logf
sub GR_de = GR_Exp,GR_05 // biased_exponent_of_x - 0xFFFE
- // needed to comparion with 0.5 and 2.0
+ // needed for comparison with 0.5 and 2.0
}
{ .mlx
setf.exp FR_A2 = GR_05 // create A2
diff --git a/libc/ports/sysdeps/ia64/fpu/e_logl.S b/libc/ports/sysdeps/ia64/fpu/e_logl.S
index e12c65d51..996f64aae 100644
--- a/libc/ports/sysdeps/ia64/fpu/e_logl.S
+++ b/libc/ports/sysdeps/ia64/fpu/e_logl.S
@@ -211,7 +211,7 @@
//
// Calculate X_1 := X_0 * Z_1 truncated to lsb = 2^(-14)
// = 1.0 0 0 0 d_5 ... d_14
-// This is accomplised by integer multiplication.
+// This is accomplished by integer multiplication.
// It is proved that X_1 indeed always begin
// with 1.0000 in fixed point.
//
@@ -232,7 +232,7 @@
//
// Calculate X_2 := X_1 * Z_2 truncated to lsb = 2^(-14)
// = 1.0 0 0 0 0 0 0 0 d_9 d_10 ... d_14
-// This is accomplised by integer multiplication.
+// This is accomplished by integer multiplication.
// It is proved that X_2 indeed always begin
// with 1.00000000 in fixed point.
//
diff --git a/libc/ports/sysdeps/ia64/fpu/fraiseexcpt.c b/libc/ports/sysdeps/ia64/fpu/fraiseexcpt.c
index aaa9b6166..76c1b7a31 100644
--- a/libc/ports/sysdeps/ia64/fpu/fraiseexcpt.c
+++ b/libc/ports/sysdeps/ia64/fpu/fraiseexcpt.c
@@ -40,7 +40,7 @@ feraiseexcept (int excepts)
/* First: invalid exception. */
if (FE_INVALID & excepts)
{
- /* One example of a invalid operation is 0 * Infinity. */
+ /* One example of an invalid operation is 0 * Infinity. */
tmp = 0;
__asm__ __volatile__ ("frcpa.s0 %0,p1=f0,f0" : "=f" (tmp) : : "p1" );
}
diff --git a/libc/ports/sysdeps/ia64/fpu/libm_lgammaf.S b/libc/ports/sysdeps/ia64/fpu/libm_lgammaf.S
index 4bd92c3b2..7218911f5 100644
--- a/libc/ports/sysdeps/ia64/fpu/libm_lgammaf.S
+++ b/libc/ports/sysdeps/ia64/fpu/libm_lgammaf.S
@@ -1064,7 +1064,7 @@ lgammaf_0_1:
{ .mfi
ldfpd FR_Ln2,FR_05 = [GR_ad_Data],16
fma.s1 FR_P32 = FR_P3,FR_r,FR_P2
- // input argument cann't be equal to 1.0
+ // input argument can't be equal to 1.0
cmp.eq p0,p14 = r0,r0
};;
{ .mfi
@@ -1456,7 +1456,7 @@ lgammaf_negrecursion:
// load coefficients of polynomial approximation
// of ln(GAMMA(x)), x is close to one of negative roots
(p13) ldfpd FR_R3,FR_R2 = [GR_ad_RootCo]
- // argumenth for logarithm
+ // arguments for logarithm
(p10) fma.s1 FR_Req = FR_Req,FR_Xp2,f0
mov GR_ExpMask = 0x1ffff
}
diff --git a/libc/ports/sysdeps/ia64/fpu/libm_lgammal.S b/libc/ports/sysdeps/ia64/fpu/libm_lgammal.S
index 351befb14..185433ab8 100644
--- a/libc/ports/sysdeps/ia64/fpu/libm_lgammal.S
+++ b/libc/ports/sysdeps/ia64/fpu/libm_lgammal.S
@@ -317,7 +317,7 @@
//
// Calculate X_1 := X_0 * Z_1 truncated to lsb = 2^(-14)
// = 1.0 0 0 0 d_5 ... d_14
-// This is accomplised by integer multiplication.
+// This is accomplished by integer multiplication.
// It is proved that X_1 indeed always begin
// with 1.0000 in fixed point.
//
@@ -338,7 +338,7 @@
//
// Calculate X_2 := X_1 * Z_2 truncated to lsb = 2^(-14)
// = 1.0 0 0 0 0 0 0 0 d_9 d_10 ... d_14
-// This is accomplised by integer multiplication.
+// This is accomplished by integer multiplication.
// It is proved that X_2 indeed always begin
// with 1.00000000 in fixed point.
//
@@ -1334,7 +1334,7 @@ LOCAL_OBJECT_END(lgammal_near_neg_half_data)
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
LOCAL_OBJECT_START(lgammal_right_roots_polynomial_data)
// Polynomial coefficients for right root on [-3, -2]
-// Lgammal is aproximated by polynomial within [-.056244 ; .158208 ] range
+// Lgammal is approximated by polynomial within [-.056244 ; .158208 ] range
data8 0xBBBD5E9DCD11030B, 0xB867411D9FF87DD4 //A0
data8 0x3FF83FE966AF535E, 0x3CAA21235B8A769A //A1
data8 0x40136EEBB002F55C, 0x3CC3959A6029838E //A2
@@ -1356,7 +1356,7 @@ data8 0x40E0FB2C989CE4A3 //A17
data8 0x40E52739AB005641 //A18
data8 0x41161E3E6DDF503A //A19
// Polynomial coefficients for right root on [-4, -3]
-// Lgammal is aproximated by polynomial within [-.172797 ; .171573 ] range
+// Lgammal is approximated by polynomial within [-.172797 ; .171573 ] range
data8 0x3C172712B248E42E, 0x38CB8D17801A5D67 //A0
data8 0x401F20A65F2FAC54, 0x3CCB9EA1817A824E //A1
data8 0x4039D4D2977150EF, 0x3CDA42E149B6276A //A2
@@ -1378,7 +1378,7 @@ data8 0x42A7256F59B286F7 //A17
data8 0x42D462D1586DE61F //A18
data8 0x42FBB1228D6C5118 //A19
// Polynomial coefficients for right root on [-5, -4]
-// Lgammal is aproximated by polynomial within [-.163171 ; .161988 ] range
+// Lgammal is approximated by polynomial within [-.163171 ; .161988 ] range
data8 0x3C5840FBAFDEE5BB, 0x38CAC0336E8C490A //A0
data8 0x403ACA5CF4921642, 0x3CCEDCDDA5491E56 //A1
data8 0x40744415CD813F8E, 0x3CFBFEBC17E39146 //A2
@@ -1400,7 +1400,7 @@ data8 0x44A3507DA81D5C01 //A17
data8 0x44EF06A31E39EEDF //A18
data8 0x45333774C99F523F //A19
// Polynomial coefficients for right root on [-6, -5]
-// Lgammal is aproximated by polynomial within [-.156450 ; .156126 ] range
+// Lgammal is approximated by polynomial within [-.156450 ; .156126 ] range
data8 0x3C71B82D6B2B3304, 0x3917186E3C0DC231 //A0
data8 0x405ED72E0829AE02, 0x3C960C25157980EB //A1
data8 0x40BCECC32EC22F9B, 0x3D5D8335A32F019C //A2
@@ -1422,7 +1422,7 @@ data8 0x4709D045390A3810 //A17
data8 0x4778D360873C9F64 //A18
data8 0x47E26965BE9A682A //A19
// Polynomial coefficients for right root on [-7, -6]
-// Lgammal is aproximated by polynomial within [-.154582 ; .154521 ] range
+// Lgammal is approximated by polynomial within [-.154582 ; .154521 ] range
data8 0x3C75F103A1B00A48, 0x391C041C190C726D //A0
data8 0x40869DE49E3AF2AA, 0x3D1C17E1F813063B //A1
data8 0x410FCE23484CFD10, 0x3DB6F38C2F11DAB9 //A2
@@ -1444,7 +1444,7 @@ data8 0x49C47CC9AE3F1073 //A17
data8 0x4A5D38E8C35EFF45 //A18
data8 0x4AF0123E89694CD8 //A19
// Polynomial coefficients for right root on [-8, -7]
-// Lgammal is aproximated by polynomial within [-.154217 ; .154208 ] range
+// Lgammal is approximated by polynomial within [-.154217 ; .154208 ] range
data8 0xBCD2507D818DDD68, 0xB97F6940EA2871A0 //A0
data8 0x40B3B407AA387BCB, 0x3D6320238F2C43D1 //A1
data8 0x41683E85DAAFBAC7, 0x3E148D085958EA3A //A2
@@ -1466,7 +1466,7 @@ data8 0x4CC05021086F637B //A17
data8 0x4D8450A345B0FB49 //A18
data8 0x4E43825848865DB2 //A19
// Polynomial coefficients for right root on [-9, -8]
-// Lgammal is aproximated by polynomial within [-.154160 ; .154158 ] range
+// Lgammal is approximated by polynomial within [-.154160 ; .154158 ] range
data8 0x3CDF4358564F2B46, 0x397969BEE6042F81 //A0
data8 0x40E3B088FED67721, 0x3D82787BA937EE85 //A1
data8 0x41C83A3893550EF4, 0x3E542ED57E244DA8 //A2
@@ -1488,7 +1488,7 @@ data8 0x4FF03797EACD0F23 //A17
data8 0x50E4304A8E68A730 //A18
data8 0x51D3618FB2EC9F93 //A19
// Polynomial coefficients for right root on [-10, -9]
-// Lgammal is aproximated by polynomial within [-.154152 ; .154152 ] range
+// Lgammal is approximated by polynomial within [-.154152 ; .154152 ] range
data8 0x3D42F34DA97ECF0C, 0x39FD1256F345B0D0 //A0
data8 0x4116261203919787, 0x3DC12D44055588EB //A1
data8 0x422EA8F32FB7FE99, 0x3ED849CE4E7B2D77 //A2
@@ -1510,7 +1510,7 @@ data8 0x534E00B6B0C8B809 //A17
data8 0x5475022FE21215B2 //A18
data8 0x5596B02BF6C5E19B //A19
// Polynomial coefficients for right root on [-11, -10]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
data8 0x3D7AA9C2E2B1029C, 0x3A15FB37578544DB //A0
data8 0x414BAF825A0C91D4, 0x3DFB9DA2CE398747 //A1
data8 0x4297F3EC8AE0AF03, 0x3F34208B55FB8781 //A2
@@ -1532,7 +1532,7 @@ data8 0x56D4D10FEEDB030C //A17
data8 0x5832385DF86AD28A //A18
data8 0x598898914B4D6523 //A19
// Polynomial coefficients for right root on [-12, -11]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
data8 0xBD96F61647C58B03, 0xBA3ABB0C2A6C755B //A0
data8 0x418308A82714B70D, 0x3E1088FC6A104C39 //A1
data8 0x4306A493DD613C39, 0x3FB2341ECBF85741 //A2
@@ -1554,7 +1554,7 @@ data8 0x5A824088688B008D //A17
data8 0x5C15F75EF7E08EBD //A18
data8 0x5DA462EA902F0C90 //A19
// Polynomial coefficients for right root on [-13, -12]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
data8 0x3DC3191752ACFC9D, 0x3A26CB6629532DBF //A0
data8 0x41BC8CFC051191BD, 0x3E68A84DA4E62AF2 //A1
data8 0x43797926294A0148, 0x400F345FF3723CFF //A2
@@ -1576,7 +1576,7 @@ data8 0x5E518FC34C6F54EF //A17
data8 0x601FB3F17BCCD9A0 //A18
data8 0x61E61128D512FE97 //A1
// Polynomial coefficients for right root on [-14, -13]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
data8 0xBE170D646421B3F5, 0xBAAD95F79FCB5097 //A0
data8 0x41F7328CBFCD9AC7, 0x3E743B8B1E8AEDB1 //A1
data8 0x43F0D0FA2DBDA237, 0x40A0422D6A227B55 //A2
@@ -1598,7 +1598,7 @@ data8 0x6240787C4B1C9D6C //A17
data8 0x6448289235E80977 //A18
data8 0x664B5352C6C3449E //A19
// Polynomial coefficients for right root on [-15, -14]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
data8 0x3E562C2E34A9207D, 0x3ADC00DA3DFF7A83 //A0
data8 0x42344C3B2F0D90AB, 0x3EB8A2E979F24536 //A1
data8 0x4469BFFF28B50D07, 0x41181E3D05C1C294 //A2
@@ -1620,7 +1620,7 @@ data8 0x664B3998D60D0F9B //A17
data8 0x689178710782FA8B //A18
data8 0x6AD14A66C1C7BEC3 //A19
// Polynomial coefficients for right root on [-16, -15]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
data8 0xBE6D7E7192615BAE, 0xBB0137677D7CC719 //A0
data8 0x4273077763F6628C, 0x3F09250FB8FC8EC9 //A1
data8 0x44E6A1BF095B1AB3, 0x4178D5A74F6CB3B3 //A2
@@ -1642,7 +1642,7 @@ data8 0x6A722D2B19B7E2F9 //A17
data8 0x6CF5DEB3073B0743 //A18
data8 0x6F744AC11550B93A //A19
// Polynomial coefficients for right root on [-17, -16]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
data8 0xBEDCC6291188207E, 0xBB872E3FDD48F5B7 //A0
data8 0x42B3076EE7525EF9, 0x3F6687A5038CA81C //A1
data8 0x4566A1AAD96EBCB5, 0x421F0FEDFBF548D2 //A2
@@ -1664,7 +1664,7 @@ data8 0x6EB22C9807C21819 //A17
data8 0x7175DE20D04617C4 //A18
data8 0x74344AB87C6D655F //A19
// Polynomial coefficients for right root on [-18, -17]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
data8 0xBF28AEEE7B61D77C, 0xBBDBBB5FC57ABF79 //A0
data8 0x42F436F56B3B8A0C, 0x3FA43EE3C5C576E9 //A1
data8 0x45E98A22535D115D, 0x42984678BE78CC48 //A2
@@ -1686,7 +1686,7 @@ data8 0x730962B4500F4A61 //A17
data8 0x76103C6ED099192A //A18
data8 0x79100C7132CFD6E3 //A19
// Polynomial coefficients for right root on [-19, -18]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
data8 0x3F3C19A53328A0C3, 0x3BE04ADC3FBE1458 //A0
data8 0x4336C16C16C16C19, 0x3FE58CE3AC4A7C28 //A1
data8 0x46702E85C0898B70, 0x432C922E412CEC6E //A2
@@ -1708,7 +1708,7 @@ data8 0x7777C401A8715CF9 //A17
data8 0x7AC1110C6D350440 //A18
data8 0x7E02D0971CF84865 //A19
// Polynomial coefficients for right root on [-20, -19]
-// Lgammal is aproximated by polynomial within [-.154151 ; .154151 ] range
+// Lgammal is approximated by polynomial within [-.154151 ; .154151 ] range
data8 0xBFAB767F9BE21803, 0xBC5ACEF5BB1BD8B5 //A0
data8 0x4379999999999999, 0x4029241C7F5914C8 //A1
data8 0x46F47AE147AE147A, 0x43AC2979B64B9D7E //A2
@@ -1733,7 +1733,7 @@ LOCAL_OBJECT_END(lgammal_right_roots_polynomial_data)
LOCAL_OBJECT_START(lgammal_left_roots_polynomial_data)
// Polynomial coefficients for left root on [-3, -2]
-// Lgammal is aproximated by polynomial within [.084641 ; -.059553 ] range
+// Lgammal is approximated by polynomial within [.084641 ; -.059553 ] range
data8 0xBC0844590979B82E, 0xB8BC7CE8CE2ECC3B //A0
data8 0xBFFEA12DA904B18C, 0xBC91A6B2BAD5EF6E //A1
data8 0x4023267F3C265A51, 0x3CD7055481D03AED //A2
@@ -1756,7 +1756,7 @@ data8 0x41EA727E3033E2D9 //A18
data8 0xC20812C297729142 //A19
//
// Polynomial coefficients for left root on [-4, -3]
-// Lgammal is aproximated by polynomial within [.147147 ; -.145158 ] range
+// Lgammal is approximated by polynomial within [.147147 ; -.145158 ] range
data8 0xBC3130AE5C4F54DB, 0xB8ED23294C13398A //A0
data8 0xC034B99D966C5646, 0xBCE2E5FE3BC3DBB9 //A1
data8 0x406F76DEAE0436BD, 0x3D14974DDEC057BD //A2
@@ -1778,7 +1778,7 @@ data8 0xC471C4421E908C3A //A17
data8 0x44B92CD4D59D6D17 //A18
data8 0xC4FB3A078B5247FA //A19
// Polynomial coefficients for left root on [-5, -4]
-// Lgammal is aproximated by polynomial within [.155671 ; -.155300 ] range
+// Lgammal is approximated by polynomial within [.155671 ; -.155300 ] range
data8 0xBC57BF3C6E8A94C1, 0xB902FB666934AC9E //A0
data8 0xC05D224A3EF9E41F, 0xBCF6F5713913E440 //A1
data8 0x40BB533C678A3955, 0x3D688E53E3C72538 //A2
@@ -1800,7 +1800,7 @@ data8 0xC6FFDDC6DD938E2E //A17
data8 0x476DD7C07184B9F9 //A18
data8 0xC7D554A30085C052 //A19
// Polynomial coefficients for left root on [-6, -5]
-// Lgammal is aproximated by polynomial within [.157425 ; -.157360 ] range
+// Lgammal is approximated by polynomial within [.157425 ; -.157360 ] range
data8 0x3C9E20A87C8B79F1, 0x39488BE34B2427DB //A0
data8 0xC08661F6A43A5E12, 0xBD3D912526D759CC //A1
data8 0x410F79DCB794F270, 0x3DB9BEE7CD3C1BF5 //A2
@@ -1822,7 +1822,7 @@ data8 0xC9C2C6A864521F3A //A17
data8 0x4A5AB127C62E8DA1 //A18
data8 0xCAECF60EF3183C57 //A19
// Polynomial coefficients for left root on [-7, -6]
-// Lgammal is aproximated by polynomial within [.157749 ; -.157739 ] range
+// Lgammal is approximated by polynomial within [.157749 ; -.157739 ] range
data8 0x3CC9B9E8B8D551D6, 0x3961813C8E1E10DB //A0
data8 0xC0B3ABF7A5CEA91F, 0xBD55638D4BCB4CC4 //A1
data8 0x4168349A25504236, 0x3E0287ECE50CCF76 //A2
@@ -1844,7 +1844,7 @@ data8 0xCCC01CB3021212FF //A17
data8 0x4D841613AC3431D1 //A18
data8 0xCE431C9E9EE43AD9 //A19
// Polynomial coefficients for left root on [-8, -7]
-// Lgammal is aproximated by polynomial within [.157799 ; -.157798 ] range
+// Lgammal is approximated by polynomial within [.157799 ; -.157798 ] range
data8 0xBCF9C7A33AD9478C, 0xB995B0470F11E5ED //A0
data8 0xC0E3AF76FE4C2F8B, 0xBD8DBCD503250511 //A1
data8 0x41C838E76CAAF0D5, 0x3E5D79F5E2E069C3 //A2
@@ -1866,7 +1866,7 @@ data8 0xCFF0351B51508523 //A17
data8 0x50E4364CCBF53100 //A18
data8 0xD1D33CFD0BF96FA6 //A19
// Polynomial coefficients for left root on [-9, -8]
-// Lgammal is aproximated by polynomial within [.157806 ; -.157806 ] range
+// Lgammal is approximated by polynomial within [.157806 ; -.157806 ] range
data8 0x3D333E4438B1B9D4, 0x39E7B956B83964C1 //A0
data8 0xC11625EDFC63DCD8, 0xBDCF39625709EFAC //A1
data8 0x422EA8C150480F16, 0x3EC16ED908AB7EDD //A2
@@ -1888,7 +1888,7 @@ data8 0xD34E085C088404A5 //A17
data8 0x547511892FF8960E //A18
data8 0xD5968FA3B1ED67A9 //A19
// Polynomial coefficients for left root on [-10, -9]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
data8 0xBD355818A2B42BA2, 0xB9B7320B6A0D61EA //A0
data8 0xC14BAF7DA5F3770E, 0xBDE64AF9A868F719 //A1
data8 0x4297F3E8791F9CD3, 0x3F2A553E59B4835E //A2
@@ -1910,7 +1910,7 @@ data8 0xD6D4D760074F6E6B //A17
data8 0x5832469D58ED3FA9 //A18
data8 0xD988769F3DC76642 //A19
// Polynomial coefficients for left root on [-11, -10]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
data8 0xBDA050601F39778A, 0xBA0D4D1CE53E8241 //A0
data8 0xC18308A7D8EA4039, 0xBE370C379D3EAD41 //A1
data8 0x4306A49380644E6C, 0x3FBBB143C0E7B5C8 //A2
@@ -1932,7 +1932,7 @@ data8 0xDA8246294D210BEC //A17
data8 0x5C1608AAC32C3A8E //A18
data8 0xDDA446E570A397D5 //A19
// Polynomial coefficients for left root on [-12, -11]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
data8 0x3DEACBB3081C502E, 0x3A8AA6F01DEDF745 //A0
data8 0xC1BC8CFBFB0A9912, 0xBE6556B6504A2AE6 //A1
data8 0x43797926206941D7, 0x40289A9644C2A216 //A2
@@ -1954,7 +1954,7 @@ data8 0xDE51952FDFD1EC49 //A17
data8 0x601FCCEC1BBD25F1 //A18
data8 0xE1E5F2D76B610920 //A19
// Polynomial coefficients for left root on [-13, -12]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
data8 0xBE01612F373268ED, 0xBA97B7A18CDF103B //A0
data8 0xC1F7328CBF7A4FAC, 0xBE89A25A6952F481 //A1
data8 0x43F0D0FA2DBDA237, 0x40A0422EC1CE6084 //A2
@@ -1976,7 +1976,7 @@ data8 0xE2407D92CD613E82 //A17
data8 0x64483B9B62367EB7 //A18
data8 0xE64B2DC830E8A799 //A1
// Polynomial coefficients for left root on [-14, -13]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
data8 0x3E563D0B930B371F, 0x3AE779957E14F012 //A0
data8 0xC2344C3B2F083767, 0xBEC0B7769AA3DD66 //A1
data8 0x4469BFFF28B50D07, 0x41181E3F13ED2401 //A2
@@ -1998,7 +1998,7 @@ data8 0xE64B4201CDF9F138 //A17
data8 0x689186351E58AA88 //A18
data8 0xEAD132A585DFC60A //A19
// Polynomial coefficients for left root on [-15, -14]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
data8 0xBE6D7DDE12700AC1, 0xBB1E025BF1667FB5 //A0
data8 0xC273077763F60AD5, 0xBF2A1698184C7A9A //A1
data8 0x44E6A1BF095B1AB3, 0x4178D5AE8A4A2874 //A2
@@ -2020,7 +2020,7 @@ data8 0xEA7232C8804F32C3 //A17
data8 0x6CF5EFEE929A0928 //A18
data8 0xEF742EE03EC3E8FF //A19
// Polynomial coefficients for left root on [-16, -15]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
data8 0xBEDCC628FEAC7A1B, 0xBB80582C8BEBB198 //A0
data8 0xC2B3076EE752595E, 0xBF5388F55AFAE53E //A1
data8 0x4566A1AAD96EBCB5, 0x421F0FEFE2444293 //A2
@@ -2042,7 +2042,7 @@ data8 0xEEB23234FE191D55 //A17
data8 0x7175EF5D1080B105 //A18
data8 0xF4342ED7B1B7BE31 //A19
// Polynomial coefficients for left root on [-17, -16]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
data8 0xBF28AEEE7B58C790, 0xBBC4448DE371FA0A //A0
data8 0xC2F436F56B3B89B1, 0xBF636755245AC63A //A1
data8 0x45E98A22535D115D, 0x4298467DA93DB784 //A2
@@ -2064,7 +2064,7 @@ data8 0xF3096A81A69BD8AE //A17
data8 0x76104951BAD67D5C //A18
data8 0xF90FECC99786FD5B //A19
// Polynomial coefficients for left root on [-18, -17]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
data8 0x3F3C19A53328E26A, 0x3BE238D7BA036B3B //A0
data8 0xC336C16C16C16C13, 0xBFEACE245DEC56F3 //A1
data8 0x46702E85C0898B70, 0x432C922B64FD1DA4 //A2
@@ -2086,7 +2086,7 @@ data8 0xF777CB6E2B550D73 //A17
data8 0x7AC11E468A134A51 //A18
data8 0xFE02B6BDD0FC40AA //A19
// Polynomial coefficients for left root on [-19, -18]
-// Lgammal is aproximated by polynomial within [.157807 ; -.157807 ] range
+// Lgammal is approximated by polynomial within [.157807 ; -.157807 ] range
data8 0xBFAB767F9BE217FC, 0xBC4A5541CE0D8D0D //A0
data8 0xC379999999999999, 0xC01A84981B490BE8 //A1
data8 0x46F47AE147AE147A, 0x43AC2987BBC466EB //A2
diff --git a/libc/ports/sysdeps/ia64/fpu/libm_reduce.S b/libc/ports/sysdeps/ia64/fpu/libm_reduce.S
index 8bdf91d6d..8b132497b 100644
--- a/libc/ports/sysdeps/ia64/fpu/libm_reduce.S
+++ b/libc/ports/sysdeps/ia64/fpu/libm_reduce.S
@@ -75,7 +75,7 @@
//
// IEEE Special Conditions:
//
-// No condions should be raised.
+// No conditions should be raised.
//
//*********************************************************************
//
@@ -288,7 +288,7 @@
//
// Set sgn_x := sign(x); x := |x|; x_lo := 2 lsb of x.
//
-// In memory, 2/pi is stored contigously as
+// In memory, 2/pi is stored contiguously as
//
// 0x00000000 0x00000000 0xA2F....
// ^
@@ -786,7 +786,7 @@ __libm_pi_by_2_reduce:
// setf.sig FR_ScaleP3 = GR_x_lo
// fmerge.se FR_X = FR_X,FR_ScaleP3
// Set sgn_x := sign(x); x := |x|; x_lo := 2 lsb of x.
-// 2/pi is stored contigously as
+// 2/pi is stored contiguously as
// 0x00000000 0x00000000.0xA2F....
// M = EXP - BIAS ( M >= 63)
// Given x = 2^m * 1.xxxx...xxx; we calculate L := 62 - m.
diff --git a/libc/ports/sysdeps/ia64/fpu/s_erfc.S b/libc/ports/sysdeps/ia64/fpu/s_erfc.S
index c67c61abe..6729cda2e 100644
--- a/libc/ports/sysdeps/ia64/fpu/s_erfc.S
+++ b/libc/ports/sysdeps/ia64/fpu/s_erfc.S
@@ -65,7 +65,7 @@
//
// Let P14(z) - polynomial approximation of degree 14 for function
// erfc(z+x(i)) * exp( (z+x(i))^2) and 0 <= z <= x(i+1)-x(i).
-// Polynomial coeffitients we have in the table erfc_p_table.
+// Polynomial coefficients we have in the table erfc_p_table.
//
// So we can find result for erfc(x) as above.
// Algorithm description for exp function see below.
diff --git a/libc/ports/sysdeps/ia64/fpu/s_erfcf.S b/libc/ports/sysdeps/ia64/fpu/s_erfcf.S
index ce6be8db6..97c9037cf 100644
--- a/libc/ports/sysdeps/ia64/fpu/s_erfcf.S
+++ b/libc/ports/sysdeps/ia64/fpu/s_erfcf.S
@@ -63,7 +63,7 @@
//
// Let P15(x) - polynomial approximation of degree 15 for function
// erfcf(x) * exp( x^2) and x(i) <= x <= x(i+1), i = 0,1,2,3
-// Polynomial coeffitients we have in the table erfc_p_table.
+// Polynomial coefficients we have in the table erfc_p_table.
//
// So we can find result for erfcf(x) as above.
// Algorithm description for exp function see below.
diff --git a/libc/ports/sysdeps/ia64/fpu/s_erfcl.S b/libc/ports/sysdeps/ia64/fpu/s_erfcl.S
index b9f7004aa..79b94a85a 100644
--- a/libc/ports/sysdeps/ia64/fpu/s_erfcl.S
+++ b/libc/ports/sysdeps/ia64/fpu/s_erfcl.S
@@ -71,7 +71,7 @@
// -0.5*[x(i+1)-x(i)] <= z <= 0.5*[x(i+1)-x(i)].
//
// Let Q(z)= (P(z)- S)/S, S = a0, rounded to 16 bits.
-// Polynomial coeffitients for Q(z) we have in the table erfc_Q_table as
+// Polynomial coefficients for Q(z) we have in the table erfc_Q_table as
// long double values
//
// We use multi precision to calculate input argument -x^2 for expl and
diff --git a/libc/ports/sysdeps/ia64/fpu/s_log1p.S b/libc/ports/sysdeps/ia64/fpu/s_log1p.S
index e1e6dcc80..209732826 100644
--- a/libc/ports/sysdeps/ia64/fpu/s_log1p.S
+++ b/libc/ports/sysdeps/ia64/fpu/s_log1p.S
@@ -103,7 +103,7 @@
// InvX = frcpa(x+1)
// r = InvX*(x+1) - 1
// P(r) = r*((r*A3 - A2) + r^4*((A4 + r*A5) + r^2*(A6 + r*A7)),
-// all coefficients are calcutated in quad and rounded to double
+// all coefficients are calculated in quad and rounded to double
// precision. A7,A6,A5,A4 are stored in memory whereas A3 and A2
// created with setf.
//
diff --git a/libc/ports/sysdeps/ia64/fpu/s_log1pl.S b/libc/ports/sysdeps/ia64/fpu/s_log1pl.S
index f60ce1268..3c8be0282 100644
--- a/libc/ports/sysdeps/ia64/fpu/s_log1pl.S
+++ b/libc/ports/sysdeps/ia64/fpu/s_log1pl.S
@@ -221,7 +221,7 @@
//
// Calculate X_1 := X_0 * Z_1 truncated to lsb = 2^(-14)
// = 1.0 0 0 0 d_5 ... d_14
-// This is accomplised by integer multiplication.
+// This is accomplished by integer multiplication.
// It is proved that X_1 indeed always begin
// with 1.0000 in fixed point.
//
@@ -242,7 +242,7 @@
//
// Calculate X_2 := X_1 * Z_2 truncated to lsb = 2^(-14)
// = 1.0 0 0 0 0 0 0 0 d_9 d_10 ... d_14
-// This is accomplised by integer multiplication.
+// This is accomplished by integer multiplication.
// It is proved that X_2 indeed always begin
// with 1.00000000 in fixed point.
//
diff --git a/libc/ports/sysdeps/ia64/fpu/w_tgammal.S b/libc/ports/sysdeps/ia64/fpu/w_tgammal.S
index ca60eed87..b10c5dc27 100644
--- a/libc/ports/sysdeps/ia64/fpu/w_tgammal.S
+++ b/libc/ports/sysdeps/ia64/fpu/w_tgammal.S
@@ -1629,7 +1629,7 @@ GLOBAL_LIBM_ENTRY(tgammal)
{ .mfi
nop.m 0
- fma.s1 FR_l_B14 = FR_l_B16, FR_l_Z2, FR_l_B14// bernulli tail
+ fma.s1 FR_l_B14 = FR_l_B16, FR_l_Z2, FR_l_B14// Bernoulli tail
nop.i 0
}
{ .mfi
@@ -1640,18 +1640,18 @@ GLOBAL_LIBM_ENTRY(tgammal)
{ .mfi
nop.m 0
- fma.s1 FR_l_B2 = FR_l_B4, FR_l_Z2, FR_l_B2 // bernulli tail
+ fma.s1 FR_l_B2 = FR_l_B4, FR_l_Z2, FR_l_B2 // Bernoulli tail
nop.i 0
}
{ .mfi
nop.m 0
- fma.s1 FR_l_B6 = FR_l_B8, FR_l_Z2, FR_l_B6 // bernulli tail
+ fma.s1 FR_l_B6 = FR_l_B8, FR_l_Z2, FR_l_B6 // Bernoulli tail
nop.i 0
};;
{ .mfi
nop.m 0
- fma.s1 FR_l_B10 = FR_l_B12, FR_l_Z2, FR_l_B10// bernulli tail
+ fma.s1 FR_l_B10 = FR_l_B12, FR_l_Z2, FR_l_B10// Bernoulli tail
nop.i 0
}
{ .mfi
@@ -1795,7 +1795,7 @@ GLOBAL_LIBM_ENTRY(tgammal)
{ .mfi
nop.m 0
- fma.s1 FR_l_SS = FR_l_B10, FR_l_Z8, FR_l_B2 // bernulli tail
+ fma.s1 FR_l_SS = FR_l_B10, FR_l_Z8, FR_l_B2 // Bernoulli tail
nop.i 0
};;
diff --git a/libc/ports/sysdeps/m68k/m680x0/fpu/fraiseexcpt.c b/libc/ports/sysdeps/m68k/m680x0/fpu/fraiseexcpt.c
index 54ec89fb9..83c4e4d25 100644
--- a/libc/ports/sysdeps/m68k/m680x0/fpu/fraiseexcpt.c
+++ b/libc/ports/sysdeps/m68k/m680x0/fpu/fraiseexcpt.c
@@ -33,7 +33,7 @@ __feraiseexcept (int excepts)
/* First: invalid exception. */
if (excepts & FE_INVALID)
{
- /* One example of a invalid operation is 0 * Infinity. */
+ /* One example of an invalid operation is 0 * Infinity. */
double d = HUGE_VAL;
__asm__ __volatile__ ("fmul%.s %#0r0,%0; fnop" : "=f" (d) : "0" (d));
}
diff --git a/libc/ports/sysdeps/mips/fpu/fedisblxcpt.c b/libc/ports/sysdeps/mips/fpu/fedisblxcpt.c
index 1db197f21..7498c0c27 100644
--- a/libc/ports/sysdeps/mips/fpu/fedisblxcpt.c
+++ b/libc/ports/sysdeps/mips/fpu/fedisblxcpt.c
@@ -34,7 +34,6 @@ fedisableexcept (int excepts)
excepts &= FE_ALL_EXCEPT;
new_exc &= ~(excepts << ENABLE_SHIFT);
- new_exc &= ~_FPU_RESERVED;
_FPU_SETCW (new_exc);
return old_exc;
diff --git a/libc/ports/sysdeps/mips/fpu/feenablxcpt.c b/libc/ports/sysdeps/mips/fpu/feenablxcpt.c
index 2a3a07618..bca8e3d23 100644
--- a/libc/ports/sysdeps/mips/fpu/feenablxcpt.c
+++ b/libc/ports/sysdeps/mips/fpu/feenablxcpt.c
@@ -34,7 +34,6 @@ feenableexcept (int excepts)
excepts &= FE_ALL_EXCEPT;
new_exc |= excepts << ENABLE_SHIFT;
- new_exc &= ~_FPU_RESERVED;
_FPU_SETCW (new_exc);
return old_exc;
diff --git a/libc/ports/sysdeps/mips/fpu_control.h b/libc/ports/sysdeps/mips/fpu_control.h
index 6aecb3bc8..770cbb31d 100644
--- a/libc/ports/sysdeps/mips/fpu_control.h
+++ b/libc/ports/sysdeps/mips/fpu_control.h
@@ -28,7 +28,8 @@
* causing unimplemented operation exception. This bit is only
* available for MIPS III and newer.
* 23 -> Condition bit
- * 22-18 -> reserved (read as 0, write with 0)
+ * 22-21 -> reserved for architecture implementers
+ * 20-18 -> reserved (read as 0, write with 0)
* 17 -> cause bit for unimplemented operation
* 16 -> cause bit for invalid exception
* 15 -> cause bit for division by zero exception
@@ -84,7 +85,7 @@ extern fpu_control_t __fpu_control;
#define _FPU_RC_UP 0x2
#define _FPU_RC_DOWN 0x3
-#define _FPU_RESERVED 0xfebc0000 /* Reserved bits in cw */
+#define _FPU_RESERVED 0xfe9c0000 /* Reserved bits in cw */
/* The fdlibm code requires strict IEEE double precision arithmetic,
diff --git a/libc/ports/sysdeps/mips/memcpy.S b/libc/ports/sysdeps/mips/memcpy.S
index aeea491e7..c7168476e 100644
--- a/libc/ports/sysdeps/mips/memcpy.S
+++ b/libc/ports/sysdeps/mips/memcpy.S
@@ -155,14 +155,14 @@
pref PREFETCH_STORE_HINT, (chunk)*32(reg)
#endif
/* MAX_PREFETCH_SIZE is the maximum size of a prefetch, it must not be less
- * then PREFETCH_CHUNK, the assumed size of each prefetch. If the real size
- * of a prefetch is greater then MAX_PREFETCH_SIZE and the PREPAREFORSTORE
- * hint is used, the code will not work corrrectly. If PREPAREFORSTORE is not
+ * than PREFETCH_CHUNK, the assumed size of each prefetch. If the real size
+ * of a prefetch is greater than MAX_PREFETCH_SIZE and the PREPAREFORSTORE
+ * hint is used, the code will not work correctly. If PREPAREFORSTORE is not
* used then MAX_PREFETCH_SIZE does not matter. */
#define MAX_PREFETCH_SIZE 128
-/* PREFETCH_LIMIT is set based on the fact that we neve use an offset greater
- * then 5 on a STORE prefetch and that a single prefetch can never be larger
- * then MAX_PREFETCH_SIZE. We add the extra 32 when USE_DOUBLE is set because
+/* PREFETCH_LIMIT is set based on the fact that we never use an offset greater
+ * than 5 on a STORE prefetch and that a single prefetch can never be larger
+ * than MAX_PREFETCH_SIZE. We add the extra 32 when USE_DOUBLE is set because
* we actually do two prefetches in that case, one 32 bytes after the other. */
#ifdef USE_DOUBLE
# define PREFETCH_LIMIT (5 * PREFETCH_CHUNK) + 32 + MAX_PREFETCH_SIZE
@@ -275,7 +275,7 @@ LEAF(MEMCPY_NAME)
L(memcpy):
#endif
/*
- * If the size is less then 2*NSIZE (8 or 16), go to L(lastb). Regardless of
+ * If the size is less than 2*NSIZE (8 or 16), go to L(lastb). Regardless of
* size, copy dst pointer to v0 for the return value.
*/
slti t2,a2,(2 * NSIZE)
@@ -443,7 +443,7 @@ L(chkw):
PTR_ADDIU a0,a0,UNIT(8)
/*
- * Here we have less then 32(64) bytes to copy. Set up for a loop to
+ * Here we have less than 32(64) bytes to copy. Set up for a loop to
* copy one word (or double word) at a time. Set a2 to count how many
* bytes we have to copy after all the word (or double word) chunks are
* copied and a3 to the dst pointer after all the (d)word chunks have
@@ -635,7 +635,7 @@ L(ua_chkw):
C_ST REG7,UNIT(7)(a0)
PTR_ADDIU a0,a0,UNIT(8)
/*
- * Here we have less then 32(64) bytes to copy. Set up for a loop to
+ * Here we have less than 32(64) bytes to copy. Set up for a loop to
* copy one word (or double word) at a time.
*/
L(ua_chk1w):
diff --git a/libc/ports/sysdeps/mips/sys/asm.h b/libc/ports/sysdeps/mips/sys/asm.h
index 293cf364e..c0ff80ae5 100644
--- a/libc/ports/sysdeps/mips/sys/asm.h
+++ b/libc/ports/sysdeps/mips/sys/asm.h
@@ -472,7 +472,7 @@ symbol = value
# define MTC0 dmtc0
#endif
-/* The MIPS archtectures do not have a uniform memory model. Particular
+/* The MIPS architectures do not have a uniform memory model. Particular
platforms may provide additional guarantees - for instance, the R4000
LL and SC instructions implicitly perform a SYNC, and the 4K promises
strong ordering.
diff --git a/libc/ports/sysdeps/powerpc/powerpc32/405/memcpy.S b/libc/ports/sysdeps/powerpc/powerpc32/405/memcpy.S
index 761e9675a..b01d53920 100644
--- a/libc/ports/sysdeps/powerpc/powerpc32/405/memcpy.S
+++ b/libc/ports/sysdeps/powerpc/powerpc32/405/memcpy.S
@@ -98,7 +98,7 @@ L(string_count_loop): /* Copy odd 0-31 bytes */
lswx r6,0,r4
stswx r6,0,r3
-L(pre_string_copy): /* Check how many 32 byte chunck to copy */
+L(pre_string_copy): /* Check how many 32 byte chunks to copy */
srwi. r7,r5,4
beq L(end_memcpy)
mtctr r7
diff --git a/libc/ports/sysdeps/tile/jmpbuf-offsets.h b/libc/ports/sysdeps/tile/jmpbuf-offsets.h
index 62b841300..c6f5be318 100644
--- a/libc/ports/sysdeps/tile/jmpbuf-offsets.h
+++ b/libc/ports/sysdeps/tile/jmpbuf-offsets.h
@@ -45,7 +45,7 @@
#define JB_PC 25 /* normally LR, r55 */
#define JB_ICS 26 /* interrupt critical section bit */
-/* We save space for some extra state to accomodate future changes. */
+/* We save space for some extra state to accommodate future changes. */
#define JB_LEN 32 /* number of words */
#define JB_SIZE (JB_LEN * REGSIZE)
diff --git a/libc/ports/sysdeps/unix/sysv/linux/alpha/bits/netdb.h b/libc/ports/sysdeps/unix/sysv/linux/alpha/bits/netdb.h
index b9437ff89..65f76fd10 100644
--- a/libc/ports/sysdeps/unix/sysv/linux/alpha/bits/netdb.h
+++ b/libc/ports/sysdeps/unix/sysv/linux/alpha/bits/netdb.h
@@ -29,6 +29,6 @@ struct netent
char **n_aliases; /* Alias list. */
int n_addrtype; /* Net address type. */
/* XXX We should probably use uint32_t for the field and ensure
- compatiblity by adding appropriate padding. */
+ compatibility by adding appropriate padding. */
unsigned long int n_net; /* Network number. */
};
diff --git a/libc/ports/sysdeps/unix/sysv/linux/am33/bits/fcntl.h b/libc/ports/sysdeps/unix/sysv/linux/am33/bits/fcntl.h
index e5af26052..447483898 100644
--- a/libc/ports/sysdeps/unix/sysv/linux/am33/bits/fcntl.h
+++ b/libc/ports/sysdeps/unix/sysv/linux/am33/bits/fcntl.h
@@ -130,7 +130,7 @@
# define DN_CREATE 0x00000004 /* File created. */
# define DN_DELETE 0x00000008 /* File removed. */
# define DN_RENAME 0x00000010 /* File renamed. */
-# define DN_ATTRIB 0x00000020 /* File changed attibutes. */
+# define DN_ATTRIB 0x00000020 /* File changed attributes. */
# define DN_MULTISHOT 0x80000000 /* Don't remove notifier. */
#endif
diff --git a/libc/ports/sysdeps/unix/sysv/linux/arm/clone.S b/libc/ports/sysdeps/unix/sysv/linux/arm/clone.S
index ce9c2a5ba..6e74fa702 100644
--- a/libc/ports/sysdeps/unix/sysv/linux/arm/clone.S
+++ b/libc/ports/sysdeps/unix/sysv/linux/arm/clone.S
@@ -93,8 +93,8 @@ PSEUDO_END (__clone)
mov lr, pc
bx ip
#else
- mov lr, pc
- ldr pc, [sp], #8
+ ldr lr, [sp], #8
+ blx lr
#endif
@ and we are done, passing the return value through r0
diff --git a/libc/ports/sysdeps/unix/sysv/linux/arm/ldsodefs.h b/libc/ports/sysdeps/unix/sysv/linux/arm/ldsodefs.h
index 50a8bb764..3821bf33b 100644
--- a/libc/ports/sysdeps/unix/sysv/linux/arm/ldsodefs.h
+++ b/libc/ports/sysdeps/unix/sysv/linux/arm/ldsodefs.h
@@ -44,8 +44,8 @@
|| memcmp (hdr, expected3, size) == 0) \
&& VALID_FLOAT_ABI (ehdr->e_flags))
#define VALID_ELF_OSABI(osabi) (osabi == ELFOSABI_SYSV \
- || osabi == EXTRA_OSABI \
- || osabi == ELFOSABI_LINUX)
+ || osabi == ELFOSABI_GNU \
+ || osabi == EXTRA_OSABI)
#define MORE_ELF_HEADER_DATA \
static const unsigned char expected2[EI_PAD] = \
{ \
@@ -56,7 +56,7 @@
[EI_CLASS] = ELFW(CLASS), \
[EI_DATA] = byteorder, \
[EI_VERSION] = EV_CURRENT, \
- [EI_OSABI] = ELFOSABI_LINUX \
+ [EI_OSABI] = ELFOSABI_GNU \
}; \
static const unsigned char expected3[EI_PAD] = \
{ \
diff --git a/libc/ports/sysdeps/unix/sysv/linux/hppa/Versions b/libc/ports/sysdeps/unix/sysv/linux/hppa/Versions
index a62ef195a..a392feebc 100644
--- a/libc/ports/sysdeps/unix/sysv/linux/hppa/Versions
+++ b/libc/ports/sysdeps/unix/sysv/linux/hppa/Versions
@@ -32,6 +32,9 @@ libc {
_sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
prlimit64;
}
+ GLIBC_2.19 {
+ fanotify_mark;
+ }
}
librt {
GLIBC_2.3 {
diff --git a/libc/ports/sysdeps/unix/sysv/linux/hppa/clone.S b/libc/ports/sysdeps/unix/sysv/linux/hppa/clone.S
index 0d7a7eb63..fd55961be 100644
--- a/libc/ports/sysdeps/unix/sysv/linux/hppa/clone.S
+++ b/libc/ports/sysdeps/unix/sysv/linux/hppa/clone.S
@@ -155,7 +155,7 @@ ENTRY(__clone)
ldw -60(%sp), %arg0
ldw -64(%sp), %r22
- /* $$dyncall fixes childs PIC register */
+ /* $$dyncall fixes child's PIC register */
/* Call the user's function */
#ifdef PIC
diff --git a/libc/ports/sysdeps/unix/sysv/linux/hppa/nptl/pthread.h b/libc/ports/sysdeps/unix/sysv/linux/hppa/nptl/pthread.h
index 70e060415..39e1ab986 100644
--- a/libc/ports/sysdeps/unix/sysv/linux/hppa/nptl/pthread.h
+++ b/libc/ports/sysdeps/unix/sysv/linux/hppa/nptl/pthread.h
@@ -1014,13 +1014,13 @@ extern int pthread_condattr_setpshared (pthread_condattr_t *__attr,
int __pshared) __THROW __nonnull ((1));
#ifdef __USE_XOPEN2K
-/* Get the clock selected for the conditon variable attribute ATTR. */
+/* Get the clock selected for the condition variable attribute ATTR. */
extern int pthread_condattr_getclock (const pthread_condattr_t *
__restrict __attr,
__clockid_t *__restrict __clock_id)
__THROW __nonnull ((1, 2));
-/* Set the clock selected for the conditon variable attribute ATTR. */
+/* Set the clock selected for the condition variable attribute ATTR. */
extern int pthread_condattr_setclock (pthread_condattr_t *__attr,
__clockid_t __clock_id)
__THROW __nonnull ((1));
diff --git a/libc/ports/sysdeps/unix/sysv/linux/hppa/syscalls.list b/libc/ports/sysdeps/unix/sysv/linux/hppa/syscalls.list
index ae36d46a4..ae462edfe 100644
--- a/libc/ports/sysdeps/unix/sysv/linux/hppa/syscalls.list
+++ b/libc/ports/sysdeps/unix/sysv/linux/hppa/syscalls.list
@@ -36,3 +36,4 @@ socketpair - socketpair i:iiif __socketpair socketpair
setrlimit - setrlimit i:ip __setrlimit setrlimit
getrlimit - getrlimit i:ip __getrlimit getrlimit
prlimit64 EXTRA prlimit64 i:iipp __prlimit64 prlimit64@@GLIBC_2.17
+fanotify_mark EXTRA fanotify_mark i:iiiiis __fanotify_mark fanotify_mark@@GLIBC_2.19
diff --git a/libc/ports/sysdeps/unix/sysv/linux/hppa/sysdep.h b/libc/ports/sysdeps/unix/sysv/linux/hppa/sysdep.h
index c8c20e715..0d27b4075 100644
--- a/libc/ports/sysdeps/unix/sysv/linux/hppa/sysdep.h
+++ b/libc/ports/sysdeps/unix/sysv/linux/hppa/sysdep.h
@@ -219,7 +219,7 @@
/* FIXME: This comment is not true.
- * All the syscall assembly macros rely on finding the approriate
+ * All the syscall assembly macros rely on finding the appropriate
SYSCALL_ERROR_LABEL or rather HANDLER. */
/* int * __errno_location(void) so you have to store your value
diff --git a/libc/ports/sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c b/libc/ports/sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c
index efe95b186..9d263f285 100644
--- a/libc/ports/sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c
+++ b/libc/ports/sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c
@@ -19,7 +19,7 @@
/* The public __longjmp() implementation is limited to jumping within
the same stack. That is, in general it is not possible to use this
__longjmp() implementation to cross from one stack to another.
- In constrast, the __sigstack_longjmp() implemented here allows
+ In contrast, the __sigstack_longjmp() implemented here allows
crossing from the alternate signal stack to the normal stack
as a special case. */
diff --git a/libc/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h b/libc/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h
index 31a8c3c8c..420378027 100644
--- a/libc/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h
+++ b/libc/ports/sysdeps/unix/sysv/linux/m68k/kernel-features.h
@@ -47,9 +47,3 @@
# undef __ASSUME_PSELECT
# undef __ASSUME_PPOLL
#endif
-
-#ifdef __mcoldfire__
-/* ColdFire kernels have PAGE_SHIFT set to 13 and expect
- mmap2 offset to be provided in 8K pages. */
-# define MMAP2_PAGE_SHIFT 13
-#endif
diff --git a/libc/ports/sysdeps/unix/sysv/linux/m68k/mmap64.c b/libc/ports/sysdeps/unix/sysv/linux/m68k/mmap64.c
new file mode 100644
index 000000000..8bf898701
--- /dev/null
+++ b/libc/ports/sysdeps/unix/sysv/linux/m68k/mmap64.c
@@ -0,0 +1,5 @@
+/* ColdFire and Sun 3 kernels have PAGE_SHIFT set to 13 and expect
+ mmap2 offset to be provided in 8K pages. Determine the shift
+ dynamically with getpagesize. */
+#define MMAP2_PAGE_SHIFT -1
+#include <sysdeps/unix/sysv/linux/mmap64.c>
diff --git a/libc/ports/sysdeps/unix/sysv/linux/mips/ldsodefs.h b/libc/ports/sysdeps/unix/sysv/linux/mips/ldsodefs.h
index eb45f7229..76c38c8d2 100644
--- a/libc/ports/sysdeps/unix/sysv/linux/mips/ldsodefs.h
+++ b/libc/ports/sysdeps/unix/sysv/linux/mips/ldsodefs.h
@@ -30,11 +30,11 @@ extern void _dl_static_init (struct link_map *map);
#define DL_STATIC_INIT(map) _dl_static_init (map)
/* Allow ABIVERSION == 1, meaning PLTs and copy relocations are
- required, with ELFOSABI_SYSV. */
+ required, with ELFOSABI_SYSV, and ELFOSABI_GNU. */
#undef VALID_ELF_ABIVERSION
#define VALID_ELF_ABIVERSION(osabi,ver) \
(ver == 0 \
|| (osabi == ELFOSABI_SYSV && ver < 2) \
- || (osabi == ELFOSABI_LINUX && ver < LIBC_ABI_MAX))
+ || (osabi == ELFOSABI_GNU && ver < LIBC_ABI_MAX))
#endif /* ldsodefs.h */