diff options
author | garbled <garbled> | 2005-03-03 08:53:06 +0000 |
---|---|---|
committer | garbled <garbled> | 2005-03-03 08:53:06 +0000 |
commit | a8eb9d197818bbde084bcc42f401b14ac8becaaa (patch) | |
tree | 1426d8926ecfcba8e6322a9f829fce896e02e552 /benchmarks/hbench/patches/patch-am | |
parent | 4715809bf447898e65e6191509cbbc22c306097a (diff) | |
download | pkgsrc-a8eb9d197818bbde084bcc42f401b14ac8becaaa.tar.gz |
Add patches in PR pkg/17941 from David Laight. Mostly performance
boosts, and a core dump fix. Bumping rev to 2.
Diffstat (limited to 'benchmarks/hbench/patches/patch-am')
-rw-r--r-- | benchmarks/hbench/patches/patch-am | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/benchmarks/hbench/patches/patch-am b/benchmarks/hbench/patches/patch-am new file mode 100644 index 00000000000..71c6f4a5e35 --- /dev/null +++ b/benchmarks/hbench/patches/patch-am @@ -0,0 +1,14 @@ +# $NetBSD: patch-am,v 1.1 2005/03/03 08:53:06 garbled Exp $ +--- ./src/lat_fs.c Fri Jun 27 01:34:38 1997 ++++ work/hbench-OS/src/lat_fs.c Wed Aug 14 12:48:11 2002 +@@ -229,8 +229,8 @@ + if (deldir == DEL_REVERSE) { + for (i = 0; i < (num_iter +1)/2; i++) { + /* swap(filenames[i],filenames[numfiles - i]); */ +- tmp = filenames[num_iter - i]; +- filenames[num_iter - i] = filenames[i]; ++ tmp = filenames[num_iter - 1 - i]; ++ filenames[num_iter - 1 - i] = filenames[i]; + filenames[i] = tmp; + } + } else if (deldir == DEL_PSEUDORANDOM) { |