summaryrefslogtreecommitdiff
path: root/print/ghostscript-nox11/patches/patch-ap
blob: da52b2fa14ff154886ff934f737f19273e66b40e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$NetBSD: patch-ap,v 1.2 2000/05/08 05:20:54 itohy Exp $

--- src/genarch.c.orig	Thu Mar  9 03:40:41 2000
+++ src/genarch.c	Mon May  1 20:26:24 2000
@@ -194,6 +194,10 @@
 	clock_t t = 0;
 	clock_t t_eps;
 
+#if 0
+	/* This doesn't work on multi-user environments nor on
+	 * small-cache (< 1KB) machines.
+	 */
 	/*
 	 * Increase the number of repetitions until the time is
 	 * long enough to exceed the likely uncertainty.
@@ -220,7 +224,12 @@
 	    if (nreps == 0)
 		nreps = 1, t <<= 1;
 	}
+#else
+	bsize = 512;
+#endif
 	define_int(f, "ARCH_CACHE1_SIZE", bsize >> 1);
+#if 0
+	/* Same as above. */
 	/*
 	 * Do the same thing a second time for the secondary cache.
 	 */
@@ -238,6 +247,7 @@
 	    if (nreps == 0)
 		nreps = 1, t <<= 1;
 	}
+#endif
 	define_int(f, "ARCH_CACHE2_SIZE", bsize >> 1);
     }