summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2012-03-05 20:26:26 (GMT)
committerJason Evans <je@fb.com>2012-03-05 20:26:26 (GMT)
commitb8c8be7f8abe72f4cb4f315f3078ad864fd6a2d8 (patch)
tree560327e3caf52de99a41010ddb2df058a4362bdb /src
parent3492daf1ce6fb85040d28dfd4dcb51cbf6b0da51 (diff)
downloadjemalloc-b8c8be7f8abe72f4cb4f315f3078ad864fd6a2d8.zip
jemalloc-b8c8be7f8abe72f4cb4f315f3078ad864fd6a2d8.tar.gz
jemalloc-b8c8be7f8abe72f4cb4f315f3078ad864fd6a2d8.tar.bz2
Use UINT64_C() rather than LLU for 64-bit constants.
Diffstat (limited to 'src')
-rw-r--r--src/ckh.c8
-rw-r--r--src/prof.c9
2 files changed, 9 insertions, 8 deletions
diff --git a/src/ckh.c b/src/ckh.c
index bea6ef8..39925ce 100644
--- a/src/ckh.c
+++ b/src/ckh.c
@@ -535,7 +535,7 @@ ckh_string_hash(const void *key, unsigned minbits, size_t *hash1, size_t *hash2)
assert(hash1 != NULL);
assert(hash2 != NULL);
- h = hash(key, strlen((const char *)key), 0x94122f335b332aeaLLU);
+ h = hash(key, strlen((const char *)key), UINT64_C(0x94122f335b332aea));
if (minbits <= 32) {
/*
* Avoid doing multiple hashes, since a single hash provides
@@ -546,7 +546,7 @@ ckh_string_hash(const void *key, unsigned minbits, size_t *hash1, size_t *hash2)
} else {
ret1 = h;
ret2 = hash(key, strlen((const char *)key),
- 0x8432a476666bbc13LLU);
+ UINT64_C(0x8432a476666bbc13));
}
*hash1 = ret1;
@@ -583,7 +583,7 @@ ckh_pointer_hash(const void *key, unsigned minbits, size_t *hash1,
u.i = 0;
#endif
u.v = key;
- h = hash(&u.i, sizeof(u.i), 0xd983396e68886082LLU);
+ h = hash(&u.i, sizeof(u.i), UINT64_C(0xd983396e68886082));
if (minbits <= 32) {
/*
* Avoid doing multiple hashes, since a single hash provides
@@ -594,7 +594,7 @@ ckh_pointer_hash(const void *key, unsigned minbits, size_t *hash1,
} else {
assert(SIZEOF_PTR == 8);
ret1 = h;
- ret2 = hash(&u.i, sizeof(u.i), 0x5e2be9aff8709a5dLLU);
+ ret2 = hash(&u.i, sizeof(u.i), UINT64_C(0x5e2be9aff8709a5d));
}
*hash1 = ret1;
diff --git a/src/prof.c b/src/prof.c
index c4a2d64..d78658d 100644
--- a/src/prof.c
+++ b/src/prof.c
@@ -993,7 +993,7 @@ prof_dump_filename(char *filename, char v, int64_t vseq)
filename[i] = v;
i++;
- if (vseq != 0xffffffffffffffffLLU) {
+ if (vseq != UINT64_C(0xffffffffffffffff)) {
s = u2s(vseq, 10, buf);
slen = strlen(s);
memcpy(&filename[i], s, slen);
@@ -1020,7 +1020,7 @@ prof_fdump(void)
if (opt_prof_prefix[0] != '\0') {
malloc_mutex_lock(&prof_dump_seq_mtx);
- prof_dump_filename(filename, 'f', 0xffffffffffffffffLLU);
+ prof_dump_filename(filename, 'f', UINT64_C(0xffffffffffffffff));
malloc_mutex_unlock(&prof_dump_seq_mtx);
prof_dump(filename, opt_prof_leak, false);
}
@@ -1113,7 +1113,8 @@ prof_bt_hash(const void *key, unsigned minbits, size_t *hash1, size_t *hash2)
assert(hash1 != NULL);
assert(hash2 != NULL);
- h = hash(bt->vec, bt->len * sizeof(void *), 0x94122f335b332aeaLLU);
+ h = hash(bt->vec, bt->len * sizeof(void *),
+ UINT64_C(0x94122f335b332aea));
if (minbits <= 32) {
/*
* Avoid doing multiple hashes, since a single hash provides
@@ -1124,7 +1125,7 @@ prof_bt_hash(const void *key, unsigned minbits, size_t *hash1, size_t *hash2)
} else {
ret1 = h;
ret2 = hash(bt->vec, bt->len * sizeof(void *),
- 0x8432a476666bbc13LLU);
+ UINT64_C(0x8432a476666bbc13));
}
*hash1 = ret1;