[llvm-commits] [test-suite] r105420 - in /test-suite/trunk/MultiSource/Benchmarks/Olden/health: health.c health.h poisson.c
Jakob Stoklund Olesen
stoklund at 2pi.dk
Thu Jun 3 14:56:45 PDT 2010
Author: stoklund
Date: Thu Jun 3 16:56:45 2010
New Revision: 105420
URL: http://llvm.org/viewvc/llvm-project?rev=105420&view=rev
Log:
Avoid depending on sizeof(long)
Modified:
test-suite/trunk/MultiSource/Benchmarks/Olden/health/health.c
test-suite/trunk/MultiSource/Benchmarks/Olden/health/health.h
test-suite/trunk/MultiSource/Benchmarks/Olden/health/poisson.c
Modified: test-suite/trunk/MultiSource/Benchmarks/Olden/health/health.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Olden/health/health.c?rev=105420&r1=105419&r2=105420&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Olden/health/health.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Olden/health/health.c Thu Jun 3 16:56:45 2010
@@ -118,7 +118,7 @@
float rand;
struct Patient *p;
struct List *up = NULL;
- long s;
+ long long s;
int label, t;
while (list != NULL) {
@@ -193,7 +193,7 @@
struct Patient *generate_patient(struct Village *village)
{
- long s,newseed;
+ long long s,newseed;
struct Patient *patient;
float rand;
int label;
Modified: test-suite/trunk/MultiSource/Benchmarks/Olden/health/health.h
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Olden/health/health.h?rev=105420&r1=105419&r2=105420&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Olden/health/health.h (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Olden/health/health.h Thu Jun 3 16:56:45 2010
@@ -69,7 +69,7 @@
struct List returned;
struct Hosp hosp;
int label;
- long seed;
+ long long seed;
#else
struct Hosp hosp;
long seed;
@@ -82,7 +82,7 @@
struct Village *alloc_tree(int level, int label, struct Village *back);
void dealwithargs(int argc, char *argv[]);
-float my_rand(long idum);
+float my_rand(long long idum);
struct Patient *generate_patient(struct Village *village);
void put_in_hosp(struct Hosp *hosp, struct Patient *patient);
void addList(struct List *list, struct Patient *patient);
Modified: test-suite/trunk/MultiSource/Benchmarks/Olden/health/poisson.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Olden/health/poisson.c?rev=105420&r1=105419&r2=105420&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Olden/health/poisson.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Olden/health/poisson.c Thu Jun 3 16:56:45 2010
@@ -8,9 +8,9 @@
#include <math.h>
#include "health.h"
-float my_rand(long idum)
+float my_rand(long long idum)
{
- long k;
+ long long k;
float answer;
idum ^= MASK;
More information about the llvm-commits
mailing list