Re: [PATCH] Eliminate result signage problem in asm-x86_64/bitops.h

From: Andi Kleen
Date: Wed Aug 15 2007 - 18:24:18 EST


On Wed, Aug 15, 2007 at 05:02:47PM -0400, Chuck Lever wrote:
> The return type of __scanbit() doesn't match the return type of
> find_{first,next}_bit(). Thus when you construct something like
> this:
>
> boolean ? __scanbit() : find_first_bit()

Why would you want to write this? What is boolean?
Do they have different arguments?

It's on my todo list for some time to special case
f_f_b() and friends for smaller arguments. Would
that eliminate this construct?

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/