Home
last modified time | relevance | path

Searched refs:lg_range (Results 1 – 5 of 5) 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 …]
/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 …]
/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()