Mail Archives: djgpp/1996/07/11/16:30:25
In article <4rinnt$gqt AT nemesis DOT eo DOT lu>, Dave McNeill <dmcneill AT pne DOT co DOT uk> wrote:
>Pin F. Sun wrote:
>
>memset() uses rep stosd. you don't get much quickier than that!
>
Unless you're not using a 386. On pentium the fastest method seems
to be an unrolled loop of fistq. (64 bits at a time) On 486 machines
that are clock doubled or tripled, an unrolled loop of movl instructions
seems to be fastest. rep stosd is only fastest on 386 and non-multiplied
486 machines.
I wish we'd all get over our love affair with rep stosd, rep movsd, and
the like.
Eric
--
Eric Korpela | An object at rest can never be
korpela AT ssl DOT berkeley DOT edu | stopped.
<a href="http://www.cs.indiana.edu/finger/mofo.ssl.berkeley.edu/korpela/w">
Click here for more info.</a>
- Raw text -