diff options
author | Michael McConville <mmcc@cvs.openbsd.org> | 2016-03-26 01:24:09 +0000 |
---|---|---|
committer | Michael McConville <mmcc@cvs.openbsd.org> | 2016-03-26 01:24:09 +0000 |
commit | fc35eafdd9e7401708128db5e9c3db8bd4defb99 (patch) | |
tree | 42dbee450541bc90ad3f5dbed4a7e5352f76ab15 /lib/libc/quad | |
parent | 430580c6870ab387b24cd606abe550fc459ad76f (diff) |
remove some unused ancient test files from 4.4 BSD
ok guenther@, millert@, deraadt@
Diffstat (limited to 'lib/libc/quad')
-rw-r--r-- | lib/libc/quad/TESTS/Makefile | 11 | ||||
-rw-r--r-- | lib/libc/quad/TESTS/divrem.c | 67 | ||||
-rw-r--r-- | lib/libc/quad/TESTS/mul.c | 62 |
3 files changed, 0 insertions, 140 deletions
diff --git a/lib/libc/quad/TESTS/Makefile b/lib/libc/quad/TESTS/Makefile deleted file mode 100644 index 4c5f5819ca0..00000000000 --- a/lib/libc/quad/TESTS/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $OpenBSD: Makefile,v 1.2 1996/08/19 08:30:55 tholo Exp $ - -all: mul divrem - -MUL= mul.c ../muldi3.c -mul: ${MUL} - gcc -g -DSPARC_XXX ${MUL} -o $@ - -DIVREM= divrem.c ../qdivrem.c -divrem: ${DIVREM} - gcc -g -DSPARC_XXX ${DIVREM} -o $@ diff --git a/lib/libc/quad/TESTS/divrem.c b/lib/libc/quad/TESTS/divrem.c deleted file mode 100644 index 34f357899d3..00000000000 --- a/lib/libc/quad/TESTS/divrem.c +++ /dev/null @@ -1,67 +0,0 @@ -/* $OpenBSD: divrem.c,v 1.5 2005/08/08 08:05:35 espie 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. 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. - */ - - -#include <stdio.h> - -int -main() -{ - union { long long q; unsigned int v[2]; } a, b, q, r; - char buf[300]; - extern long long __qdivrem(unsigned long long, unsigned long long, - unsigned long long *); - - for (;;) { - printf("> "); - if (fgets(buf, sizeof buf, stdin) == NULL) - break; - if (sscanf(buf, "%u:%u %u:%u", - &a.v[0], &a.v[1], &b.v[0], &b.v[1]) != 4 && - sscanf(buf, "0x%x:%x 0x%x:%x", - &a.v[0], &a.v[1], &b.v[0], &b.v[1]) != 4) { - printf("eh?\n"); - continue; - } - q.q = __qdivrem(a.q, b.q, &r.q); - printf("%x:%x /%% %x:%x => q=%x:%x r=%x:%x\n", - a.v[0], a.v[1], b.v[0], b.v[1], - q.v[0], q.v[1], r.v[0], r.v[1]); - printf(" = %X%08X / %X%08X => %X%08X\n\ - = %X%08X %% %X%08X => %X%08X\n", - a.v[0], a.v[1], b.v[0], b.v[1], q.v[0], q.v[1], - a.v[0], a.v[1], b.v[0], b.v[1], r.v[0], r.v[1]); - } - exit(0); -} diff --git a/lib/libc/quad/TESTS/mul.c b/lib/libc/quad/TESTS/mul.c deleted file mode 100644 index 70905556d7a..00000000000 --- a/lib/libc/quad/TESTS/mul.c +++ /dev/null @@ -1,62 +0,0 @@ -/* $OpenBSD: mul.c,v 1.5 2005/08/08 08:05:35 espie 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. 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. - */ - -#include <stdio.h> - -int -main() -{ - union { long long q; unsigned int v[2]; } a, b, m; - char buf[300]; - extern long long __muldi3(long long, long long); - - for (;;) { - printf("> "); - if (fgets(buf, sizeof buf, stdin) == NULL) - break; - if (sscanf(buf, "%u:%u %u:%u", - &a.v[0], &a.v[1], &b.v[0], &b.v[1]) != 4 && - sscanf(buf, "0x%x:%x 0x%x:%x", - &a.v[0], &a.v[1], &b.v[0], &b.v[1]) != 4) { - printf("eh?\n"); - continue; - } - m.q = __muldi3(a.q, b.q); - printf("%x:%x * %x:%x => %x:%x\n", - a.v[0], a.v[1], b.v[0], b.v[1], m.v[0], m.v[1]); - printf(" = %X%08X * %X%08X => %X%08X\n", - a.v[0], a.v[1], b.v[0], b.v[1], m.v[0], m.v[1]); - } - exit(0); -} |