summaryrefslogtreecommitdiffstats
path: root/perform
diff options
context:
space:
mode:
Diffstat (limited to 'perform')
-rw-r--r--perform/chunk.c8
-rw-r--r--perform/overhead.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/perform/chunk.c b/perform/chunk.c
index 9366c98..db2db14 100644
--- a/perform/chunk.c
+++ b/perform/chunk.c
@@ -371,7 +371,7 @@ main (void)
cache_size+=RM_CACHE_DELT) {
for (io_percent=RM_START; io_percent<=RM_END; io_percent+=RM_DELTA) {
io_size = MAX (1, (size_t)(CH_SIZE*io_percent));
- printf ("Rowmaj-rd %8d %8.2f", cache_size, io_percent);
+ printf ("Rowmaj-rd %8d %8.2f", (int)cache_size, io_percent);
fflush (stdout);
effic = test_rowmaj (READ, cache_size, io_size);
printf (" %8.2f\n", effic);
@@ -417,7 +417,7 @@ main (void)
cache_size+=RM_CACHE_DELT) {
for (io_percent=RM_START; io_percent<=RM_END; io_percent+=RM_DELTA) {
io_size = MAX (1, (size_t)(CH_SIZE*io_percent));
- printf ("Rowmaj-wr %8d %8.2f", cache_size, io_percent);
+ printf ("Rowmaj-wr %8d %8.2f", (int)cache_size, io_percent);
fflush (stdout);
effic = test_rowmaj (WRITE, cache_size, io_size);
printf (" %8.2f\n", effic);
@@ -462,7 +462,7 @@ main (void)
io_percent<=DIAG_END;
io_percent+=DIAG_DELTA) {
io_size = MAX (1, (size_t)(CH_SIZE*io_percent));
- printf ("Diag-rd %8d %8.2f", cache_size, io_percent);
+ printf ("Diag-rd %8d %8.2f", (int)cache_size, io_percent);
fflush (stdout);
effic = test_diag (READ, cache_size, io_size, MAX (1, io_size/2));
printf (" %8.2f\n", effic);
@@ -507,7 +507,7 @@ main (void)
io_percent<=DIAG_END;
io_percent+=DIAG_DELTA) {
io_size = MAX (1, (size_t)(CH_SIZE*io_percent));
- printf ("Diag-wr %8d %8.2f", cache_size, io_percent);
+ printf ("Diag-wr %8d %8.2f", (int)cache_size, io_percent);
fflush (stdout);
effic = test_diag (WRITE, cache_size, io_size, MAX (1, io_size/2));
printf (" %8.2f\n", effic);
diff --git a/perform/overhead.c b/perform/overhead.c
index 0723879..b0546ba 100644
--- a/perform/overhead.c
+++ b/perform/overhead.c
@@ -232,7 +232,7 @@ test(fill_t fill_style, const double splits[],
break;
case FILL_OUTWARD:
j = (cur_size[0]-i)+1;
- hs_start[0] = j%2 ? j/2 : cur_size[0]-j/2;
+ hs_start[0] = j%2 ? j/2 : (hssize_t)cur_size[0]-j/2;
break;
case FILL_RANDOM:
for (j=rand()%cur_size[0]; had[j]; j=(j+1)%cur_size[0]) /*void*/;