summaryrefslogtreecommitdiff
path: root/lib/libc/arch/arm32
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/arch/arm32')
-rw-r--r--lib/libc/arch/arm32/Makefile.inc6
-rw-r--r--lib/libc/arch/arm32/SYS.h4
-rw-r--r--lib/libc/arch/arm32/gen/Makefile.inc9
-rw-r--r--lib/libc/arch/arm32/gen/_setjmp.S4
-rw-r--r--lib/libc/arch/arm32/gen/alloca.S4
-rw-r--r--lib/libc/arch/arm32/gen/div.S358
-rw-r--r--lib/libc/arch/arm32/gen/fabs.c (renamed from lib/libc/arch/arm32/gen/s_fabs.c)8
-rw-r--r--lib/libc/arch/arm32/gen/flt_rounds.c73
-rw-r--r--lib/libc/arch/arm32/gen/fpgetmask.c45
-rw-r--r--lib/libc/arch/arm32/gen/fpgetround.c60
-rw-r--r--lib/libc/arch/arm32/gen/fpgetsticky.c45
-rw-r--r--lib/libc/arch/arm32/gen/fpsetmask.c46
-rw-r--r--lib/libc/arch/arm32/gen/fpsetround.c60
-rw-r--r--lib/libc/arch/arm32/gen/fpsetsticky.c46
-rw-r--r--lib/libc/arch/arm32/gen/frexp.c80
-rw-r--r--lib/libc/arch/arm32/gen/infinity.c33
-rw-r--r--lib/libc/arch/arm32/gen/isinf.c40
-rw-r--r--lib/libc/arch/arm32/gen/ldexp.c149
-rw-r--r--lib/libc/arch/arm32/gen/modf.c104
-rw-r--r--lib/libc/arch/arm32/gen/setjmp.S4
-rw-r--r--lib/libc/arch/arm32/gen/sigsetjmp.S4
-rw-r--r--lib/libc/arch/arm32/sys/Ovfork.S7
-rw-r--r--lib/libc/arch/arm32/sys/brk.S7
-rw-r--r--lib/libc/arch/arm32/sys/cerror.S7
-rw-r--r--lib/libc/arch/arm32/sys/exect.S7
-rw-r--r--lib/libc/arch/arm32/sys/fork.S7
-rw-r--r--lib/libc/arch/arm32/sys/pipe.S7
-rw-r--r--lib/libc/arch/arm32/sys/ptrace.S7
-rw-r--r--lib/libc/arch/arm32/sys/reboot.S7
-rw-r--r--lib/libc/arch/arm32/sys/sbrk.S7
-rw-r--r--lib/libc/arch/arm32/sys/setlogin.S7
-rw-r--r--lib/libc/arch/arm32/sys/sigpending.S7
-rw-r--r--lib/libc/arch/arm32/sys/sigprocmask.S7
-rw-r--r--lib/libc/arch/arm32/sys/sigreturn.S7
-rw-r--r--lib/libc/arch/arm32/sys/sigsuspend.S7
-rw-r--r--lib/libc/arch/arm32/sys/syscall.S7
36 files changed, 980 insertions, 307 deletions
diff --git a/lib/libc/arch/arm32/Makefile.inc b/lib/libc/arch/arm32/Makefile.inc
index 9023268c6c6..86ab3d24849 100644
--- a/lib/libc/arch/arm32/Makefile.inc
+++ b/lib/libc/arch/arm32/Makefile.inc
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.2 1996/04/26 20:15:14 mark Exp $
+# $NetBSD: Makefile.inc,v 1.3 1996/05/12 20:06:52 mark Exp $
-KMINCLUDES= arch/arm32/SYS.h arch/arm32DEFS.h
-KMSRCS= bcmp.c bzero.c ffs.c strcat.c strcmp.c strcpy.c strlen.c
+KMINCLUDES=
+KMSRCS=
diff --git a/lib/libc/arch/arm32/SYS.h b/lib/libc/arch/arm32/SYS.h
index 79abecc9307..1ebd76998e2 100644
--- a/lib/libc/arch/arm32/SYS.h
+++ b/lib/libc/arch/arm32/SYS.h
@@ -1,4 +1,4 @@
-/* $NetBSD: SYS.h,v 1.1 1996/02/16 20:48:02 mark Exp $ */
+/* $NetBSD: SYS.h,v 1.2 1996/05/12 20:01:54 mark Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)SYS.h 5.5 (Berkeley) 5/7/91
- * $Id: SYS.h,v 1.1 1996/05/01 12:51:14 deraadt Exp $
+ * $Id: SYS.h,v 1.2 1996/05/22 11:39:09 deraadt Exp $
*/
#include <machine/asm.h>
diff --git a/lib/libc/arch/arm32/gen/Makefile.inc b/lib/libc/arch/arm32/gen/Makefile.inc
index 985f6c20694..7506dad59ba 100644
--- a/lib/libc/arch/arm32/gen/Makefile.inc
+++ b/lib/libc/arch/arm32/gen/Makefile.inc
@@ -1,4 +1,7 @@
-# $NetBSD: Makefile.inc,v 1.1 1996/02/16 20:48:10 mark Exp $
+# $NetBSD: Makefile.inc,v 1.2 1996/05/12 20:34:15 mark Exp $
-SRCS+= _setjmp.S alloca.S infinity.c isinf.c \
- setjmp.S s_fabs.c sigsetjmp.S
+SRCS+= _setjmp.S alloca.S \
+ fabs.c flt_rounds.c fpgetround.c fpsetround.c \
+ fpgetmask.c fpsetmask.c fpgetsticky.c fpsetsticky.c \
+ infinity.c isinf.c frexp.c ldexp.c modf.c \
+ setjmp.S sigsetjmp.S
diff --git a/lib/libc/arch/arm32/gen/_setjmp.S b/lib/libc/arch/arm32/gen/_setjmp.S
index 1ec40fb18c4..971a316a300 100644
--- a/lib/libc/arch/arm32/gen/_setjmp.S
+++ b/lib/libc/arch/arm32/gen/_setjmp.S
@@ -1,4 +1,4 @@
-/* $NetBSD: _setjmp.S,v 1.1 1996/02/16 20:48:12 mark Exp $ */
+/* $NetBSD: _setjmp.S,v 1.2 1996/05/12 20:25:39 mark Exp $ */
/*
* Copyright (c) 1995 Mark Brinicombe
@@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: _setjmp.S,v 1.1 1996/05/01 12:51:16 deraadt Exp $
+ * $Id: _setjmp.S,v 1.2 1996/05/22 11:39:10 deraadt Exp $
*/
# include "DEFS.h"
diff --git a/lib/libc/arch/arm32/gen/alloca.S b/lib/libc/arch/arm32/gen/alloca.S
index daeb97b2fcb..fb5c1158931 100644
--- a/lib/libc/arch/arm32/gen/alloca.S
+++ b/lib/libc/arch/arm32/gen/alloca.S
@@ -1,4 +1,4 @@
-/* $NetBSD: alloca.S,v 1.1 1996/02/16 20:48:15 mark Exp $ */
+/* $NetBSD: alloca.S,v 1.2 1996/05/12 20:25:46 mark Exp $ */
/*
* Copyright (c) 1995 Mark Brinicombe
@@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: alloca.S,v 1.1 1996/05/01 12:51:17 deraadt Exp $
+ * $Id: alloca.S,v 1.2 1996/05/22 11:39:11 deraadt Exp $
*/
/* like alloc, but automatic automatic free in return */
diff --git a/lib/libc/arch/arm32/gen/div.S b/lib/libc/arch/arm32/gen/div.S
index 720646ee210..4155fb3ec2d 100644
--- a/lib/libc/arch/arm32/gen/div.S
+++ b/lib/libc/arch/arm32/gen/div.S
@@ -1,4 +1,4 @@
-/* $NetBSD: div.S,v 1.1 1996/02/16 20:48:16 mark Exp $ */
+/* $NetBSD: div.S,v 1.2 1996/05/12 20:52:09 mark Exp $ */
/*
* Redistribution and use in source and binary forms, with or without
@@ -27,22 +27,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $Id: div.S,v 1.1 1996/05/01 12:51:17 deraadt Exp $
*/
-a1 .req r0
-a2 .req r1
-a3 .req r2
-a4 .req r3
-v1 .req r4
-v2 .req r5
-v3 .req r6
-v4 .req r7
-v5 .req r8
-v6 .req r9
-v7 .req r10
-fp .req r11
ip .req r12
sp .req r13
lr .req r14
@@ -60,30 +46,30 @@ __rt_udiv:
.global ___umodsi3
___umodsi3:
- MOV a3, a1
- MOV a1, a2
- MOV a2, a3
+ MOV r2, r0
+ MOV r0, r1
+ MOV r1, r2
B x_uremainder
.global ___udivsi3
___udivsi3:
- MOV a3, a1
- MOV a1, a2
- MOV a2, a3
+ MOV r2, r0
+ MOV r0, r1
+ MOV r1, r2
B x_udivide
.global ___modsi3
___modsi3:
- MOV a3, a1
- MOV a1, a2
- MOV a2, a3
+ MOV r2, r0
+ MOV r0, r1
+ MOV r1, r2
B x_remainder
.global ___divsi3
___divsi3:
- MOV a3, a1
- MOV a1, a2
- MOV a2, a3
+ MOV r2, r0
+ MOV r0, r1
+ MOV r1, r2
B x_divide
.global x_divtest
@@ -94,262 +80,262 @@ x_divtest:
x_remainder:
STMFD sp!,{lr}
BL x_divide
- MOV a1,a2
+ MOV r0,r1
LDMFD sp!,{pc}
.global x_uremainder
x_uremainder:
STMFD sp!,{lr}
BL x_udivide
- MOV a1,a2
+ MOV r0,r1
LDMFD sp!,{pc}
x_overflow:
- MVN a1,#0
+ MVN r0,#0
MOV pc,lr
- .global x_udivide /* a1 = a2 / a1; a2 = a2 % a1 */
+ .global x_udivide /* r0 = r1 / r0; r1 = r1 % r0 */
x_udivide:
- CMP a1,#1
+ CMP r0,#1
BCC x_overflow
BEQ x_divide_l0
MOV ip,#0
- MOVS a2,a2
+ MOVS r1,r1
BPL x_divide_l1
- ORR ip,ip,#0x20000000 /* ip bit 0x20000000 = -ve a2 */
- MOVS a2,a2,lsr #1
- ORRCS ip,ip,#0x10000000 /* ip bit 0x10000000 = bit 0 of a2 */
+ ORR ip,ip,#0x20000000 /* ip bit 0x20000000 = -ve r1 */
+ MOVS r1,r1,lsr #1
+ ORRCS ip,ip,#0x10000000 /* ip bit 0x10000000 = bit 0 of r1 */
B x_divide_l1
-x_divide_l0: /* a1 == 1 */
- MOV a1,a2
- MOV a2,#0
+x_divide_l0: /* r0 == 1 */
+ MOV r0,r1
+ MOV r1,#0
MOV pc,lr
- .global x_divide /* a1 = a2 / a1; a2 = a2 % a1 */
+ .global x_divide /* r0 = r1 / r0; r1 = r1 % r0 */
x_divide:
- CMP a1,#1
+ CMP r0,#1
BCC x_overflow
BEQ x_divide_l0
- ANDS ip,a1,#0x80000000
- RSBMI a1,a1,#0
- ANDS a3,a2,#0x80000000
- EOR ip,ip,a3
- RSBMI a2,a2,#0
- ORR ip,a3,ip,lsr #1 /* ip bit 0x40000000 = -ve division */
+ ANDS ip,r0,#0x80000000
+ RSBMI r0,r0,#0
+ ANDS r2,r1,#0x80000000
+ EOR ip,ip,r2
+ RSBMI r1,r1,#0
+ ORR ip,r2,ip,lsr #1 /* ip bit 0x40000000 = -ve division */
/* ip bit 0x80000000 = -ve remainder */
x_divide_l1:
- MOV a3,#1
- MOV a4,#0
+ MOV r2,#1
+ MOV r3,#0
- CMP a2,a1
+ CMP r1,r0
BCC x_divide_b0
- CMP a2,a1,lsl #1
+ CMP r1,r0,lsl #1
BCC x_divide_b1
- CMP a2,a1,lsl #2
+ CMP r1,r0,lsl #2
BCC x_divide_b2
- CMP a2,a1,lsl #3
+ CMP r1,r0,lsl #3
BCC x_divide_b3
- CMP a2,a1,lsl #4
+ CMP r1,r0,lsl #4
BCC x_divide_b4
- CMP a2,a1,lsl #5
+ CMP r1,r0,lsl #5
BCC x_divide_b5
- CMP a2,a1,lsl #6
+ CMP r1,r0,lsl #6
BCC x_divide_b6
- CMP a2,a1,lsl #7
+ CMP r1,r0,lsl #7
BCC x_divide_b7
- CMP a2,a1,lsl #8
+ CMP r1,r0,lsl #8
BCC x_divide_b8
- CMP a2,a1,lsl #9
+ CMP r1,r0,lsl #9
BCC x_divide_b9
- CMP a2,a1,lsl #10
+ CMP r1,r0,lsl #10
BCC x_divide_b10
- CMP a2,a1,lsl #11
+ CMP r1,r0,lsl #11
BCC x_divide_b11
- CMP a2,a1,lsl #12
+ CMP r1,r0,lsl #12
BCC x_divide_b12
- CMP a2,a1,lsl #13
+ CMP r1,r0,lsl #13
BCC x_divide_b13
- CMP a2,a1,lsl #14
+ CMP r1,r0,lsl #14
BCC x_divide_b14
- CMP a2,a1,lsl #15
+ CMP r1,r0,lsl #15
BCC x_divide_b15
- CMP a2,a1,lsl #16
+ CMP r1,r0,lsl #16
BCC x_divide_b16
- CMP a2,a1,lsl #17
+ CMP r1,r0,lsl #17
BCC x_divide_b17
- CMP a2,a1,lsl #18
+ CMP r1,r0,lsl #18
BCC x_divide_b18
- CMP a2,a1,lsl #19
+ CMP r1,r0,lsl #19
BCC x_divide_b19
- CMP a2,a1,lsl #20
+ CMP r1,r0,lsl #20
BCC x_divide_b20
- CMP a2,a1,lsl #21
+ CMP r1,r0,lsl #21
BCC x_divide_b21
- CMP a2,a1,lsl #22
+ CMP r1,r0,lsl #22
BCC x_divide_b22
- CMP a2,a1,lsl #23
+ CMP r1,r0,lsl #23
BCC x_divide_b23
- CMP a2,a1,lsl #24
+ CMP r1,r0,lsl #24
BCC x_divide_b24
- CMP a2,a1,lsl #25
+ CMP r1,r0,lsl #25
BCC x_divide_b25
- CMP a2,a1,lsl #26
+ CMP r1,r0,lsl #26
BCC x_divide_b26
- CMP a2,a1,lsl #27
+ CMP r1,r0,lsl #27
BCC x_divide_b27
- CMP a2,a1,lsl #28
+ CMP r1,r0,lsl #28
BCC x_divide_b28
- CMP a2,a1,lsl #29
+ CMP r1,r0,lsl #29
BCC x_divide_b29
- CMP a2,a1,lsl #30
+ CMP r1,r0,lsl #30
BCC x_divide_b30
- CMP a2,a1,lsl #31
- SUBHS a2,a2,a1,lsl #31
- ADDHS a4,a4,a3,lsl #31
- CMP a2,a1,lsl #30
- SUBHS a2,a2,a1,lsl #30
- ADDHS a4,a4,a3,lsl #30
+ CMP r1,r0,lsl #31
+ SUBHS r1,r1,r0,lsl #31
+ ADDHS r3,r3,r2,lsl #31
+ CMP r1,r0,lsl #30
+ SUBHS r1,r1,r0,lsl #30
+ ADDHS r3,r3,r2,lsl #30
x_divide_b30:
- CMP a2,a1,lsl #29
- SUBHS a2,a2,a1,lsl #29
- ADDHS a4,a4,a3,lsl #29
+ CMP r1,r0,lsl #29
+ SUBHS r1,r1,r0,lsl #29
+ ADDHS r3,r3,r2,lsl #29
x_divide_b29:
- CMP a2,a1,lsl #28
- SUBHS a2,a2,a1,lsl #28
- ADDHS a4,a4,a3,lsl #28
+ CMP r1,r0,lsl #28
+ SUBHS r1,r1,r0,lsl #28
+ ADDHS r3,r3,r2,lsl #28
x_divide_b28:
- CMP a2,a1,lsl #27
- SUBHSS a2,a2,a1,lsl #27
- ADDHS a4,a4,a3,lsl #27
+ CMP r1,r0,lsl #27
+ SUBHSS r1,r1,r0,lsl #27
+ ADDHS r3,r3,r2,lsl #27
x_divide_b27:
- CMP a2,a1,lsl #26
- SUBHS a2,a2,a1,lsl #26
- ADDHS a4,a4,a3,lsl #26
+ CMP r1,r0,lsl #26
+ SUBHS r1,r1,r0,lsl #26
+ ADDHS r3,r3,r2,lsl #26
x_divide_b26:
- CMP a2,a1,lsl #25
- SUBHS a2,a2,a1,lsl #25
- ADDHS a4,a4,a3,lsl #25
+ CMP r1,r0,lsl #25
+ SUBHS r1,r1,r0,lsl #25
+ ADDHS r3,r3,r2,lsl #25
x_divide_b25:
- CMP a2,a1,lsl #24
- SUBHS a2,a2,a1,lsl #24
- ADDHS a4,a4,a3,lsl #24
+ CMP r1,r0,lsl #24
+ SUBHS r1,r1,r0,lsl #24
+ ADDHS r3,r3,r2,lsl #24
x_divide_b24:
- CMP a2,a1,lsl #23
- SUBHS a2,a2,a1,lsl #23
- ADDHS a4,a4,a3,lsl #23
+ CMP r1,r0,lsl #23
+ SUBHS r1,r1,r0,lsl #23
+ ADDHS r3,r3,r2,lsl #23
x_divide_b23:
- CMP a2,a1,lsl #22
- SUBHS a2,a2,a1,lsl #22
- ADDHS a4,a4,a3,lsl #22
+ CMP r1,r0,lsl #22
+ SUBHS r1,r1,r0,lsl #22
+ ADDHS r3,r3,r2,lsl #22
x_divide_b22:
- CMP a2,a1,lsl #21
- SUBHS a2,a2,a1,lsl #21
- ADDHS a4,a4,a3,lsl #21
+ CMP r1,r0,lsl #21
+ SUBHS r1,r1,r0,lsl #21
+ ADDHS r3,r3,r2,lsl #21
x_divide_b21:
- CMP a2,a1,lsl #20
- SUBHS a2,a2,a1,lsl #20
- ADDHS a4,a4,a3,lsl #20
+ CMP r1,r0,lsl #20
+ SUBHS r1,r1,r0,lsl #20
+ ADDHS r3,r3,r2,lsl #20
x_divide_b20:
- CMP a2,a1,lsl #19
- SUBHS a2,a2,a1,lsl #19
- ADDHS a4,a4,a3,lsl #19
+ CMP r1,r0,lsl #19
+ SUBHS r1,r1,r0,lsl #19
+ ADDHS r3,r3,r2,lsl #19
x_divide_b19:
- CMP a2,a1,lsl #18
- SUBHS a2,a2,a1,lsl #18
- ADDHS a4,a4,a3,lsl #18
+ CMP r1,r0,lsl #18
+ SUBHS r1,r1,r0,lsl #18
+ ADDHS r3,r3,r2,lsl #18
x_divide_b18:
- CMP a2,a1,lsl #17
- SUBHS a2,a2,a1,lsl #17
- ADDHS a4,a4,a3,lsl #17
+ CMP r1,r0,lsl #17
+ SUBHS r1,r1,r0,lsl #17
+ ADDHS r3,r3,r2,lsl #17
x_divide_b17:
- CMP a2,a1,lsl #16
- SUBHS a2,a2,a1,lsl #16
- ADDHS a4,a4,a3,lsl #16
+ CMP r1,r0,lsl #16
+ SUBHS r1,r1,r0,lsl #16
+ ADDHS r3,r3,r2,lsl #16
x_divide_b16:
- CMP a2,a1,lsl #15
- SUBHS a2,a2,a1,lsl #15
- ADDHS a4,a4,a3,lsl #15
+ CMP r1,r0,lsl #15
+ SUBHS r1,r1,r0,lsl #15
+ ADDHS r3,r3,r2,lsl #15
x_divide_b15:
- CMP a2,a1,lsl #14
- SUBHS a2,a2,a1,lsl #14
- ADDHS a4,a4,a3,lsl #14
+ CMP r1,r0,lsl #14
+ SUBHS r1,r1,r0,lsl #14
+ ADDHS r3,r3,r2,lsl #14
x_divide_b14:
- CMP a2,a1,lsl #13
- SUBHS a2,a2,a1,lsl #13
- ADDHS a4,a4,a3,lsl #13
+ CMP r1,r0,lsl #13
+ SUBHS r1,r1,r0,lsl #13
+ ADDHS r3,r3,r2,lsl #13
x_divide_b13:
- CMP a2,a1,lsl #12
- SUBHS a2,a2,a1,lsl #12
- ADDHS a4,a4,a3,lsl #12
+ CMP r1,r0,lsl #12
+ SUBHS r1,r1,r0,lsl #12
+ ADDHS r3,r3,r2,lsl #12
x_divide_b12:
- CMP a2,a1,lsl #11
- SUBHS a2,a2,a1,lsl #11
- ADDHS a4,a4,a3,lsl #11
+ CMP r1,r0,lsl #11
+ SUBHS r1,r1,r0,lsl #11
+ ADDHS r3,r3,r2,lsl #11
x_divide_b11:
- CMP a2,a1,lsl #10
- SUBHS a2,a2,a1,lsl #10
- ADDHS a4,a4,a3,lsl #10
+ CMP r1,r0,lsl #10
+ SUBHS r1,r1,r0,lsl #10
+ ADDHS r3,r3,r2,lsl #10
x_divide_b10:
- CMP a2,a1,lsl #9
- SUBHS a2,a2,a1,lsl #9
- ADDHS a4,a4,a3,lsl #9
+ CMP r1,r0,lsl #9
+ SUBHS r1,r1,r0,lsl #9
+ ADDHS r3,r3,r2,lsl #9
x_divide_b9:
- CMP a2,a1,lsl #8
- SUBHS a2,a2,a1,lsl #8
- ADDHS a4,a4,a3,lsl #8
+ CMP r1,r0,lsl #8
+ SUBHS r1,r1,r0,lsl #8
+ ADDHS r3,r3,r2,lsl #8
x_divide_b8:
- CMP a2,a1,lsl #7
- SUBHS a2,a2,a1,lsl #7
- ADDHS a4,a4,a3,lsl #7
+ CMP r1,r0,lsl #7
+ SUBHS r1,r1,r0,lsl #7
+ ADDHS r3,r3,r2,lsl #7
x_divide_b7:
- CMP a2,a1,lsl #6
- SUBHS a2,a2,a1,lsl #6
- ADDHS a4,a4,a3,lsl #6
+ CMP r1,r0,lsl #6
+ SUBHS r1,r1,r0,lsl #6
+ ADDHS r3,r3,r2,lsl #6
x_divide_b6:
- CMP a2,a1,lsl #5
- SUBHS a2,a2,a1,lsl #5
- ADDHS a4,a4,a3,lsl #5
+ CMP r1,r0,lsl #5
+ SUBHS r1,r1,r0,lsl #5
+ ADDHS r3,r3,r2,lsl #5
x_divide_b5:
- CMP a2,a1,lsl #4
- SUBHS a2,a2,a1,lsl #4
- ADDHS a4,a4,a3,lsl #4
+ CMP r1,r0,lsl #4
+ SUBHS r1,r1,r0,lsl #4
+ ADDHS r3,r3,r2,lsl #4
x_divide_b4:
- CMP a2,a1,lsl #3
- SUBHS a2,a2,a1,lsl #3
- ADDHS a4,a4,a3,lsl #3
+ CMP r1,r0,lsl #3
+ SUBHS r1,r1,r0,lsl #3
+ ADDHS r3,r3,r2,lsl #3
x_divide_b3:
- CMP a2,a1,lsl #2
- SUBHS a2,a2,a1,lsl #2
- ADDHS a4,a4,a3,lsl #2
+ CMP r1,r0,lsl #2
+ SUBHS r1,r1,r0,lsl #2
+ ADDHS r3,r3,r2,lsl #2
x_divide_b2:
- CMP a2,a1,lsl #1
- SUBHS a2,a2,a1,lsl #1
- ADDHS a4,a4,a3,lsl #1
+ CMP r1,r0,lsl #1
+ SUBHS r1,r1,r0,lsl #1
+ ADDHS r3,r3,r2,lsl #1
x_divide_b1:
- CMP a2,a1
- SUBHS a2,a2,a1
- ADDHS a4,a4,a3
+ CMP r1,r0
+ SUBHS r1,r1,r0
+ ADDHS r3,r3,r2
x_divide_b0:
TST ip,#0x20000000
BNE x_udivide_l1
- MOV a1,a4
+ MOV r0,r3
CMP ip,#0
- RSBMI a2,a2,#0
+ RSBMI r1,r1,#0
MOVS ip,ip,lsl #1
- RSBMI a1,a1,#0
+ RSBMI r0,r0,#0
MOV pc,lr
x_udivide_l1:
TST ip,#0x10000000
- MOV a2,a2,lsl #1
- ORRNE a2,a2,#1
- MOV a4,a4,lsl #1
- CMP a2,a1
- SUBHS a2,a2,a1
- ADDHS a4,a4,a3
- MOV a1,a4
+ MOV r1,r1,lsl #1
+ ORRNE r1,r1,#1
+ MOV r3,r3,lsl #1
+ CMP r1,r0
+ SUBHS r1,r1,r0
+ ADDHS r3,r3,r2
+ MOV r0,r3
MOV pc,lr
diff --git a/lib/libc/arch/arm32/gen/s_fabs.c b/lib/libc/arch/arm32/gen/fabs.c
index 0daa38ed614..6d5aa4fa9ad 100644
--- a/lib/libc/arch/arm32/gen/s_fabs.c
+++ b/lib/libc/arch/arm32/gen/fabs.c
@@ -1,6 +1,8 @@
-/* $NetBSD: s_fabs.c,v 1.1 1996/02/16 20:48:21 mark Exp $ */
+/* $NetBSD: fabs.c,v 1.1 1996/05/12 20:29:41 mark Exp $ */
/*
+ * Copyright (c) 1996 Mark Brinicombe
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -27,8 +29,6 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $Id: s_fabs.c,v 1.1 1996/05/01 12:51:19 deraadt Exp $
*/
/*
@@ -43,6 +43,6 @@
#endif
{
if (x < 0)
- x = -x;
+ x = -x;
return(x);
}
diff --git a/lib/libc/arch/arm32/gen/flt_rounds.c b/lib/libc/arch/arm32/gen/flt_rounds.c
new file mode 100644
index 00000000000..a1b4a8a51ca
--- /dev/null
+++ b/lib/libc/arch/arm32/gen/flt_rounds.c
@@ -0,0 +1,73 @@
+/* $NetBSD: flt_rounds.c,v 1.1 1996/05/12 20:29:09 mark Exp $ */
+
+/*
+ * Copyright (c) 1996 Mark Brinicombe
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by Mark Brinicombe
+ * for the NetBSD Project.
+ * 4. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <sys/types.h>
+
+static const int map[] = {
+ 1, /* round to nearest */
+ 2, /* round to positive infinity */
+ 3, /* round to negative infinity */
+ 0 /* round to zero */
+};
+
+/*
+ * Return the current FP rounding mode
+ *
+ * Returns:
+ * 0 - round to zero
+ * 1 - round to nearest
+ * 2 - round to postive infinity
+ * 3 - round to negative infinity
+ *
+ * ok all we need to do is get the current FP rounding mode
+ * index our map table and return the appropriate value.
+ *
+ * HOWEVER:
+ * The ARM FPA codes the rounding mode into the actual FP instructions
+ * so there is no such thing as a global rounding mode.
+ * The default is round to nearest if rounding is not explictly specified.
+ * FP instructions generated by GCC will not explicitly specify a rounding
+ * mode.
+ *
+ * So the best we can do it to return the rounding mode FP instructions
+ * use if rounding is not specified which is round to nearest.
+ *
+ * This could change in the future with new floating point emulators or
+ * soft float FP libraries.
+ */
+
+int
+__flt_rounds()
+{
+ return(map[0]);
+}
diff --git a/lib/libc/arch/arm32/gen/fpgetmask.c b/lib/libc/arch/arm32/gen/fpgetmask.c
new file mode 100644
index 00000000000..f9f1cf407d1
--- /dev/null
+++ b/lib/libc/arch/arm32/gen/fpgetmask.c
@@ -0,0 +1,45 @@
+/* $NetBSD: fpgetmask.c,v 1.1 1996/05/12 20:29:16 mark Exp $ */
+
+/*
+ * Copyright (c) 1996 Mark Brinicombe
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by Mark Brinicombe
+ * for the NetBSD Project.
+ * 4. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <sys/types.h>
+#include <ieeefp.h>
+
+/*
+ * Return the current FP exception mask
+ */
+
+fp_except
+fpgetmask()
+{
+ abort();
+}
diff --git a/lib/libc/arch/arm32/gen/fpgetround.c b/lib/libc/arch/arm32/gen/fpgetround.c
new file mode 100644
index 00000000000..93d080b72e1
--- /dev/null
+++ b/lib/libc/arch/arm32/gen/fpgetround.c
@@ -0,0 +1,60 @@
+/* $NetBSD: fpgetround.c,v 1.1 1996/05/12 20:29:21 mark Exp $ */
+
+/*
+ * Copyright (c) 1996 Mark Brinicombe
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by Mark Brinicombe
+ * for the NetBSD Project.
+ * 4. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <sys/types.h>
+#include <ieeefp.h>
+
+/*
+ * Return the current FP rounding mode
+ *
+ * ok all we need to do is return the current FP rounding mode
+ *
+ * HOWEVER:
+ * The ARM FPA codes the rounding mode into the actual FP instructions
+ * so there is no such thing as a global rounding mode.
+ * The default is round to nearest if rounding is not explictly specified.
+ * FP instructions generated by GCC will not explicitly specify a rounding
+ * mode.
+ *
+ * So the best we can do it to return the rounding mode FP instructions
+ * use if rounding is not specified which is round to nearest.
+ *
+ * This could change in the future with new floating point emulators or
+ * soft float FP libraries.
+ */
+
+fp_rnd
+fpgetround()
+{
+ return(FP_RN);
+}
diff --git a/lib/libc/arch/arm32/gen/fpgetsticky.c b/lib/libc/arch/arm32/gen/fpgetsticky.c
new file mode 100644
index 00000000000..ac6c4449199
--- /dev/null
+++ b/lib/libc/arch/arm32/gen/fpgetsticky.c
@@ -0,0 +1,45 @@
+/* $NetBSD: fpgetsticky.c,v 1.1 1996/05/12 20:29:25 mark Exp $ */
+
+/*
+ * Copyright (c) 1996 Mark Brinicombe
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by Mark Brinicombe
+ * for the NetBSD Project.
+ * 4. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <sys/types.h>
+#include <ieeefp.h>
+
+/*
+ * Return the current FP exception mask
+ */
+
+fp_except
+fpgetsticky()
+{
+ abort();
+}
diff --git a/lib/libc/arch/arm32/gen/fpsetmask.c b/lib/libc/arch/arm32/gen/fpsetmask.c
new file mode 100644
index 00000000000..3d644398f56
--- /dev/null
+++ b/lib/libc/arch/arm32/gen/fpsetmask.c
@@ -0,0 +1,46 @@
+/* $NetBSD: fpsetmask.c,v 1.1 1996/05/12 20:29:29 mark Exp $ */
+
+/*
+ * Copyright (c) 1996 Mark Brinicombe
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by Mark Brinicombe
+ * for the NetBSD Project.
+ * 4. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <sys/types.h>
+#include <ieeefp.h>
+
+/*
+ * Sets the FP exception mask
+ */
+
+fp_except
+fpsetmask(mask)
+ fp_except mask;
+{
+ abort();
+}
diff --git a/lib/libc/arch/arm32/gen/fpsetround.c b/lib/libc/arch/arm32/gen/fpsetround.c
new file mode 100644
index 00000000000..a5697798c52
--- /dev/null
+++ b/lib/libc/arch/arm32/gen/fpsetround.c
@@ -0,0 +1,60 @@
+/* $NetBSD: fpsetround.c,v 1.1 1996/05/12 20:29:33 mark Exp $ */
+
+/*
+ * Copyright (c) 1996 Mark Brinicombe
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by Mark Brinicombe
+ * for the NetBSD Project.
+ * 4. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <sys/types.h>
+#include <ieeefp.h>
+
+/*
+ * Return the current FP rounding mode
+ *
+ * ok all we need to do is return the current FP rounding mode
+ *
+ * HOWEVER:
+ * The ARM FPA codes the rounding mode into the actual FP instructions
+ * so there is no such thing as a global rounding mode.
+ * The default is round to nearest if rounding is not explictly specified.
+ * FP instructions generated by GCC will not explicitly specify a rounding
+ * mode.
+ *
+ * All we can do is abort
+ *
+ * This could change in the future with new floating point emulators or
+ * soft float FP libraries.
+ */
+
+fp_rnd
+fpsetround(rnd_dir)
+ fp_rnd rnd_dir;
+{
+ abort();
+}
diff --git a/lib/libc/arch/arm32/gen/fpsetsticky.c b/lib/libc/arch/arm32/gen/fpsetsticky.c
new file mode 100644
index 00000000000..b04dcb8944d
--- /dev/null
+++ b/lib/libc/arch/arm32/gen/fpsetsticky.c
@@ -0,0 +1,46 @@
+/* $NetBSD: fpsetsticky.c,v 1.1 1996/05/12 20:29:37 mark Exp $ */
+
+/*
+ * Copyright (c) 1996 Mark Brinicombe
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by Mark Brinicombe
+ * for the NetBSD Project.
+ * 4. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <sys/types.h>
+#include <ieeefp.h>
+
+/*
+ * Sets the FP exception mask
+ */
+
+fp_except
+fpsetsticky(sticky)
+ fp_except sticky;
+{
+ abort();
+}
diff --git a/lib/libc/arch/arm32/gen/frexp.c b/lib/libc/arch/arm32/gen/frexp.c
new file mode 100644
index 00000000000..523f8bb69a3
--- /dev/null
+++ b/lib/libc/arch/arm32/gen/frexp.c
@@ -0,0 +1,80 @@
+/* $NetBSD: frexp.c,v 1.1 1996/05/12 20:29:46 mark Exp $ */
+
+/*
+ * Copyright (c) 1992, 1993
+ * The Regents of the University of California. All rights reserved.
+ *
+ * This software was developed by the Computer Systems Engineering group
+ * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
+ * contributed to Berkeley.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * from: frexp.c,v 1.1 1993/10/07 00:21:33 cgd Exp $
+ */
+
+#if defined(LIBC_SCCS) && !defined(lint)
+static char sccsid[] = "@(#)frexp.c 8.1 (Berkeley) 6/4/93";
+#endif /* LIBC_SCCS and not lint */
+
+#include <sys/types.h>
+#include <machine/ieee.h>
+
+/*
+ * Split the given value into a fraction in the range [0.5, 1.0) and
+ * an exponent, such that frac * (2^exp) == value. If value is 0,
+ * return 0.
+ */
+double
+frexp(value, eptr)
+ double value;
+ int *eptr;
+{
+ union {
+ double v;
+ struct ieee_double s;
+ } u;
+
+ if (value) {
+ /*
+ * Fractions in [0.5..1.0) have an exponent of 2^-1.
+ * Leave Inf and NaN alone, however.
+ * WHAT ABOUT DENORMS?
+ */
+ u.v = value;
+ if (u.s.dbl_exp != DBL_EXP_INFNAN) {
+ *eptr = u.s.dbl_exp - (DBL_EXP_BIAS - 1);
+ u.s.dbl_exp = DBL_EXP_BIAS - 1;
+ }
+ return (u.v);
+ } else {
+ *eptr = 0;
+ return ((double)0);
+ }
+}
diff --git a/lib/libc/arch/arm32/gen/infinity.c b/lib/libc/arch/arm32/gen/infinity.c
index 4603d50b7fb..f0f2fd69b45 100644
--- a/lib/libc/arch/arm32/gen/infinity.c
+++ b/lib/libc/arch/arm32/gen/infinity.c
@@ -1,9 +1,38 @@
-/* $NetBSD: infinity.c,v 1.1 1996/02/16 20:48:18 mark Exp $ */
+/* $NetBSD: infinity.c,v 1.2 1996/05/12 20:43:54 mark Exp $ */
/*
- * $Id: infinity.c,v 1.1 1996/05/01 12:51:18 deraadt Exp $
+ * Copyright (c) 1996 Mark Brinicombe.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by Mark Brinicombe
+ * 4. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
*/
#include <math.h>
+/* Bytes for +infinity on an arm32 (IEEE double precision) */
+
char __infinity[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f };
diff --git a/lib/libc/arch/arm32/gen/isinf.c b/lib/libc/arch/arm32/gen/isinf.c
index e55495f670c..79a6136194a 100644
--- a/lib/libc/arch/arm32/gen/isinf.c
+++ b/lib/libc/arch/arm32/gen/isinf.c
@@ -1,8 +1,8 @@
-/* $NetBSD: isinf.c,v 1.1 1996/02/16 20:48:20 mark Exp $ */
+/* $OpenBSD: isinf.c,v 1.2 1996/05/22 11:39:15 deraadt Exp $ */
+/* $NetBSD: isinf.c,v 1.2 1996/05/12 20:50:54 mark Exp $ */
-/*-
- * Copyright (c) 1991 The Regents of the University of California.
- * All rights reserved.
+/*
+ * Copyright (c) 1996 Mark Brinicombe
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -14,16 +14,16 @@
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
+ * This product includes software developed by Mark Brinicombe
+ * for the NetBSD project.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
@@ -31,34 +31,26 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $Id: isinf.c,v 1.1 1996/05/01 12:51:19 deraadt Exp $
*/
#include <sys/types.h>
+#include <machine/ieee.h>
+#include <math.h>
+int
isnan(d)
double d;
{
- register struct IEEEdp {
- u_int manh : 20;
- u_int exp : 11;
- u_int sign : 1;
- u_int manl;
- } *p = (struct IEEEdp *)&d;
+ register struct ieee_double *p = (struct ieee_double *)&d;
- return(p->exp == 2047 && (p->manh || p->manl));
+ return(p->dbl_exp == DBL_EXP_INFNAN && (p->dbl_frach || p->dbl_fracl));
}
+int
isinf(d)
double d;
{
- register struct IEEEdp {
- u_int manh : 20;
- u_int exp : 11;
- u_int sign : 1;
- u_int manl;
- } *p = (struct IEEEdp *)&d;
+ register struct ieee_double *p = (struct ieee_double *)&d;
- return(p->exp == 2047 && !p->manh && !p->manl);
+ return(p->dbl_exp == DBL_EXP_INFNAN && !p->dbl_frach && !p->dbl_fracl);
}
diff --git a/lib/libc/arch/arm32/gen/ldexp.c b/lib/libc/arch/arm32/gen/ldexp.c
new file mode 100644
index 00000000000..29279c3f3c6
--- /dev/null
+++ b/lib/libc/arch/arm32/gen/ldexp.c
@@ -0,0 +1,149 @@
+/* $NetBSD: ldexp.c,v 1.1 1996/05/12 20:29:50 mark Exp $ */
+
+/*
+ * Copyright (c) 1992, 1993
+ * The Regents of the University of California. All rights reserved.
+ *
+ * This software was developed by the Computer Systems Engineering group
+ * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
+ * contributed to Berkeley.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * from: ldexp.c,v 1.1 1993/10/07 00:21:36 cgd Exp $
+ */
+
+#if defined(LIBC_SCCS) && !defined(lint)
+static const char sccsid[] = "@(#)ldexp.c 8.1 (Berkeley) 6/4/93";
+#endif /* LIBC_SCCS and not lint */
+
+#include <sys/types.h>
+#include <machine/ieee.h>
+#include <errno.h>
+
+/*
+ * double ldexp(double val, int exp)
+ * returns: val * (2**exp)
+ */
+double
+ldexp(val, exp)
+ double val;
+ int exp;
+{
+ register int oldexp, newexp, mulexp;
+ union doub {
+ double v;
+ struct ieee_double s;
+ } u, mul;
+
+ /*
+ * If input is zero, or no change, just return input.
+ * Likewise, if input is Inf or NaN, just return it.
+ */
+ u.v = val;
+ oldexp = u.s.dbl_exp;
+ if (val == 0 || exp == 0 || oldexp == DBL_EXP_INFNAN)
+ return (val);
+
+ /*
+ * Compute new exponent and check for over/under flow.
+ * Underflow, unfortunately, could mean switching to denormal.
+ * If result out of range, set ERANGE and return 0 if too small
+ * or Inf if too big, with the same sign as the input value.
+ */
+ newexp = oldexp + exp;
+ if (newexp >= DBL_EXP_INFNAN) {
+ /* u.s.dbl_sign = val < 0; -- already set */
+ u.s.dbl_exp = DBL_EXP_INFNAN;
+ u.s.dbl_frach = u.s.dbl_fracl = 0;
+ errno = ERANGE;
+ return (u.v); /* Inf */
+ }
+ if (newexp <= 0) {
+ /*
+ * The output number is either a denormal or underflows
+ * (see comments in machine/ieee.h).
+ */
+ if (newexp <= -DBL_FRACBITS) {
+ /* u.s.dbl_sign = val < 0; -- already set */
+ u.s.dbl_exp = 0;
+ u.s.dbl_frach = u.s.dbl_fracl = 0;
+ errno = ERANGE;
+ return (u.v); /* zero */
+ }
+ /*
+ * We are going to produce a denorm. Our `exp' argument
+ * might be as small as -2097, and we cannot compute
+ * 2^-2097, so we may have to do this as many as three
+ * steps (not just two, as for positive `exp's below).
+ */
+ mul.v = 0;
+ while (exp <= -DBL_EXP_BIAS) {
+ mul.s.dbl_exp = 1;
+ val *= mul.v;
+ exp += DBL_EXP_BIAS - 1;
+ }
+ mul.s.dbl_exp = exp + DBL_EXP_BIAS;
+ val *= mul.v;
+ return (val);
+ }
+
+ /*
+ * Newexp is positive.
+ *
+ * If oldexp is zero, we are starting with a denorm, and simply
+ * adjusting the exponent will produce bogus answers. We need
+ * to fix that first.
+ */
+ if (oldexp == 0) {
+ /*
+ * Multiply by 2^mulexp to make the number normalizable.
+ * We cannot multiply by more than 2^1023, but `exp'
+ * argument might be as large as 2046. A single
+ * adjustment, however, will normalize the number even
+ * for huge `exp's, and then we can use exponent
+ * arithmetic just as for normal `double's.
+ */
+ mulexp = exp <= DBL_EXP_BIAS ? exp : DBL_EXP_BIAS;
+ mul.v = 0;
+ mul.s.dbl_exp = mulexp + DBL_EXP_BIAS;
+ val *= mul.v;
+ if (mulexp == exp)
+ return (val);
+ u.v = val;
+ newexp -= mulexp;
+ }
+
+ /*
+ * Both oldexp and newexp are positive; just replace the
+ * old exponent with the new one.
+ */
+ u.s.dbl_exp = newexp;
+ return (u.v);
+}
diff --git a/lib/libc/arch/arm32/gen/modf.c b/lib/libc/arch/arm32/gen/modf.c
new file mode 100644
index 00000000000..1f78c89354b
--- /dev/null
+++ b/lib/libc/arch/arm32/gen/modf.c
@@ -0,0 +1,104 @@
+/* $NetBSD: modf.c,v 1.1 1996/05/12 20:29:55 mark Exp $ */
+
+/*
+ * Copyright (c) 1994, 1995 Carnegie-Mellon University.
+ * All rights reserved.
+ *
+ * Author: Chris G. Demetriou
+ *
+ * Permission to use, copy, modify and distribute this software and
+ * its documentation is hereby granted, provided that both the copyright
+ * notice and this permission notice appear in all copies of the
+ * software, derivative works or modified versions, and any portions
+ * thereof, and that both notices appear in supporting documentation.
+ *
+ * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
+ * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
+ * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
+ *
+ * Carnegie Mellon requests users of this software to return to
+ *
+ * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
+ * School of Computer Science
+ * Carnegie Mellon University
+ * Pittsburgh PA 15213-3890
+ *
+ * any improvements or extensions that they make and grant Carnegie the
+ * rights to redistribute these changes.
+ */
+
+#include <sys/types.h>
+#include <machine/ieee.h>
+#include <errno.h>
+#include <math.h>
+
+/*
+ * double modf(double val, double *iptr)
+ * returns: f and i such that |f| < 1.0, (f + i) = val, and
+ * sign(f) == sign(i) == sign(val).
+ *
+ * Beware signedness when doing subtraction, and also operand size!
+ */
+double
+modf(val, iptr)
+ double val, *iptr;
+{
+ union doub {
+ double v;
+ struct ieee_double s;
+ } u, v;
+ u_int64_t frac;
+
+ /*
+ * If input is Inf or NaN, return it and leave i alone.
+ */
+ u.v = val;
+ if (u.s.dbl_exp == DBL_EXP_INFNAN)
+ return (u.v);
+
+ /*
+ * If input can't have a fractional part, return
+ * (appropriately signed) zero, and make i be the input.
+ */
+ if ((int)u.s.dbl_exp - DBL_EXP_BIAS > DBL_FRACBITS - 1) {
+ *iptr = u.v;
+ v.v = 0.0;
+ v.s.dbl_sign = u.s.dbl_sign;
+ return (v.v);
+ }
+
+ /*
+ * If |input| < 1.0, return it, and set i to the appropriately
+ * signed zero.
+ */
+ if (u.s.dbl_exp < DBL_EXP_BIAS) {
+ v.v = 0.0;
+ v.s.dbl_sign = u.s.dbl_sign;
+ *iptr = v.v;
+ return (u.v);
+ }
+
+ /*
+ * There can be a fractional part of the input.
+ * If you look at the math involved for a few seconds, it's
+ * plain to see that the integral part is the input, with the
+ * low (DBL_FRACBITS - (exponent - DBL_EXP_BIAS)) bits zeroed,
+ * the the fractional part is the part with the rest of the
+ * bits zeroed. Just zeroing the high bits to get the
+ * fractional part would yield a fraction in need of
+ * normalization. Therefore, we take the easy way out, and
+ * just use subtraction to get the fractional part.
+ */
+ v.v = u.v;
+ /* Zero the low bits of the fraction, the sleazy way. */
+ frac = ((u_int64_t)v.s.dbl_frach << 32) + v.s.dbl_fracl;
+ frac >>= DBL_FRACBITS - (u.s.dbl_exp - DBL_EXP_BIAS);
+ frac <<= DBL_FRACBITS - (u.s.dbl_exp - DBL_EXP_BIAS);
+ v.s.dbl_fracl = frac & 0xffffffff;
+ v.s.dbl_frach = frac >> 32;
+ *iptr = v.v;
+
+ u.v -= v.v;
+ u.s.dbl_sign = v.s.dbl_sign;
+ return (u.v);
+}
diff --git a/lib/libc/arch/arm32/gen/setjmp.S b/lib/libc/arch/arm32/gen/setjmp.S
index 2fa42dc4d72..0cd48249abe 100644
--- a/lib/libc/arch/arm32/gen/setjmp.S
+++ b/lib/libc/arch/arm32/gen/setjmp.S
@@ -1,4 +1,4 @@
-/* $NetBSD: setjmp.S,v 1.1 1996/02/16 20:48:23 mark Exp $ */
+/* $NetBSD: setjmp.S,v 1.2 1996/05/12 20:25:49 mark Exp $ */
/*
* Copyright (c) 1995 Mark Brinicombe
@@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: setjmp.S,v 1.1 1996/05/01 12:51:20 deraadt Exp $
+ * $Id: setjmp.S,v 1.2 1996/05/22 11:39:17 deraadt Exp $
*/
# include "DEFS.h"
diff --git a/lib/libc/arch/arm32/gen/sigsetjmp.S b/lib/libc/arch/arm32/gen/sigsetjmp.S
index 838f69a6495..9655c6bd580 100644
--- a/lib/libc/arch/arm32/gen/sigsetjmp.S
+++ b/lib/libc/arch/arm32/gen/sigsetjmp.S
@@ -1,4 +1,4 @@
-/* $NetBSD: sigsetjmp.S,v 1.1 1996/02/16 20:48:25 mark Exp $ */
+/* $NetBSD: sigsetjmp.S,v 1.2 1996/05/12 20:25:53 mark Exp $ */
/*
* Copyright (c) 1995 Mark Brinicombe
@@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: sigsetjmp.S,v 1.1 1996/05/01 12:51:21 deraadt Exp $
+ * $Id: sigsetjmp.S,v 1.2 1996/05/22 11:39:18 deraadt Exp $
*/
# include "DEFS.h"
diff --git a/lib/libc/arch/arm32/sys/Ovfork.S b/lib/libc/arch/arm32/sys/Ovfork.S
index 603e3081017..2de02ce8131 100644
--- a/lib/libc/arch/arm32/sys/Ovfork.S
+++ b/lib/libc/arch/arm32/sys/Ovfork.S
@@ -1,12 +1,9 @@
-/* $NetBSD: Ovfork.S,v 1.1 1996/02/16 20:48:40 mark Exp $ */
+/* $NetBSD: Ovfork.S,v 1.2 1996/05/12 19:55:00 mark Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -36,7 +33,7 @@
* SUCH DAMAGE.
*
* from: @(#)Ovfork.s 5.1 (Berkeley) 4/23/90
- * $Id: Ovfork.S,v 1.1 1996/05/01 12:51:25 deraadt Exp $
+ * $Id: Ovfork.S,v 1.2 1996/05/22 11:39:19 deraadt Exp $
*/
#include "SYS.h"
diff --git a/lib/libc/arch/arm32/sys/brk.S b/lib/libc/arch/arm32/sys/brk.S
index 7f06268fa33..b0cd2a84c48 100644
--- a/lib/libc/arch/arm32/sys/brk.S
+++ b/lib/libc/arch/arm32/sys/brk.S
@@ -1,12 +1,9 @@
-/* $NetBSD: brk.S,v 1.1 1996/02/16 20:48:42 mark Exp $ */
+/* $NetBSD: brk.S,v 1.2 1996/05/12 19:55:04 mark Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -36,7 +33,7 @@
* SUCH DAMAGE.
*
* from: @(#)brk.s 5.2 (Berkeley) 12/17/90
- * $Id: brk.S,v 1.1 1996/05/01 12:51:26 deraadt Exp $
+ * $Id: brk.S,v 1.2 1996/05/22 11:39:19 deraadt Exp $
*/
#include "SYS.h"
diff --git a/lib/libc/arch/arm32/sys/cerror.S b/lib/libc/arch/arm32/sys/cerror.S
index 3ea8da0e37d..42c34cfea3f 100644
--- a/lib/libc/arch/arm32/sys/cerror.S
+++ b/lib/libc/arch/arm32/sys/cerror.S
@@ -1,12 +1,9 @@
-/* $NetBSD: cerror.S,v 1.1 1996/02/16 20:48:43 mark Exp $ */
+/* $NetBSD: cerror.S,v 1.2 1996/05/12 19:55:06 mark Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -36,7 +33,7 @@
* SUCH DAMAGE.
*
* from: @(#)cerror.s 5.1 (Berkeley) 4/23/90
- * $Id: cerror.S,v 1.1 1996/05/01 12:51:27 deraadt Exp $
+ * $Id: cerror.S,v 1.2 1996/05/22 11:39:20 deraadt Exp $
*/
#include "SYS.h"
diff --git a/lib/libc/arch/arm32/sys/exect.S b/lib/libc/arch/arm32/sys/exect.S
index 524a322ee39..6bb73886043 100644
--- a/lib/libc/arch/arm32/sys/exect.S
+++ b/lib/libc/arch/arm32/sys/exect.S
@@ -1,12 +1,9 @@
-/* $NetBSD: exect.S,v 1.1 1996/02/16 20:48:46 mark Exp $ */
+/* $NetBSD: exect.S,v 1.2 1996/05/12 19:55:09 mark Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -36,7 +33,7 @@
* SUCH DAMAGE.
*
* from: @(#)exect.s 5.1 (Berkeley) 4/23/90
- * $Id: exect.S,v 1.1 1996/05/01 12:51:28 deraadt Exp $
+ * $Id: exect.S,v 1.2 1996/05/22 11:39:20 deraadt Exp $
*/
#include "SYS.h"
diff --git a/lib/libc/arch/arm32/sys/fork.S b/lib/libc/arch/arm32/sys/fork.S
index d96ab0b01e1..56f4d9473ab 100644
--- a/lib/libc/arch/arm32/sys/fork.S
+++ b/lib/libc/arch/arm32/sys/fork.S
@@ -1,12 +1,9 @@
-/* $NetBSD: fork.S,v 1.1 1996/02/16 20:48:48 mark Exp $ */
+/* $NetBSD: fork.S,v 1.2 1996/05/12 19:55:11 mark Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -36,7 +33,7 @@
* SUCH DAMAGE.
*
* from: @(#)fork.s 5.1 (Berkeley) 4/23/90
- * $Id: fork.S,v 1.1 1996/05/01 12:51:28 deraadt Exp $
+ * $Id: fork.S,v 1.2 1996/05/22 11:39:21 deraadt Exp $
*/
#include "SYS.h"
diff --git a/lib/libc/arch/arm32/sys/pipe.S b/lib/libc/arch/arm32/sys/pipe.S
index 37ac9c633a5..90e421a593c 100644
--- a/lib/libc/arch/arm32/sys/pipe.S
+++ b/lib/libc/arch/arm32/sys/pipe.S
@@ -1,12 +1,9 @@
-/* $NetBSD: pipe.S,v 1.1 1996/02/16 20:48:51 mark Exp $ */
+/* $NetBSD: pipe.S,v 1.2 1996/05/12 19:55:16 mark Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -36,7 +33,7 @@
* SUCH DAMAGE.
*
* from: @(#)pipe.s 5.1 (Berkeley) 4/23/90
- * $Id: pipe.S,v 1.1 1996/05/01 12:51:29 deraadt Exp $
+ * $Id: pipe.S,v 1.2 1996/05/22 11:39:21 deraadt Exp $
*/
#include "SYS.h"
diff --git a/lib/libc/arch/arm32/sys/ptrace.S b/lib/libc/arch/arm32/sys/ptrace.S
index ce18ec87ab9..43b0a0b1812 100644
--- a/lib/libc/arch/arm32/sys/ptrace.S
+++ b/lib/libc/arch/arm32/sys/ptrace.S
@@ -1,12 +1,9 @@
-/* $NetBSD: ptrace.S,v 1.1 1996/02/16 20:48:52 mark Exp $
+/* $NetBSD: ptrace.S,v 1.2 1996/05/12 19:55:19 mark Exp $
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -36,7 +33,7 @@
* SUCH DAMAGE.
*
* from: @(#)ptrace.s 5.1 (Berkeley) 4/23/90
- * $Id: ptrace.S,v 1.1 1996/05/01 12:51:30 deraadt Exp $
+ * $Id: ptrace.S,v 1.2 1996/05/22 11:39:22 deraadt Exp $
*/
#include "SYS.h"
diff --git a/lib/libc/arch/arm32/sys/reboot.S b/lib/libc/arch/arm32/sys/reboot.S
index ee92ac919f8..b4254708254 100644
--- a/lib/libc/arch/arm32/sys/reboot.S
+++ b/lib/libc/arch/arm32/sys/reboot.S
@@ -1,12 +1,9 @@
-/* $NetBSD: reboot.S,v 1.1 1996/02/16 20:48:54 mark Exp $ */
+/* $NetBSD: reboot.S,v 1.2 1996/05/12 19:55:21 mark Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -36,7 +33,7 @@
* SUCH DAMAGE.
*
* from: @(#)reboot.s 5.1 (Berkeley) 4/23/90
- * $Id: reboot.S,v 1.1 1996/05/01 12:51:31 deraadt Exp $
+ * $Id: reboot.S,v 1.2 1996/05/22 11:39:22 deraadt Exp $
*/
#include "SYS.h"
diff --git a/lib/libc/arch/arm32/sys/sbrk.S b/lib/libc/arch/arm32/sys/sbrk.S
index e55a251620b..562b6e6be76 100644
--- a/lib/libc/arch/arm32/sys/sbrk.S
+++ b/lib/libc/arch/arm32/sys/sbrk.S
@@ -1,12 +1,9 @@
-/* $NetBSD: sbrk.S,v 1.1 1996/02/16 20:48:57 mark Exp $ */
+/* $NetBSD: sbrk.S,v 1.2 1996/05/12 19:55:24 mark Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -36,7 +33,7 @@
* SUCH DAMAGE.
*
* from: @(#)sbrk.s 5.1 (Berkeley) 4/23/90
- * $Id: sbrk.S,v 1.1 1996/05/01 12:51:31 deraadt Exp $
+ * $Id: sbrk.S,v 1.2 1996/05/22 11:39:23 deraadt Exp $
*/
#include "SYS.h"
diff --git a/lib/libc/arch/arm32/sys/setlogin.S b/lib/libc/arch/arm32/sys/setlogin.S
index 739bbbe0e3a..4ac3c76dc60 100644
--- a/lib/libc/arch/arm32/sys/setlogin.S
+++ b/lib/libc/arch/arm32/sys/setlogin.S
@@ -1,12 +1,9 @@
-/* $NetBSD: setlogin.S,v 1.1 1996/02/16 20:49:00 mark Exp $ */
+/* $NetBSD: setlogin.S,v 1.2 1996/05/12 19:55:27 mark Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
* All rights reserved.
*
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -36,7 +33,7 @@
* SUCH DAMAGE.
*
* from: @(#)setlogin.s 5.2 (Berkeley) 4/12/91
- * $Id: setlogin.S,v 1.1 1996/05/01 12:51:32 deraadt Exp $
+ * $Id: setlogin.S,v 1.2 1996/05/22 11:39:23 deraadt Exp $
*/
#include "SYS.h"
diff --git a/lib/libc/arch/arm32/sys/sigpending.S b/lib/libc/arch/arm32/sys/sigpending.S
index 70f7740920f..b5769de2ba6 100644
--- a/lib/libc/arch/arm32/sys/sigpending.S
+++ b/lib/libc/arch/arm32/sys/sigpending.S
@@ -1,12 +1,9 @@
-/* $NetBSD: sigpending.S,v 1.1 1996/02/16 20:49:02 mark Exp $ */
+/* $NetBSD: sigpending.S,v 1.2 1996/05/12 19:55:30 mark Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -36,7 +33,7 @@
* SUCH DAMAGE.
*
* from: @(#)sigpending.s 5.1 (Berkeley) 7/1/90
- * $Id: sigpending.S,v 1.1 1996/05/01 12:51:33 deraadt Exp $
+ * $Id: sigpending.S,v 1.2 1996/05/22 11:39:23 deraadt Exp $
*/
#include "SYS.h"
diff --git a/lib/libc/arch/arm32/sys/sigprocmask.S b/lib/libc/arch/arm32/sys/sigprocmask.S
index 7fc4535e35d..1f243a4c6cd 100644
--- a/lib/libc/arch/arm32/sys/sigprocmask.S
+++ b/lib/libc/arch/arm32/sys/sigprocmask.S
@@ -1,12 +1,9 @@
-/* $NetBSD: sigprocmask.S,v 1.1 1996/02/16 20:49:04 mark Exp $ */
+/* $NetBSD: sigprocmask.S,v 1.2 1996/05/12 19:55:33 mark Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -36,7 +33,7 @@
* SUCH DAMAGE.
*
* from: @(#)sigprocmask.s 5.2 (Berkeley) 12/17/90
- * $Id: sigprocmask.S,v 1.1 1996/05/01 12:51:33 deraadt Exp $
+ * $Id: sigprocmask.S,v 1.2 1996/05/22 11:39:24 deraadt Exp $
*/
#include "SYS.h"
diff --git a/lib/libc/arch/arm32/sys/sigreturn.S b/lib/libc/arch/arm32/sys/sigreturn.S
index f19ec3ad3e2..0a001013e30 100644
--- a/lib/libc/arch/arm32/sys/sigreturn.S
+++ b/lib/libc/arch/arm32/sys/sigreturn.S
@@ -1,12 +1,9 @@
-/* $NetBSD: sigreturn.S,v 1.1 1996/02/16 20:49:10 mark Exp $ */
+/* $NetBSD: sigreturn.S,v 1.2 1996/05/12 19:55:35 mark Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -36,7 +33,7 @@
* SUCH DAMAGE.
*
* from: @(#)sigreturn.s 5.2 (Berkeley) 12/17/90"
- * $Id: sigreturn.S,v 1.1 1996/05/01 12:51:34 deraadt Exp $
+ * $Id: sigreturn.S,v 1.2 1996/05/22 11:39:24 deraadt Exp $
*/
#include "SYS.h"
diff --git a/lib/libc/arch/arm32/sys/sigsuspend.S b/lib/libc/arch/arm32/sys/sigsuspend.S
index 917a0d851d7..750eb6f4bde 100644
--- a/lib/libc/arch/arm32/sys/sigsuspend.S
+++ b/lib/libc/arch/arm32/sys/sigsuspend.S
@@ -1,12 +1,9 @@
-/* $NetBSD: sigsuspend.S,v 1.1 1996/02/16 20:49:13 mark Exp $ */
+/* $NetBSD: sigsuspend.S,v 1.2 1996/05/12 19:55:38 mark Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -36,7 +33,7 @@
* SUCH DAMAGE.
*
* from: @(#)sigsuspend.s 5.2 (Berkeley) 12/17/90
- * $Id: sigsuspend.S,v 1.1 1996/05/01 12:51:35 deraadt Exp $
+ * $Id: sigsuspend.S,v 1.2 1996/05/22 11:39:25 deraadt Exp $
*/
#include "SYS.h"
diff --git a/lib/libc/arch/arm32/sys/syscall.S b/lib/libc/arch/arm32/sys/syscall.S
index 4a2fcbb5339..54722080ac5 100644
--- a/lib/libc/arch/arm32/sys/syscall.S
+++ b/lib/libc/arch/arm32/sys/syscall.S
@@ -1,12 +1,9 @@
-/* $NetBSD: syscall.S,v 1.1 1996/02/16 20:49:16 mark Exp $ */
+/* $NetBSD: syscall.S,v 1.2 1996/05/12 19:55:44 mark Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -36,7 +33,7 @@
* SUCH DAMAGE.
*
* from: @(#)syscall.s 5.1 (Berkeley) 4/23/90
- * $Id: syscall.S,v 1.1 1996/05/01 12:51:35 deraadt Exp $
+ * $Id: syscall.S,v 1.2 1996/05/22 11:39:25 deraadt Exp $
*/
#include "SYS.h"