tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kernel bitreverse function

On Sun, 3 Apr 2011 19:17:28 +0300
Jukka Ruohonen <> wrote:

> While I have no real opinion for or against, I can certainly imagine
> finding use for a well-defined "bit function" like this also in user
> space.

Sure, I agree. We can still add such functions in <sys/bitops.h> for
userland programs, but for the kernel it makes no sense to use them,
1. They are inline functions, which do not save any space.
2. They cannot easily be replaced by MD instructions.

Frank Wille

Home | Main Index | Thread Index | Old Index