HelenOS sources
fnzb 378 kernel/genarch/src/mm/page_pt.c va_bits = fnzb(PTL0_ENTRIES) + fnzb(PTL1_ENTRIES) + fnzb(PTL2_ENTRIES) +
fnzb 379 kernel/genarch/src/mm/page_pt.c fnzb(PTL3_ENTRIES) + PAGE_WIDTH;
fnzb 381 kernel/genarch/src/mm/page_pt.c return 1UL << (va_bits - fnzb(PTL0_ENTRIES));
fnzb 131 kernel/generic/src/lib/ra.c span->max_order = fnzb(size);
fnzb 256 kernel/generic/src/lib/ra.c size_t order = ispwr2(needed) ? fnzb(needed) : fnzb(needed) + 1;
fnzb 313 kernel/generic/src/lib/ra.c pred_order = fnzb(ra_segment_size_get(pred));
fnzb 321 kernel/generic/src/lib/ra.c succ_order = fnzb(ra_segment_size_get(succ));
fnzb 410 kernel/generic/src/lib/ra.c order = fnzb(ra_segment_size_get(seg));
fnzb 139 kernel/generic/src/mm/km.c align = ispwr2(size) ? size : (1U << (fnzb(size) + 1));
fnzb 112 kernel/generic/src/mm/malloc.c size_t idx = fnzb(size - 1) - SLAB_MIN_MALLOC_W + 1;
fnzb 810 uspace/lib/c/generic/malloc.c 1 << (fnzb(max(sizeof(void *), align) - 1) + 1);
HelenOS homepage, sources at GitHub