RE: [mpm@selenic.com: Re: buggy ia64_fls() ? (was Re: /dev/random problem on 2.6.12-rc1)]

From: Luck, Tony <tony.luck_at_intel.com>
Date: 2005-04-09 09:02:15
>So there's the off-by-one problem. And then there's the huge
>discontinuity at 0. Trouble is the bias is 65535 rather than 65536 so
>there's no masking trick that works. We could instead to do
>exp((x*2)+1).

That will fail for x=0x8000000000000000 ... returns '1' instead of '64'.

-Tony
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Apr 8 19:02:36 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:37 EST