summaryrefslogtreecommitdiffstats
path: root/benchmark/dict_bench.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-06-28 18:48:41 -0400
committerDavid Robillard <d@drobilla.net>2022-06-28 19:02:49 -0400
commit71c4a3a6d66e96661fd341e1a089c4d8bd63fb13 (patch)
tree615c31e8399736519119ca8b37bc3c97ec2c1242 /benchmark/dict_bench.c
parent5d62313812b2fee9a4986e6b7ca1af40fb4f2fb6 (diff)
downloadzix-71c4a3a6d66e96661fd341e1a089c4d8bd63fb13.tar.gz
zix-71c4a3a6d66e96661fd341e1a089c4d8bd63fb13.tar.bz2
zix-71c4a3a6d66e96661fd341e1a089c4d8bd63fb13.zip
Use uppercase integer literal suffixes
I give in.
Diffstat (limited to 'benchmark/dict_bench.c')
-rw-r--r--benchmark/dict_bench.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/benchmark/dict_bench.c b/benchmark/dict_bench.c
index b9c8cc4..82a4b78 100644
--- a/benchmark/dict_bench.c
+++ b/benchmark/dict_bench.c
@@ -36,8 +36,8 @@ typedef struct {
static inline uint64_t
lcg64(const uint64_t i)
{
- static const uint64_t a = 6364136223846793005ull;
- static const uint64_t c = 1ull;
+ static const uint64_t a = 6364136223846793005ULL;
+ static const uint64_t c = 1ULL;
return (a * i) + c;
}
@@ -51,7 +51,7 @@ identity(const void* record)
static size_t
zix_chunk_hash(const ZixChunk* const chunk)
{
- return zix_digest(0u, chunk->buf, chunk->len);
+ return zix_digest(0U, chunk->buf, chunk->len);
}
static bool
@@ -65,10 +65,10 @@ static const unsigned seed = 1;
static Inputs
read_inputs(FILE* const fd)
{
- static const size_t max_n_strings = 1u << 20u;
- static const Inputs no_inputs = {NULL, 0u, NULL};
+ static const size_t max_n_strings = 1U << 20U;
+ static const Inputs no_inputs = {NULL, 0U, NULL};
- Inputs inputs = {NULL, 0u, NULL};
+ Inputs inputs = {NULL, 0U, NULL};
size_t buf_len = 1;
size_t this_str_len = 0;
for (int c = 0; (c = fgetc(fd)) != EOF;) {