lkml.org 
[lkml]   [1998]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.035 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site