Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/ns32k/stdlib (Re-)use the assembly version for...



details:   https://anonhg.NetBSD.org/src/rev/d7f168ee90ef
branches:  trunk
changeset: 481805:d7f168ee90ef
user:      kleink <kleink%NetBSD.org@localhost>
date:      Sun Feb 06 13:14:51 2000 +0000

description:
(Re-)use the assembly version for labs() as well.

diffstat:

 lib/libc/arch/ns32k/stdlib/Makefile.inc |   6 +++---
 lib/libc/arch/ns32k/stdlib/labs.S       |  32 ++++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+), 3 deletions(-)

diffs (50 lines):

diff -r cbdd852910f9 -r d7f168ee90ef lib/libc/arch/ns32k/stdlib/Makefile.inc
--- a/lib/libc/arch/ns32k/stdlib/Makefile.inc   Sun Feb 06 13:13:20 2000 +0000
+++ b/lib/libc/arch/ns32k/stdlib/Makefile.inc   Sun Feb 06 13:14:51 2000 +0000
@@ -1,7 +1,7 @@
-#      $NetBSD: Makefile.inc,v 1.2 1997/12/07 00:19:36 matthias Exp $
+#      $NetBSD: Makefile.inc,v 1.3 2000/02/06 13:14:51 kleink Exp $
 
 # objects built from assembler sources (need lint stubs)
-ASSRCS+=abs.S
+ASSRCS+=abs.S labs.S
 
 # objects built from C sources
-SRCS+= div.c labs.c ldiv.c
+SRCS+= div.c ldiv.c
diff -r cbdd852910f9 -r d7f168ee90ef lib/libc/arch/ns32k/stdlib/labs.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/arch/ns32k/stdlib/labs.S Sun Feb 06 13:14:51 2000 +0000
@@ -0,0 +1,32 @@
+/*     $NetBSD: labs.S,v 1.1 2000/02/06 13:14:51 kleink Exp $  */
+
+/* 
+ * Copyright (c) 1992 Helsinki University of Technology
+ * All Rights Reserved.
+ * 
+ * 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.
+ * 
+ * HELSINKI UNIVERSITY OF TECHNOLOGY ALLOWS FREE USE OF THIS SOFTWARE IN
+ * ITS "AS IS" CONDITION. HELSINKI UNIVERSITY OF TECHNOLOGY DISCLAIMS ANY
+ * LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
+ * USE OF THIS SOFTWARE.
+ */
+/*
+ * HISTORY
+ * 29-Apr-92  Johannes Helander (jvh) at Helsinki University of Technology
+ *     Created.
+ */
+
+#include <machine/asm.h>
+
+#if defined(LIBC_SCCS)
+       RCSID("$NetBSD: labs.S,v 1.1 2000/02/06 13:14:51 kleink Exp $")
+#endif
+
+ENTRY(labs)
+       absd    S_ARG0,r0
+       ret 0



Home | Main Index | Thread Index | Old Index