date and time created 86/08/01 08:49:31 by sam
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Fri, 1 Aug 1986 23:49:31 +0000 (15:49 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Fri, 1 Aug 1986 23:49:31 +0000 (15:49 -0800)
SCCS-vsn: lib/libc/tahoe/gen/abort.s 1.1
SCCS-vsn: lib/libc/tahoe/stdlib/abs.s 1.1

usr/src/lib/libc/tahoe/gen/abort.s [new file with mode: 0644]
usr/src/lib/libc/tahoe/stdlib/abs.s [new file with mode: 0644]

diff --git a/usr/src/lib/libc/tahoe/gen/abort.s b/usr/src/lib/libc/tahoe/gen/abort.s
new file mode 100644 (file)
index 0000000..30fd0cc
--- /dev/null
@@ -0,0 +1,12 @@
+#ifdef LIBC_SCCS
+       .asciz  "@(#)abort.s    1.1 (Berkeley/CCI) %G%"
+#endif LIBC_SCCS
+
+/* C library -- abort */
+
+#include "DEFS.h"
+
+ENTRY(abort, 0)
+       rei
+       clrl    r0
+       ret
diff --git a/usr/src/lib/libc/tahoe/stdlib/abs.s b/usr/src/lib/libc/tahoe/stdlib/abs.s
new file mode 100644 (file)
index 0000000..782b63c
--- /dev/null
@@ -0,0 +1,14 @@
+#ifdef LIBC_SCCS
+       .asciz  "@(#)abs.s      1.1 (Berkeley/CCI) %G%"
+#endif LIBC_SCCS
+
+/* abs - int absolute value */
+
+#include "DEFS.h"
+
+ENTRY(abs, 0)
+       movl    4(fp),r0
+       bgeq    1f
+       mnegl   r0,r0
+1:
+       ret