mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-22 11:55:47 +03:00
Use KQU() rather than QU() where applicable.
Fix KZI() and KQI() to append LL rather than ULL.
This commit is contained in:
parent
d04047cc29
commit
1f6d77e1f6
5 changed files with 1046 additions and 1046 deletions
|
|
@ -511,7 +511,7 @@ uint64_t gen_rand64(sfmt_t *ctx) {
|
|||
uint64_t gen_rand64_range(sfmt_t *ctx, uint64_t limit) {
|
||||
uint64_t ret, above;
|
||||
|
||||
above = 0xffffffffffffffffULL - (0xffffffffffffffffULL % limit);
|
||||
above = KQU(0xffffffffffffffff) - (KQU(0xffffffffffffffff) % limit);
|
||||
while (1) {
|
||||
ret = gen_rand64(ctx);
|
||||
if (ret < above) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue