Home | History | Annotate | Download | only in internal

Lines Matching refs:psz

57 sz_psz2ind(size_t psz) {
58 assert(psz > 0);
59 if (unlikely(psz > SC_LARGE_MAXCLASS)) {
62 /* x is the lg of the first base >= psz. */
63 pszind_t x = lg_ceil(psz);
71 * off_to_first_ps_rg is 1 when psz is (PAGE * SC_NGROUP + 1).
86 * Let's write psz in binary, e.g. 0011 for 0x3, 0111 for 0x7.
87 * The leftmost bits whose len is lg_base decide the base of psz.
97 * Why use (psz - 1)?
98 * To handle case: psz % (1 << lg_delta) == 0.
100 pszind_t rg_inner_off = (((psz - 1)) >> lg_delta) & (SC_NGROUP - 1);
141 sz_psz2u(size_t psz) {
142 if (unlikely(psz > SC_LARGE_MAXCLASS)) {
145 size_t x = lg_floor((psz<<1)-1);
150 size_t usize = (psz + delta_mask) & ~delta_mask;