Re: improvement of index-calculation




"Les Pawelczyk" <les_at_pixelpointpos_dot_com> schrieb

> > bt EAX,EBX
> > lahf
> > xchg AL,AH
> > and EAX,$1
>
> bt eax, ebx
> setc al
>
Hi!

mov ECX,EBX
shr EAX,CL

and EAX,$1

seems to be faster then the bt/setc combination.
at least on my computer (Intel P4)

thanks anyway
Guenther


.



Relevant Pages