Home
last modified time | relevance | path

Searched refs:LG_SIZEOF_PTR (Results 1 – 25 of 45) sorted by relevance

12

/external/jemalloc_new/include/jemalloc/internal/
Dbit_util.h32 #if LG_SIZEOF_PTR == LG_SIZEOF_INT in ffs_zu()
34 #elif LG_SIZEOF_PTR == LG_SIZEOF_LONG in ffs_zu()
36 #elif LG_SIZEOF_PTR == LG_SIZEOF_LONG_LONG in ffs_zu()
92 #if (LG_SIZEOF_PTR == 3) in pow2_ceil_zu()
119 #if (LG_SIZEOF_PTR == 3) in lg_floor()
121 #elif (LG_SIZEOF_PTR == 2) in lg_floor()
134 #if (LG_SIZEOF_PTR == LG_SIZEOF_INT) in lg_floor()
135 return ((8 << LG_SIZEOF_PTR) - 1) - __builtin_clz(x); in lg_floor()
136 #elif (LG_SIZEOF_PTR == LG_SIZEOF_LONG) in lg_floor()
137 return ((8 << LG_SIZEOF_PTR) - 1) - __builtin_clzl(x); in lg_floor()
[all …]
Datomic.h51 #if (LG_SIZEOF_PTR == 3 || LG_SIZEOF_INT == 3)
55 JEMALLOC_GENERATE_ATOMICS(void *, p, LG_SIZEOF_PTR)
65 JEMALLOC_GENERATE_INT_ATOMICS(size_t, zu, LG_SIZEOF_PTR)
67 JEMALLOC_GENERATE_INT_ATOMICS(ssize_t, zd, LG_SIZEOF_PTR)
Dprng.h47 #if LG_SIZEOF_PTR == 2 in prng_state_next_zu()
49 #elif LG_SIZEOF_PTR == 3 in prng_state_next_zu()
108 assert(lg_range <= ZU(1) << (3 + LG_SIZEOF_PTR)); in prng_lg_range_zu()
121 ret = state1 >> ((ZU(1) << (3 + LG_SIZEOF_PTR)) - lg_range); in prng_lg_range_zu()
Drtree.h18 #define RTREE_NHIB ((1U << (LG_SIZEOF_PTR+3)) - LG_VADDR)
133 unsigned ptrbits = ZU(1) << (LG_SIZEOF_PTR+3); in rtree_leafkey()
143 unsigned ptrbits = ZU(1) << (LG_SIZEOF_PTR+3); in rtree_cache_direct_map()
152 unsigned ptrbits = ZU(1) << (LG_SIZEOF_PTR+3); in rtree_subkey()
Dckh.h21 #define LG_CKH_BUCKET_CELLS (LG_CACHELINE - LG_SIZEOF_PTR - 1)
/external/jemalloc/include/jemalloc/internal/
Dutil.h169 #if LG_SIZEOF_PTR == LG_SIZEOF_INT in ffs_zu()
171 #elif LG_SIZEOF_PTR == LG_SIZEOF_LONG in ffs_zu()
173 #elif LG_SIZEOF_PTR == LG_SIZEOF_LONG_LONG in ffs_zu()
239 #if (LG_SIZEOF_PTR == 3) in pow2_ceil_zu()
269 #if (LG_SIZEOF_PTR == 3) in lg_floor()
271 #elif (LG_SIZEOF_PTR == 2) in lg_floor()
286 #if (LG_SIZEOF_PTR == LG_SIZEOF_INT) in lg_floor()
287 return (((8 << LG_SIZEOF_PTR) - 1) - __builtin_clz(x)); in lg_floor()
288 #elif (LG_SIZEOF_PTR == LG_SIZEOF_LONG) in lg_floor()
289 return (((8 << LG_SIZEOF_PTR) - 1) - __builtin_clzl(x)); in lg_floor()
[all …]
Datomic.h69 #if (LG_SIZEOF_PTR == 3 || LG_SIZEOF_INT == 3)
509 #if (LG_SIZEOF_PTR == 3) in atomic_add_p()
511 #elif (LG_SIZEOF_PTR == 2) in atomic_add_p()
520 #if (LG_SIZEOF_PTR == 3) in atomic_sub_p()
523 #elif (LG_SIZEOF_PTR == 2) in atomic_sub_p()
533 #if (LG_SIZEOF_PTR == 3) in atomic_cas_p()
535 #elif (LG_SIZEOF_PTR == 2) in atomic_cas_p()
544 #if (LG_SIZEOF_PTR == 3) in atomic_write_p()
546 #elif (LG_SIZEOF_PTR == 2) in atomic_write_p()
557 #if (LG_SIZEOF_PTR == 3) in atomic_add_z()
[all …]
Dprng.h75 #if LG_SIZEOF_PTR == 2 in prng_state_next_zu()
77 #elif LG_SIZEOF_PTR == 3 in prng_state_next_zu()
130 assert(lg_range <= ZU(1) << (3 + LG_SIZEOF_PTR)); in prng_lg_range_zu()
143 ret = state1 >> ((ZU(1) << (3 + LG_SIZEOF_PTR)) - lg_range); in prng_lg_range_zu()
Dckh.h20 #define LG_CKH_BUCKET_CELLS (LG_CACHELINE - LG_SIZEOF_PTR - 1)
/external/jemalloc/test/unit/
Dprng.c84 ra = prng_lg_range_zu(&sa, ZU(1) << (3 + LG_SIZEOF_PTR), atomic); in test_prng_lg_range_zu()
86 rb = prng_lg_range_zu(&sa, ZU(1) << (3 + LG_SIZEOF_PTR), atomic); in test_prng_lg_range_zu()
91 rb = prng_lg_range_zu(&sb, ZU(1) << (3 + LG_SIZEOF_PTR), atomic); in test_prng_lg_range_zu()
96 ra = prng_lg_range_zu(&sa, ZU(1) << (3 + LG_SIZEOF_PTR), atomic); in test_prng_lg_range_zu()
97 rb = prng_lg_range_zu(&sa, ZU(1) << (3 + LG_SIZEOF_PTR), atomic); in test_prng_lg_range_zu()
102 ra = prng_lg_range_zu(&sa, ZU(1) << (3 + LG_SIZEOF_PTR), atomic); in test_prng_lg_range_zu()
103 for (lg_range = (ZU(1) << (3 + LG_SIZEOF_PTR)) - 1; lg_range > 0; in test_prng_lg_range_zu()
109 assert_zu_eq(rb, (ra >> ((ZU(1) << (3 + LG_SIZEOF_PTR)) - in test_prng_lg_range_zu()
/external/jemalloc_new/test/unit/
Dprng.c83 ra = prng_lg_range_zu(&sa, ZU(1) << (3 + LG_SIZEOF_PTR), atomic); in test_prng_lg_range_zu()
85 rb = prng_lg_range_zu(&sa, ZU(1) << (3 + LG_SIZEOF_PTR), atomic); in test_prng_lg_range_zu()
90 rb = prng_lg_range_zu(&sb, ZU(1) << (3 + LG_SIZEOF_PTR), atomic); in test_prng_lg_range_zu()
95 ra = prng_lg_range_zu(&sa, ZU(1) << (3 + LG_SIZEOF_PTR), atomic); in test_prng_lg_range_zu()
96 rb = prng_lg_range_zu(&sa, ZU(1) << (3 + LG_SIZEOF_PTR), atomic); in test_prng_lg_range_zu()
101 ra = prng_lg_range_zu(&sa, ZU(1) << (3 + LG_SIZEOF_PTR), atomic); in test_prng_lg_range_zu()
102 for (lg_range = (ZU(1) << (3 + LG_SIZEOF_PTR)) - 1; lg_range > 0; in test_prng_lg_range_zu()
108 assert_zu_eq(rb, (ra >> ((ZU(1) << (3 + LG_SIZEOF_PTR)) - in test_prng_lg_range_zu()
/external/jemalloc_new/test/integration/
Dposix_memalign.c39 #if LG_SIZEOF_PTR == 3 in TEST_BEGIN()
50 #if LG_SIZEOF_PTR == 3 in TEST_BEGIN()
62 #if LG_SIZEOF_PTR == 3 in TEST_BEGIN()
90 size += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN()
Daligned_alloc.c41 #if LG_SIZEOF_PTR == 3 in TEST_BEGIN()
54 #if LG_SIZEOF_PTR == 3 in TEST_BEGIN()
68 #if LG_SIZEOF_PTR == 3 in TEST_BEGIN()
97 size += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN()
Dmallocx.c102 #if LG_SIZEOF_PTR == 3 in TEST_BEGIN()
178 sz += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN()
Dsdallocx.c27 sz += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN()
/external/jemalloc/test/integration/
Dposix_memalign.c44 #if LG_SIZEOF_PTR == 3 in TEST_BEGIN()
55 #if LG_SIZEOF_PTR == 3 in TEST_BEGIN()
67 #if LG_SIZEOF_PTR == 3 in TEST_BEGIN()
95 size += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN()
Daligned_alloc.c46 #if LG_SIZEOF_PTR == 3 in TEST_BEGIN()
59 #if LG_SIZEOF_PTR == 3 in TEST_BEGIN()
73 #if LG_SIZEOF_PTR == 3 in TEST_BEGIN()
102 size += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN()
Dmallocx.c114 #if LG_SIZEOF_PTR == 3 in TEST_BEGIN()
183 sz += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN()
Dsdallocx.c28 sz += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN()
/external/jemalloc_new/include/jemalloc/
Djemalloc_defs.h47 #define LG_SIZEOF_PTR 3 macro
49 #define LG_SIZEOF_PTR 2 macro
Djemalloc_defs.h.in44 /* sizeof(void *) == 2^LG_SIZEOF_PTR. */
45 #undef LG_SIZEOF_PTR
Djemalloc.h52 #define LG_SIZEOF_PTR 3 macro
54 #define LG_SIZEOF_PTR 2
78 #if LG_SIZEOF_PTR == 2
/external/jemalloc/include/jemalloc/
Djemalloc_defs.h49 #define LG_SIZEOF_PTR 3 macro
51 #define LG_SIZEOF_PTR 2 macro
Djemalloc_defs.h.in44 /* sizeof(void *) == 2^LG_SIZEOF_PTR. */
45 #undef LG_SIZEOF_PTR
Djemalloc.h56 #define LG_SIZEOF_PTR 3 macro
58 #define LG_SIZEOF_PTR 2
130 # if LG_SIZEOF_PTR == 2

12