HelenOS sources

ispwr2            256 kernel/generic/src/lib/ra.c 	size_t order = ispwr2(needed) ? fnzb(needed) : fnzb(needed) + 1;
ispwr2            422 kernel/generic/src/lib/ra.c 	assert(ispwr2(alignment));
ispwr2            139 kernel/generic/src/mm/km.c 		align = ispwr2(size) ? size : (1U << (fnzb(size) + 1));
ispwr2            143 kernel/generic/src/mm/km.c 	assert(ispwr2(align));
ispwr2             95 kernel/generic/src/mm/malloc.c 	assert(ispwr2(*alignment));
HelenOS homepage, sources at GitHub