[llvm-commits] CVS: llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/heapsort.cpp

John Criswell criswell at cs.uiuc.edu
Tue Dec 9 11:06:01 PST 2003


Changes in directory llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++:

heapsort.cpp updated: 1.1 -> 1.2

---
Log message:

Increased the default number of elements to 10.  This matches the C
version, and prevents heapsort from segfaulting.



---
Diffs of the changes:  (+2 -2)

Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/heapsort.cpp
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/heapsort.cpp:1.1 llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/heapsort.cpp:1.2
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/heapsort.cpp:1.1	Mon Oct  6 20:11:33 2003
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/heapsort.cpp	Tue Dec  9 11:05:38 2003
@@ -1,5 +1,5 @@
 // -*- mode: c++ -*-
-// $Id: heapsort.cpp,v 1.1 2003/10/07 01:11:33 lattner Exp $
+// $Id: heapsort.cpp,v 1.2 2003/12/09 17:05:38 criswell Exp $
 // http://www.bagley.org/~doug/shootout/
 
 #include <iostream>
@@ -53,7 +53,7 @@
 
 int
 main(int argc, char *argv[]) {
-    int N = ((argc == 2) ? atoi(argv[1]) : 1);
+    int N = ((argc == 2) ? atoi(argv[1]) : 10);
     double *ary;
     int i;
     





More information about the llvm-commits mailing list