Home
last modified time | relevance | path

Searched refs:lg_range (Results 1 – 2 of 2) sorted by relevance

/external/jemalloc/test/unit/
Dprng.c7 unsigned lg_range; in test_prng_lg_range_u32() local
29 for (lg_range = 31; lg_range > 0; lg_range--) { in test_prng_lg_range_u32()
31 rb = prng_lg_range_u32(&sb, lg_range, atomic); in test_prng_lg_range_u32()
32 assert_u32_eq((rb & (UINT32_C(0xffffffff) << lg_range)), in test_prng_lg_range_u32()
33 0, "High order bits should be 0, lg_range=%u", lg_range); in test_prng_lg_range_u32()
34 assert_u32_eq(rb, (ra >> (32 - lg_range)), in test_prng_lg_range_u32()
36 "lg_range=%u", lg_range); in test_prng_lg_range_u32()
44 unsigned lg_range; in test_prng_lg_range_u64() local
66 for (lg_range = 63; lg_range > 0; lg_range--) { in test_prng_lg_range_u64()
68 rb = prng_lg_range_u64(&sb, lg_range); in test_prng_lg_range_u64()
[all …]
/external/jemalloc/include/jemalloc/internal/
Dprng.h46 uint32_t prng_lg_range_u32(uint32_t *state, unsigned lg_range,
48 uint64_t prng_lg_range_u64(uint64_t *state, unsigned lg_range);
49 size_t prng_lg_range_zu(size_t *state, unsigned lg_range, bool atomic);
85 prng_lg_range_u32(uint32_t *state, unsigned lg_range, bool atomic) in prng_lg_range_u32() argument
89 assert(lg_range > 0); in prng_lg_range_u32()
90 assert(lg_range <= 32); in prng_lg_range_u32()
103 ret = state1 >> (32 - lg_range); in prng_lg_range_u32()
110 prng_lg_range_u64(uint64_t *state, unsigned lg_range) in prng_lg_range_u64() argument
114 assert(lg_range > 0); in prng_lg_range_u64()
115 assert(lg_range <= 64); in prng_lg_range_u64()
[all …]