Messages in this thread | | | Date | Tue, 2 Jun 1998 19:40:25 +0200 | From | Alexander Kjeldaas <> | Subject | Re: Linux 2.1 kernel patch --- update /dev/random driver. |
| |
On Mon, May 25, 1998 at 09:07:38PM -0400, Theodore Y. Ts'o wrote: > > What's currently implemented is much like ffs, except it only works up > to 12 bits, since that's all we need. It may come as a surprise to some > that it's faster to open-code it in C than to use the x86 bit scan > instruction. >
I am aware that the bs* instructions on the pentium are slow (don't know about the PII though). However I do know that this operation is done in 1 cycle in a normal PowerPC core.
astor
-- Alexander Kjeldaas, Guardian Networks AS, Trondheim, Norway http://www.guardian.no/
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |