[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-kernel
Subject: Re: [RFC][PATCH] Faster generic_fls
From: Linus Torvalds <torvalds () transmeta ! com>
Date: 2003-04-30 23:41:07
[Download RAW message or body]
On 30 Apr 2003, Alan Cox wrote:
>
> It ought to be basically the same as ffs because if I remember rightly
>
> ffs(x^(x-1)) == fls(x)
So did anybody time this? ffs() we have hardware support for on x86, and
it's even reasonably efficient on some CPU's .. So this _should_ beat all
new-comers, and obviously some people already have benchmark programs
ready and willing..
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic