No, ten váš kód bude zrejme o čosi rýchlejší. DF je vo flags na desiatom bite takze or s 00000000010000000000 by zrejme pomohol.<br><br>Na Core 2 Duo mal kod<br>&quot;time dd if=/dev/zero bs=500 count=2000 2&gt;/dev/null | tr &#39;\0&#39; x &gt; /dev/null&quot;<br>
<br>real    0m0.009s<br>user    0m0.001s<br>sys     0m0.008s<br><br>U mňa doma nejakých 18 tisicin:)<br><br><div class="gmail_quote">2009/6/15 Matus UHLAR - fantomas <span dir="ltr">&lt;<a href="mailto:uhlar@fantomas.sk">uhlar@fantomas.sk</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">&gt; On 15.06.09 21:56, Matus UHLAR - fantomas wrote:<br>
&gt; &gt; stringove instrukcie uz v 32 a 64bit modoch nefunguju?<br>
<br>
</div><div class="im">On 15.06.09 22:07, Matus UHLAR - fantomas wrote:<br>
&gt; a mohli by, takze cyklus vratane inicializatie by mohol vyzerat takto:<br>
&gt;<br>
&gt; mov al, 0x78<br>
&gt; mod ecx,1000000<br>
&gt; mov edi, esp<br>
&gt; mov es, ds<br>
&gt; or flags, &lt;df&gt;       ;   toto by malo setnut flag DF neviem ako sa to pise<br>
&gt; rep stosb<br>
<br>
</div>a pri tom poslednom treba este zabezpecit aby address-size atribut<br>
instrukcie bol 32bit, co uz vobec neviem ako sa robi ;-)<br>
<div class="im">--<br>
Matus UHLAR - fantomas, <a href="mailto:uhlar@fantomas.sk">uhlar@fantomas.sk</a> ; <a href="http://www.fantomas.sk/" target="_blank">http://www.fantomas.sk/</a><br>
Warning: I wish NOT to receive e-mail advertising to this address.<br>
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.<br>
</div>LSD will make your ECS screen display 16.7 million colors<br>
<div><div></div><div class="h5">_______________________________________________<br>
<a href="https://lists.linux.sk/mailman/listinfo/linux" target="_blank">https://lists.linux.sk/mailman/listinfo/linux</a><br>
Meta FAQ: <a href="http://www.sklug.sk/lists/linux/metafaq.html" target="_blank">http://www.sklug.sk/lists/linux/metafaq.html</a><br>
</div></div></blockquote></div><br>