Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/vax/gen Go via *__errno() here, too.
details: https://anonhg.NetBSD.org/src/rev/eefac4ce315f
branches: trunk
changeset: 481774:eefac4ce315f
user: kleink <kleink%NetBSD.org@localhost>
date: Sat Feb 05 19:53:54 2000 +0000
description:
Go via *__errno() here, too.
diffstat:
lib/libc/arch/vax/gen/ldexp.S | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r f2bac72be8bc -r eefac4ce315f lib/libc/arch/vax/gen/ldexp.S
--- a/lib/libc/arch/vax/gen/ldexp.S Sat Feb 05 19:50:24 2000 +0000
+++ b/lib/libc/arch/vax/gen/ldexp.S Sat Feb 05 19:53:54 2000 +0000
@@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*.asciz "@(#)ldexp.s 8.1 (Berkeley) 6/4/93" */
- .asciz "$NetBSD: ldexp.S,v 1.2 1995/06/01 01:11:41 ragge Exp $"
+ .asciz "$NetBSD: ldexp.S,v 1.3 2000/02/05 19:53:54 kleink Exp $"
#endif /* LIBC_SCCS and not lint */
/*
@@ -80,7 +80,14 @@
jbc $15,4(ap),1f /* jump if argument was positive */
mnegd r0,r0 /* if arg < 0, make result negative */
1:
+#ifdef _REENTRANT
+ pushl r0
+ calls $0,___errno
+ movl $ ERANGE,(r0)
+ movl (sp)+,r0
+#else
movl $ ERANGE,_errno
+#endif
ret
.data
Home |
Main Index |
Thread Index |
Old Index