Skip to content
Commit 63c2f782 authored by Robert P. J. Day's avatar Robert P. J. Day Committed by Paul Mackerras
Browse files

[POWERPC] Add "is_power_of_2" checking to log2.h.



Add the inline function "is_power_of_2()" to log2.h, where the value
zero is *not* considered to be a power of two.

Signed-off-by: default avatarRobert P. J. Day <rpjday@mindspring.com>
Acked-by: default avatarKumar Gala <galak@kernel.crashing.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 7df2457d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment