[llvm-commits] [test-suite] r42660 - in /test-suite/trunk/MultiSource/Benchmarks: Fhourstones-3.1/Game.h Fhourstones-3.1/SearchGame.c Fhourstones/time.c

Anton Korobeynikov asl at math.spbu.ru
Fri Oct 5 16:07:16 PDT 2007


Author: asl
Date: Fri Oct  5 18:07:16 2007
New Revision: 42660

URL: http://llvm.org/viewvc/llvm-project?rev=42660&view=rev
Log:
Clean Fhoursstones: remove time-related routines, unbreak mingw32

Modified:
    test-suite/trunk/MultiSource/Benchmarks/Fhourstones-3.1/Game.h
    test-suite/trunk/MultiSource/Benchmarks/Fhourstones-3.1/SearchGame.c
    test-suite/trunk/MultiSource/Benchmarks/Fhourstones/time.c

Modified: test-suite/trunk/MultiSource/Benchmarks/Fhourstones-3.1/Game.h
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Fhourstones-3.1/Game.h?rev=42660&r1=42659&r2=42660&view=diff

==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Fhourstones-3.1/Game.h (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Fhourstones-3.1/Game.h Fri Oct  5 18:07:16 2007
@@ -42,7 +42,8 @@
 #define TOP (BOTTOM << HEIGHT)
 
 #include <sys/types.h>
-typedef u_int64_t uint64;
+#include <stdint.h>
+typedef uint64_t uint64;
 typedef int64_t int64;
 
 uint64 color[2];  // black and white bitboard

Modified: test-suite/trunk/MultiSource/Benchmarks/Fhourstones-3.1/SearchGame.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Fhourstones-3.1/SearchGame.c?rev=42660&r1=42659&r2=42660&view=diff

==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Fhourstones-3.1/SearchGame.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Fhourstones-3.1/SearchGame.c Fri Oct  5 18:07:16 2007
@@ -12,16 +12,14 @@
 
 #include "TransGame.h"
 #include <sys/time.h>
-#include <sys/resource.h>
  
 #define BOOKPLY 0  // full-width search up to this depth
 #define REPORTPLY -1
 
 uint64 millisecs()
 {
-  struct rusage rusage;
-  getrusage(RUSAGE_SELF,&rusage);
-  return rusage.ru_utime.tv_sec * 1000 + rusage.ru_utime.tv_usec / 1000;
+  static int64 Time = 0;
+  return Time++; // No time count for LLVM
 }
 
 int history[2][SIZE1];

Modified: test-suite/trunk/MultiSource/Benchmarks/Fhourstones/time.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Fhourstones/time.c?rev=42660&r1=42659&r2=42660&view=diff

==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Fhourstones/time.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Fhourstones/time.c Fri Oct  5 18:07:16 2007
@@ -3,17 +3,11 @@
 /* add more platforms if necessary */
 
 #ifdef UNIX
-#include <sys/time.h>
-#include <sys/resource.h>
 
 int64 millisecs()
 {
-  struct rusage rusage;
   static int64 Time = 0;
   return ++Time; /* DO NOT TIME FOR LLVM */
-
-  getrusage(RUSAGE_SELF,&rusage);
-  return rusage.ru_utime.tv_sec * 1000 + rusage.ru_utime.tv_usec / 1000;
 }
 
 #endif





More information about the llvm-commits mailing list