Home
last modified time | relevance | path

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

/external/jemalloc_new/include/jemalloc/internal/
Dprng.h67 prng_lg_range_u32(atomic_u32_t *state, unsigned lg_range, bool atomic) { in prng_lg_range_u32() argument
70 assert(lg_range > 0); in prng_lg_range_u32()
71 assert(lg_range <= 32); in prng_lg_range_u32()
84 ret = state1 >> (32 - lg_range); in prng_lg_range_u32()
90 prng_lg_range_u64(uint64_t *state, unsigned lg_range) { in prng_lg_range_u64() argument
93 assert(lg_range > 0); in prng_lg_range_u64()
94 assert(lg_range <= 64); in prng_lg_range_u64()
98 ret = state1 >> (64 - lg_range); in prng_lg_range_u64()
104 prng_lg_range_zu(atomic_zu_t *state, unsigned lg_range, bool atomic) { in prng_lg_range_zu() argument
107 assert(lg_range > 0); in prng_lg_range_zu()
[all …]
Dextent_inlines.h197 unsigned lg_range = LG_PAGE - in extent_addr_randomize() local
203 tsd_offset_statep_get(tsd), lg_range); in extent_addr_randomize()
207 lg_range, true); in extent_addr_randomize()
210 lg_range); in extent_addr_randomize()
/external/jemalloc_new/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()
43 unsigned lg_range; in test_prng_lg_range_u64() local
65 for (lg_range = 63; lg_range > 0; lg_range--) { in test_prng_lg_range_u64()
67 rb = prng_lg_range_u64(&sb, lg_range); in test_prng_lg_range_u64()
[all …]