projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
configure: lex force off
[fio.git]
/
crc
/
test.c
diff --git
a/crc/test.c
b/crc/test.c
index dbc5653ffc14410711ed6a7df1a7d333aae0a629..213b5d5ff72939be77bd1c3ad47069b1c7feb4a9 100644
(file)
--- a/
crc/test.c
+++ b/
crc/test.c
@@
-68,7
+68,7
@@
static void t_crc64(struct test_type *t, void *buf, size_t size)
int i;
for (i = 0; i < NR_CHUNKS; i++)
int i;
for (i = 0; i < NR_CHUNKS; i++)
- fio_crc64(buf, size);
+
t->output +=
fio_crc64(buf, size);
}
static void t_crc32(struct test_type *t, void *buf, size_t size)
}
static void t_crc32(struct test_type *t, void *buf, size_t size)
@@
-76,7
+76,7
@@
static void t_crc32(struct test_type *t, void *buf, size_t size)
int i;
for (i = 0; i < NR_CHUNKS; i++)
int i;
for (i = 0; i < NR_CHUNKS; i++)
- fio_crc32(buf, size);
+
t->output +=
fio_crc32(buf, size);
}
static void t_crc32c(struct test_type *t, void *buf, size_t size)
}
static void t_crc32c(struct test_type *t, void *buf, size_t size)
@@
-84,7
+84,7
@@
static void t_crc32c(struct test_type *t, void *buf, size_t size)
int i;
for (i = 0; i < NR_CHUNKS; i++)
int i;
for (i = 0; i < NR_CHUNKS; i++)
- fio_crc32c(buf, size);
+
t->output +=
fio_crc32c(buf, size);
}
static void t_crc16(struct test_type *t, void *buf, size_t size)
}
static void t_crc16(struct test_type *t, void *buf, size_t size)
@@
-92,7
+92,7
@@
static void t_crc16(struct test_type *t, void *buf, size_t size)
int i;
for (i = 0; i < NR_CHUNKS; i++)
int i;
for (i = 0; i < NR_CHUNKS; i++)
- fio_crc16(buf, size);
+
t->output +=
fio_crc16(buf, size);
}
static void t_crc7(struct test_type *t, void *buf, size_t size)
}
static void t_crc7(struct test_type *t, void *buf, size_t size)
@@
-100,7
+100,7
@@
static void t_crc7(struct test_type *t, void *buf, size_t size)
int i;
for (i = 0; i < NR_CHUNKS; i++)
int i;
for (i = 0; i < NR_CHUNKS; i++)
- fio_crc7(buf, size);
+
t->output +=
fio_crc7(buf, size);
}
static void t_sha1(struct test_type *t, void *buf, size_t size)
}
static void t_sha1(struct test_type *t, void *buf, size_t size)
@@
-148,7
+148,7
@@
static void t_murmur3(struct test_type *t, void *buf, size_t size)
int i;
for (i = 0; i < NR_CHUNKS; i++)
int i;
for (i = 0; i < NR_CHUNKS; i++)
- murmurhash3(buf, size, 0x8989);
+
t->output +=
murmurhash3(buf, size, 0x8989);
}
static void t_jhash(struct test_type *t, void *buf, size_t size)
}
static void t_jhash(struct test_type *t, void *buf, size_t size)
@@
-306,7
+306,7
@@
int fio_crctest(const char *type)
}
buf = malloc(CHUNK);
}
buf = malloc(CHUNK);
- init_rand_seed(&state, 0x8989);
+ init_rand_seed(&state, 0x8989
, 0
);
fill_random_buf(&state, buf, CHUNK);
for (i = 0; t[i].name; i++) {
fill_random_buf(&state, buf, CHUNK);
for (i = 0; t[i].name; i++) {