Re: free bootmem feedback patch

David Mosberger
2004-07-16T00:09:00Z

>>>>> On Fri, 16 Jul 2004 00:34:20 +0100, Matthew Wilcox <willy@debian.org> said:

Matthew> #define log2(x) (ffs(x) - 1)

At the risk of pointing out the obvious, this definition only works
for integer-powers of two...

get_order() works for any "unsigned long" value.

--david