On Mon, Dec 7, 2015 at 5:03 PM, zhaoxiu.zeng <zhaoxiu.z...@gmail.com> wrote:
> is_power_of_2 is simple, and faster than "hweightN(x) == 1" on most 
> architectures.

Thanks. I'm not sure that speed is a major concern here, since this
code executes only once during the lifetime of the driver. Readability
is probably more important.
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to