[llvm-commits] [test-suite] r42658 - in /test-suite/trunk/SingleSource/Benchmarks/Misc: ReedSolomon.c flops.c mandel.c
Anton Korobeynikov
asl at math.spbu.ru
Fri Oct 5 15:50:25 PDT 2007
Author: asl
Date: Fri Oct 5 17:50:24 2007
New Revision: 42658
URL: http://llvm.org/viewvc/llvm-project?rev=42658&view=rev
Log:
Fix 'Misc' on mingw32
Modified:
test-suite/trunk/SingleSource/Benchmarks/Misc/ReedSolomon.c
test-suite/trunk/SingleSource/Benchmarks/Misc/flops.c
test-suite/trunk/SingleSource/Benchmarks/Misc/mandel.c
Modified: test-suite/trunk/SingleSource/Benchmarks/Misc/ReedSolomon.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Misc/ReedSolomon.c?rev=42658&r1=42657&r2=42658&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Misc/ReedSolomon.c (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Misc/ReedSolomon.c Fri Oct 5 17:50:24 2007
@@ -423,6 +423,10 @@
#define LENGTH 150000
#endif
+#ifdef __MINGW32__
+#define random() rand()
+#endif
+
for (i=0; i<LENGTH; ++i) {
/* Generate random data */
for (j=0; j<188; ++j) {
Modified: test-suite/trunk/SingleSource/Benchmarks/Misc/flops.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Misc/flops.c?rev=42658&r1=42657&r2=42658&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Misc/flops.c (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Misc/flops.c Fri Oct 5 17:50:24 2007
@@ -978,7 +978,7 @@
/* Another UNIX timer using gettimeofday(). */
/* However, getrusage() is preferred. */
/********************************************/
-#ifdef GTODay
+#if defined(GTODay) && !defined(__MINGW32__)
#include <sys/time.h>
struct timeval tnow;
Modified: test-suite/trunk/SingleSource/Benchmarks/Misc/mandel.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Misc/mandel.c?rev=42658&r1=42657&r2=42658&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Misc/mandel.c (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Misc/mandel.c Fri Oct 5 17:50:24 2007
@@ -18,7 +18,7 @@
#define I 1.0iF
-#if defined(__FreeBSD__) || defined(__OpenBSD__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__MINGW32__)
#include <complex.h>
#elif defined(__APPLE__)
#include <math.h>
More information about the llvm-commits
mailing list