summaryrefslogtreecommitdiff
path: root/tests/devel
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2001-12-25 03:41:02 +0100
committertege <tege@gmplib.org>2001-12-25 03:41:02 +0100
commitc2ebf186e639660cf8b38ff6c35d4859f91572ef (patch)
treeee5ba68e81c34d4eb4fb0f3fe43b16b47a6dbf44 /tests/devel
parent80264f2e850bf16ad971c81d5af750bb5cb34666 (diff)
downloadgmp-c2ebf186e639660cf8b38ff6c35d4859f91572ef.tar.gz
Remove CLOCK settings.
Diffstat (limited to 'tests/devel')
-rw-r--r--tests/devel/add_n.c20
-rw-r--r--tests/devel/copy.c20
-rw-r--r--tests/devel/lshift.c27
-rw-r--r--tests/devel/rshift.c27
-rw-r--r--tests/devel/sub_n.c20
5 files changed, 8 insertions, 106 deletions
diff --git a/tests/devel/add_n.c b/tests/devel/add_n.c
index 80b89b32a..e0dda7a9a 100644
--- a/tests/devel/add_n.c
+++ b/tests/devel/add_n.c
@@ -51,28 +51,8 @@ cputime ()
#define M * 1000000
#ifndef CLOCK
-#if defined (__m88k__)
-#define CLOCK 20 M
-#elif defined (__i386__)
-#define CLOCK (16666667)
-#elif defined (__m68k__)
-#define CLOCK (20 M)
-#elif defined (_IBMR2)
-#define CLOCK (25 M)
-#elif defined (__sparc__)
-#define CLOCK (20 M)
-#elif defined (__sun__)
-#define CLOCK (20 M)
-#elif defined (__mips)
-#define CLOCK (40 M)
-#elif defined (__hppa__)
-#define CLOCK (50 M)
-#elif defined (__alpha)
-#define CLOCK (133 M)
-#else
#error "Don't know CLOCK of your machine"
#endif
-#endif
#ifndef OPS
#define OPS (CLOCK/5)
diff --git a/tests/devel/copy.c b/tests/devel/copy.c
index 69462b0c8..d4defde48 100644
--- a/tests/devel/copy.c
+++ b/tests/devel/copy.c
@@ -51,28 +51,8 @@ cputime ()
#define M * 1000000
#ifndef CLOCK
-#if defined (__m88k__)
-#define CLOCK 20 M
-#elif defined (__i386__)
-#define CLOCK (16666667)
-#elif defined (__m68k__)
-#define CLOCK (20 M)
-#elif defined (_IBMR2)
-#define CLOCK (25 M)
-#elif defined (__sparc__)
-#define CLOCK (20 M)
-#elif defined (__sun__)
-#define CLOCK (20 M)
-#elif defined (__mips)
-#define CLOCK (40 M)
-#elif defined (__hppa__)
-#define CLOCK (50 M)
-#elif defined (__alpha)
-#define CLOCK (133 M)
-#else
#error "Don't know CLOCK of your machine"
#endif
-#endif
#ifndef OPS
#define OPS (CLOCK/2)
diff --git a/tests/devel/lshift.c b/tests/devel/lshift.c
index 24c340f5b..262122122 100644
--- a/tests/devel/lshift.c
+++ b/tests/devel/lshift.c
@@ -51,28 +51,8 @@ cputime ()
#define M * 1000000
#ifndef CLOCK
-#if defined (__m88k__)
-#define CLOCK 20 M
-#elif defined (__i386__)
-#define CLOCK (16666667)
-#elif defined (__m68k__)
-#define CLOCK (20 M)
-#elif defined (_IBMR2)
-#define CLOCK (25 M)
-#elif defined (__sparc__)
-#define CLOCK (20 M)
-#elif defined (__sun__)
-#define CLOCK (20 M)
-#elif defined (__mips)
-#define CLOCK (40 M)
-#elif defined (__hppa__)
-#define CLOCK (50 M)
-#elif defined (__alpha)
-#define CLOCK (133 M)
-#else
#error "Don't know CLOCK of your machine"
#endif
-#endif
#ifndef OPS
#define OPS (CLOCK/5)
@@ -231,11 +211,12 @@ main (argc, argv)
printf ("%*lX ", (int) (2 * sizeof(mp_limb_t)), cyy);
mpn_print (dy+1, size);
#endif
- printf ("TEST NUMBER %d\n", test);
- if (dy[size+1] != 0x12345678)
- printf ("clobbered at high end\n");
+ printf ("\n");
if (dy[0] != 0x87654321)
printf ("clobbered at low end\n");
+ if (dy[size+1] != 0x12345678)
+ printf ("clobbered at high end\n");
+ printf ("TEST NUMBER %u\n", test);
abort();
}
#endif
diff --git a/tests/devel/rshift.c b/tests/devel/rshift.c
index 828df99a0..87dfaa5d2 100644
--- a/tests/devel/rshift.c
+++ b/tests/devel/rshift.c
@@ -51,28 +51,8 @@ cputime ()
#define M * 1000000
#ifndef CLOCK
-#if defined (__m88k__)
-#define CLOCK 20 M
-#elif defined (__i386__)
-#define CLOCK (16666667)
-#elif defined (__m68k__)
-#define CLOCK (20 M)
-#elif defined (_IBMR2)
-#define CLOCK (25 M)
-#elif defined (__sparc__)
-#define CLOCK (20 M)
-#elif defined (__sun__)
-#define CLOCK (20 M)
-#elif defined (__mips)
-#define CLOCK (40 M)
-#elif defined (__hppa__)
-#define CLOCK (50 M)
-#elif defined (__alpha)
-#define CLOCK (133 M)
-#else
#error "Don't know CLOCK of your machine"
#endif
-#endif
#ifndef OPS
#define OPS (CLOCK/5)
@@ -232,11 +212,12 @@ main (argc, argv)
printf ("%*lX ", (int) (2 * sizeof(mp_limb_t)), cyy);
mpn_print (dy+1, size);
#endif
- printf ("TEST NUMBER %d\n", test);
- if (dy[size+1] != 0x12345678)
- printf ("clobbered at high end\n");
+ printf ("\n");
if (dy[0] != 0x87654321)
printf ("clobbered at low end\n");
+ if (dy[size+1] != 0x12345678)
+ printf ("clobbered at high end\n");
+ printf ("TEST NUMBER %u\n", test);
abort();
}
#endif
diff --git a/tests/devel/sub_n.c b/tests/devel/sub_n.c
index 228b0d168..e86b82296 100644
--- a/tests/devel/sub_n.c
+++ b/tests/devel/sub_n.c
@@ -51,28 +51,8 @@ cputime ()
#define M * 1000000
#ifndef CLOCK
-#if defined (__m88k__)
-#define CLOCK 20 M
-#elif defined (__i386__)
-#define CLOCK (16666667)
-#elif defined (__m68k__)
-#define CLOCK (20 M)
-#elif defined (_IBMR2)
-#define CLOCK (25 M)
-#elif defined (__sparc__)
-#define CLOCK (20 M)
-#elif defined (__sun__)
-#define CLOCK (20 M)
-#elif defined (__mips)
-#define CLOCK (40 M)
-#elif defined (__hppa__)
-#define CLOCK (50 M)
-#elif defined (__alpha)
-#define CLOCK (133 M)
-#else
#error "Don't know CLOCK of your machine"
#endif
-#endif
#ifndef OPS
#define OPS (CLOCK/5)