Re: Count Leading Zeros (cntlzw)



"Kostas" <kostast@xxxxxxxx> a écrit dans le message de
news:4312e683@xxxxxxxxxxxxxxxxxxxxxxxxx
> I wanted to use this function -which is part of the PowerPC assembly
> language- in a x86 architecture (prefered an Athlon).
> This function calculates the leading zeros of a word.
> I need this function to be really fast, so i thought to ask the basm group
> :)
>
> How should it be best implemented in order to be best optimised?
>
> Thanks in advance
> Kostas
>

80x86 have BSF (Bit Scan Forward) and BSR (B.S. Reverse) functions


.



Relevant Pages

  • Count Leading Zeros (cntlzw)
    ... language- in a x86 architecture (prefered an Athlon). ... This function calculates the leading zeros of a word. ... Prev by Date: ...
    (borland.public.delphi.language.basm)
  • Re: Count Leading Zeros (cntlzw)
    ... Kostas ... > language- in a x86 architecture (prefered an Athlon). ... Prev by Date: ...
    (borland.public.delphi.language.basm)
  • Re: Fastcode Ceil32 B&V 1.2.2 Validation Results
    ... Athlon XP 2500+ Barton ... Best regards ... Prev by Date: ...
    (borland.public.delphi.language.basm)
  • S: PCI-Controller USB 2.0 I/O
    ... Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp ... Prev by Date: ...
    (de.markt.comp.hardware.misc)
  • Re: Count Leading Zeros (cntlzw)
    ... Kostas wrote: ... language- in a x86 architecture (prefered an Athlon). ... This function calculates the leading zeros of a word. ...
    (borland.public.delphi.language.basm)