diff options
Diffstat (limited to 'print/ghostscript/patches/patch-ap')
-rw-r--r-- | print/ghostscript/patches/patch-ap | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/print/ghostscript/patches/patch-ap b/print/ghostscript/patches/patch-ap new file mode 100644 index 00000000000..43703594d52 --- /dev/null +++ b/print/ghostscript/patches/patch-ap @@ -0,0 +1,36 @@ +$NetBSD: patch-ap,v 1.1 2005/12/09 20:30:16 wiz 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); + } + |