j
k
j a
j l
IsPowerOf2 in the kernel is badly inefficient. It should be this:
__inline BOOLEAN IsPowerOf2(IN ULONG Number) { if (Number == 0) return FALSE; return (Number & (Number - 1)) == 0; }
Not that this function is called frequently, shrug.
Melissa
Back to the thread
Back to the list