diff options
| author | 2007-10-11 01:06:03 -0400 | |
|---|---|---|
| committer | 2007-10-11 19:09:08 +0200 | |
| commit | 019a5f56ec195aceadada18aaaad0f67294bdaef (patch) | |
| tree | d31830cf7ec683ef6fd6719236011c9ded649847 /include/linux | |
| parent | pxamci: support arbitrary block size (diff) | |
mmc: don't use weight32()
Using weight32() to determine if a value is a power of 2 is a rather
heavi weight solution. The classic idiom is (x & (x - 1)) == 0, but
the kernel already provide a is_power_of_2 function for it.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
