[llvm-commits] [test-suite] r109902 - in /test-suite/trunk/MultiSource/Benchmarks/Olden/health: health.c health.h
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri Jul 30 15:53:47 PDT 2010
Author: stoklund
Date: Fri Jul 30 17:53:47 2010
New Revision: 109902
URL: http://llvm.org/viewvc/llvm-project?rev=109902&view=rev
Log:
Remove a few more dependencies on sizeof(long).
Modified:
test-suite/trunk/MultiSource/Benchmarks/Olden/health/health.c
test-suite/trunk/MultiSource/Benchmarks/Olden/health/health.h
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=109902&r1=109901&r2=109902&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Olden/health/health.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Olden/health/health.c Fri Jul 30 17:53:47 2010
@@ -11,7 +11,8 @@
#include <assert.h>
int max_level;
-long max_time, seed;
+long max_time;
+long long seed;
struct Village *alloc_tree(int level, int label, struct Village *back) {
if (level == 0)
@@ -129,7 +130,7 @@
if (p->time_left == 0) {
s = village->seed;
rand = my_rand(s);
- village->seed = (long)(rand * IM);
+ village->seed = (long long)(rand * IM);
label = village->label;
if (rand > 0.1 || label == 0) {
removeList(&village->hosp.assess, p);
@@ -200,7 +201,7 @@
s = village->seed;
rand = my_rand(s);
- village->seed = (long)(rand * IM);
+ village->seed = (long long)(rand * IM);
newseed = village->seed;
label = village->label;
if (rand > 0.666) {
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=109902&r1=109901&r2=109902&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Olden/health/health.h (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Olden/health/health.h Fri Jul 30 17:53:47 2010
@@ -21,7 +21,8 @@
#define MASK 123459876
extern int max_level;
-extern long max_time, seed;
+extern long max_time;
+extern long long seed;
struct Results {
float total_patients;
More information about the llvm-commits
mailing list