aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/i386/add_n.S48
-rw-r--r--sysdeps/i386/addmul_1.S34
-rw-r--r--sysdeps/i386/asm-syntax.h15
-rw-r--r--sysdeps/i386/i486/strcat.S104
-rw-r--r--sysdeps/i386/i486/strlen.S86
-rw-r--r--sysdeps/i386/i586/add_n.S54
-rw-r--r--sysdeps/i386/i586/addmul_1.S34
-rw-r--r--sysdeps/i386/i586/lshift.S54
-rw-r--r--sysdeps/i386/i586/memset.S47
-rw-r--r--sysdeps/i386/i586/mul_1.S34
-rw-r--r--sysdeps/i386/i586/rshift.S82
-rw-r--r--sysdeps/i386/i586/strchr.S89
-rw-r--r--sysdeps/i386/i586/strlen.S45
-rw-r--r--sysdeps/i386/i586/sub_n.S54
-rw-r--r--sysdeps/i386/i586/submul_1.S34
-rw-r--r--sysdeps/i386/lshift.S44
-rw-r--r--sysdeps/i386/memchr.S96
-rw-r--r--sysdeps/i386/memcmp.S35
-rw-r--r--sysdeps/i386/memset.c34
-rw-r--r--sysdeps/i386/mul_1.S34
-rw-r--r--sysdeps/i386/rshift.S44
-rw-r--r--sysdeps/i386/stpcpy.S21
-rw-r--r--sysdeps/i386/stpncpy.S54
-rw-r--r--sysdeps/i386/strchr.S82
-rw-r--r--sysdeps/i386/strcspn.S30
-rw-r--r--sysdeps/i386/strlen.c29
-rw-r--r--sysdeps/i386/strpbrk.S72
-rw-r--r--sysdeps/i386/strrchr.S124
-rw-r--r--sysdeps/i386/strspn.S30
-rw-r--r--sysdeps/i386/strtok.S102
-rw-r--r--sysdeps/i386/sub_n.S44
-rw-r--r--sysdeps/i386/submul_1.S34
-rw-r--r--sysdeps/libm-ieee754/s_cexp.c32
-rw-r--r--sysdeps/powerpc/bsd-setjmp.S7
-rw-r--r--sysdeps/powerpc/dl-machine.h201
-rw-r--r--sysdeps/powerpc/elf/start.c1
-rw-r--r--sysdeps/stub/s_exp2.c12
-rw-r--r--sysdeps/stub/s_exp2f.c12
-rw-r--r--sysdeps/stub/s_exp2l.c12
-rw-r--r--sysdeps/stub/s_log2l.c3
-rw-r--r--sysdeps/unix/sysv/linux/netatalk/at.h (renamed from sysdeps/unix/sysv/linux/netatalk/atalk.h)0
-rw-r--r--sysdeps/unix/sysv/linux/netinet/ip_icmp.h105
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/Dist3
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/clone.S48
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (renamed from sysdeps/powerpc/strlen.S)61
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/statbuf.h79
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/sys/kernel_termios.h43
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/sysdep.h3
48 files changed, 1261 insertions, 1084 deletions
diff --git a/sysdeps/i386/add_n.S b/sysdeps/i386/add_n.S
index 9c1b133226..a68fe2ed39 100644
--- a/sysdeps/i386/add_n.S
+++ b/sysdeps/i386/add_n.S
@@ -1,24 +1,22 @@
-/* i80386 __mpn_add_n -- Add two limb vectors of the same length > 0 and store
-sum in a third limb vector.
+/* Add two limb vectors of the same length > 0 and store sum in a third
+ limb vector.
+ Copyright (C) 1992, 1994, 1995, 1997 Free Software Foundation, Inc.
+ This file is part of the GNU MP Library.
-Copyright (C) 1992, 1994, 1995 Free Software Foundation, Inc.
+ The GNU MP Library is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Library General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or (at your
+ option) any later version.
-This file is part of the GNU MP Library.
+ The GNU MP 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 Library General Public
+ License for more details.
-The GNU MP Library is free software; you can redistribute it and/or modify
-it under the terms of the GNU Library General Public License as published by
-the Free Software Foundation; either version 2 of the License, or (at your
-option) any later version.
-
-The GNU MP 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 Library General Public
-License for more details.
-
-You should have received a copy of the GNU Library General Public License
-along with the GNU MP Library; see the file COPYING.LIB. If not, write to
-the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-MA 02111-1307, USA. */
+ You should have received a copy of the GNU Library General Public License
+ along with the GNU MP Library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ MA 02111-1307, USA. */
/*
INPUT PARAMETERS
@@ -47,7 +45,7 @@ C_SYMBOL_NAME(__mpn_add_n:)
shrl $3,%ecx /* compute count for unrolled loop */
negl %eax
andl $7,%eax /* get index where to start loop */
- jz Loop /* necessary special case for 0 */
+ jz L(oop) /* necessary special case for 0 */
incl %ecx /* adjust loop count */
shll $2,%eax /* adjustment for pointers... */
subl %eax,%edi /* ... since they are offset ... */
@@ -57,18 +55,18 @@ C_SYMBOL_NAME(__mpn_add_n:)
#ifdef PIC
/* Calculate start address in loop for PIC. Due to limitations in some
assemblers, Loop-L0-3 cannot be put into the leal */
- call L0
-L0: leal (%eax,%eax,8),%eax
+ call L(0)
+L(0): leal (%eax,%eax,8),%eax
addl (%esp),%eax
- addl $(Loop-L0-3),%eax
+ addl $(L(oop)-L(0)-3),%eax
addl $4,%esp
#else
/* Calculate start address in loop for non-PIC. */
- leal (Loop - 3)(%eax,%eax,8),%eax
+ leal (L(oop) - 3)(%eax,%eax,8),%eax
#endif
jmp *%eax /* jump into loop */
ALIGN (3)
-Loop: movl (%esi),%eax
+L(oop): movl (%esi),%eax
adcl (%edx),%eax
movl %eax,(%edi)
movl 4(%esi),%eax
@@ -96,7 +94,7 @@ Loop: movl (%esi),%eax
leal 32(%esi),%esi
leal 32(%edx),%edx
decl %ecx
- jnz Loop
+ jnz L(oop)
sbbl %eax,%eax
negl %eax
diff --git a/sysdeps/i386/addmul_1.S b/sysdeps/i386/addmul_1.S
index c11209d925..3e2c5cd616 100644
--- a/sysdeps/i386/addmul_1.S
+++ b/sysdeps/i386/addmul_1.S
@@ -1,24 +1,22 @@
/* i80386 __mpn_addmul_1 -- Multiply a limb vector with a limb and add
the result to a second limb vector.
+ Copyright (C) 1992, 1994, 1997 Free Software Foundation, Inc.
+ This file is part of the GNU MP Library.
-Copyright (C) 1992, 1994 Free Software Foundation, Inc.
+ The GNU MP Library is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Library General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or (at your
+ option) any later version.
-This file is part of the GNU MP Library.
+ The GNU MP 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 Library General Public
+ License for more details.
-The GNU MP Library is free software; you can redistribute it and/or modify
-it under the terms of the GNU Library General Public License as published by
-the Free Software Foundation; either version 2 of the License, or (at your
-option) any later version.
-
-The GNU MP 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 Library General Public
-License for more details.
-
-You should have received a copy of the GNU Library General Public License
-along with the GNU MP Library; see the file COPYING.LIB. If not, write to
-the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-MA 02111-1307, USA. */
+ You should have received a copy of the GNU Library General Public License
+ along with the GNU MP Library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ MA 02111-1307, USA. */
/*
INPUT PARAMETERS
@@ -56,7 +54,7 @@ C_SYMBOL_NAME(__mpn_addmul_1:)
INSN1(neg,l ,R(size))
INSN2(xor,l ,R(ebx),R(ebx))
ALIGN (3)
-Loop:
+L(oop):
INSN2(mov,l ,R(eax),MEM_INDEX(s1_ptr,size,4))
INSN1(mul,l ,R(s2_limb))
INSN2(add,l ,R(eax),R(ebx))
@@ -66,7 +64,7 @@ Loop:
INSN2(mov,l ,R(ebx),R(edx))
INSN1(inc,l ,R(size))
- INSN1(jnz, ,Loop)
+ INSN1(jnz, ,L(oop))
INSN2(mov,l ,R(eax),R(ebx))
INSN1(pop,l ,R(ebp))
diff --git a/sysdeps/i386/asm-syntax.h b/sysdeps/i386/asm-syntax.h
index fe3995f177..68c7b0e584 100644
--- a/sysdeps/i386/asm-syntax.h
+++ b/sysdeps/i386/asm-syntax.h
@@ -63,3 +63,18 @@
#undef ALIGN
#define ALIGN(log) .align 1<<log
#endif
+
+#undef L
+#ifdef __ELF__
+#ifdef __STDC__
+#define L(body) .L##body
+#else
+#define L(body) .L/**/body
+#endif
+#else
+#ifdef __STDC__
+#define L(body) L##body
+#else
+#define L(body) L/**/body
+#endif
+#endif
diff --git a/sysdeps/i386/i486/strcat.S b/sysdeps/i386/i486/strcat.S
index 9bac145ad4..c3893315e7 100644
--- a/sysdeps/i386/i486/strcat.S
+++ b/sysdeps/i386/i486/strcat.S
@@ -1,6 +1,6 @@
/* strcat(dest, src) -- Append SRC on the end of DEST.
For Intel 80x86, x>=4.
- Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>.
Optimised a little by Alan Modra <Alan@SPRI.Levels.UniSA.Edu.Au>
@@ -37,35 +37,35 @@ ENTRY (strcat)
movl 8(%esp), %edx /* load destination pointer */
testb $0xff, (%ecx) /* Is source string empty? */
- jz L8 /* yes => return */
+ jz L(8) /* yes => return */
/* Test the first bytes separately until destination is aligned. */
testl $3, %edx /* destination pointer aligned? */
- jz L1 /* yes => begin scan loop */
+ jz L(1) /* yes => begin scan loop */
testb $0xff, (%edx) /* is end of string? */
- jz L2 /* yes => start appending */
+ jz L(2) /* yes => start appending */
incl %edx /* increment source pointer */
testl $3, %edx /* destination pointer aligned? */
- jz L1 /* yes => begin scan loop */
+ jz L(1) /* yes => begin scan loop */
testb $0xff, (%edx) /* is end of string? */
- jz L2 /* yes => start appending */
+ jz L(2) /* yes => start appending */
incl %edx /* increment source pointer */
testl $3, %edx /* destination pointer aligned? */
- jz L1 /* yes => begin scan loop */
+ jz L(1) /* yes => begin scan loop */
testb $0xff, (%edx) /* is end of string? */
- jz L2 /* yes => start appending */
+ jz L(2) /* yes => start appending */
incl %edx /* increment source pointer */
/* Now we are aligned. Begin scan loop. */
- jmp L1
+ jmp L(1)
ALIGN(4)
-L4: addl $16,%edx /* increment destination pointer for round */
+L(4): addl $16,%edx /* increment destination pointer for round */
-L1: movl (%edx), %eax /* get word (= 4 bytes) in question */
+L(1): movl (%edx), %eax /* get word (= 4 bytes) in question */
movl $0xfefefeff, %edi /* magic value */
/* If you compare this with the algorithm in memchr.S you will
@@ -83,7 +83,7 @@ L1: movl (%edx), %eax /* get word (= 4 bytes) in question */
representation with more than 32 bits) not alter then last
overflow, we can now test this condition. If no carry is signaled
no overflow must have occurred in the last byte => it was 0. */
- jnc L3
+ jnc L(3)
/* We are only interested in carry bits that change due to the
previous add, so remove original bits */
@@ -95,106 +95,106 @@ L1: movl (%edx), %eax /* get word (= 4 bytes) in question */
the addition will not result in 0. */
/* If at least one byte of the word is C we don't get 0 in %ecx. */
- jnz L3
+ jnz L(3)
movl 4(%edx), %eax /* get word from source */
movl $0xfefefeff, %edi /* magic value */
addl %eax, %edi /* add the magic value to the word. We get
carry bits reported for each byte which
is *not* 0 */
- jnc L5 /* highest byte is C => stop copying */
+ jnc L(5) /* highest byte is C => stop copying */
xorl %eax, %edi /* ((word^charmask)+magic)^(word^charmask) */
orl $0xfefefeff, %edi /* set all non-carry bits */
incl %edi /* add 1: if one carry bit was *not* set
the addition will not result in 0. */
- jnz L5 /* one byte is NUL => stop copying */
+ jnz L(5) /* one byte is NUL => stop copying */
movl 8(%edx), %eax /* get word from source */
movl $0xfefefeff, %edi /* magic value */
addl %eax, %edi /* add the magic value to the word. We get
carry bits reported for each byte which
is *not* 0 */
- jnc L6 /* highest byte is C => stop copying */
+ jnc L(6) /* highest byte is C => stop copying */
xorl %eax, %edi /* ((word^charmask)+magic)^(word^charmask) */
orl $0xfefefeff, %edi /* set all non-carry bits */
incl %edi /* add 1: if one carry bit was *not* set
the addition will not result in 0. */
- jnz L6 /* one byte is NUL => stop copying */
+ jnz L(6) /* one byte is NUL => stop copying */
movl 12(%edx), %eax /* get word from source */
movl $0xfefefeff, %edi /* magic value */
addl %eax, %edi /* add the magic value to the word. We get
carry bits reported for each byte which
is *not* 0 */
- jnc L7 /* highest byte is C => stop copying */
+ jnc L(7) /* highest byte is C => stop copying */
xorl %eax, %edi /* ((word^charmask)+magic)^(word^charmask) */
orl $0xfefefeff, %edi /* set all non-carry bits */
incl %edi /* add 1: if one carry bit was *not* set
the addition will not result in 0. */
- jz L4 /* no byte is NUL => carry on copying */
+ jz L(4) /* no byte is NUL => carry on copying */
-L7: addl $4, %edx /* adjust source pointer */
-L6: addl $4, %edx
-L5: addl $4, %edx
+L(7): addl $4, %edx /* adjust source pointer */
+L(6): addl $4, %edx
+L(5): addl $4, %edx
-L3: testb %al, %al /* is first byte NUL? */
- jz L2 /* yes => start copying */
+L(3): testb %al, %al /* is first byte NUL? */
+ jz L(2) /* yes => start copying */
incl %edx /* increment source pointer */
testb %ah, %ah /* is second byte NUL? */
- jz L2 /* yes => start copying */
+ jz L(2) /* yes => start copying */
incl %edx /* increment source pointer */
testl $0xff0000, %eax /* is third byte NUL? */
- jz L2 /* yes => start copying */
+ jz L(2) /* yes => start copying */
incl %edx /* increment source pointer */
-L2: subl %ecx, %edx /* reduce number of loop variants */
+L(2): subl %ecx, %edx /* reduce number of loop variants */
/* Now we have to align the source pointer. */
testl $3, %ecx /* pointer correctly aligned? */
- jz L29 /* yes => start copy loop */
+ jz L(29) /* yes => start copy loop */
movb (%ecx), %al /* get first byte */
movb %al, (%ecx,%edx) /* and store it */
andb %al, %al /* is byte NUL? */
- jz L8 /* yes => return */
+ jz L(8) /* yes => return */
incl %ecx /* increment pointer */
testl $3, %ecx /* pointer correctly aligned? */
- jz L29 /* yes => start copy loop */
+ jz L(29) /* yes => start copy loop */
movb (%ecx), %al /* get first byte */
movb %al, (%ecx,%edx) /* and store it */
andb %al, %al /* is byte NUL? */
- jz L8 /* yes => return */
+ jz L(8) /* yes => return */
incl %ecx /* increment pointer */
testl $3, %ecx /* pointer correctly aligned? */
- jz L29 /* yes => start copy loop */
+ jz L(29) /* yes => start copy loop */
movb (%ecx), %al /* get first byte */
movb %al, (%ecx,%edx) /* and store it */
andb %al, %al /* is byte NUL? */
- jz L8 /* yes => return */
+ jz L(8) /* yes => return */
incl %ecx /* increment pointer */
/* Now we are aligned. */
- jmp L29 /* start copy loop */
+ jmp L(29) /* start copy loop */
ALIGN(4)
-L28: movl %eax, 12(%ecx,%edx)/* store word at destination */
+L(28): movl %eax, 12(%ecx,%edx)/* store word at destination */
addl $16, %ecx /* adjust pointer for full round */
-L29: movl (%ecx), %eax /* get word from source */
+L(29): movl (%ecx), %eax /* get word from source */
movl $0xfefefeff, %edi /* magic value */
addl %eax, %edi /* add the magic value to the word. We get