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
Show replies by date
Myria wrote:
IsPowerOf2 in the kernel is badly inefficient
yes, I am aware of this. I wasn't at the time I wrote it. Feel free to submit a patch
ros-dev@reactos.org
Add to favorites Remove from favorites