Re: [PATCH 1/3] X86_64: Optimise fls(), ffs() and fls64()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 13, 2011 at 6:56 AM, David Howells <dhowells@xxxxxxxxxx> wrote:
>
> It might be possible to optimise the 32-bit versions of these functions, but
> there's a lot more variation, and so the effective non-destructive property of
> BSRL/BSRF cannot be relied on.

I'm pretty sure that we had some chips that actually do write random
stuff to the destination register when the input is zero.

We relied on the "doesn't change the destination" at some point *long*
ago, and it turned out not to work, but I can't remember what chip it
was.

I'm nervous about making this change even on x86-64 unless we add big
comments about the old 32-bit change. Can somebody find the historic
thing and a comment about which chip it was?

                     Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux