Re: Count Leading Zeros (cntlzw)
- From: "vt" <vt@xxxxxxxxxxx>
- Date: Mon, 29 Aug 2005 16:49:17 +0200
"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
.
- Follow-Ups:
- Re: Count Leading Zeros (cntlzw)
- From: Avatar Zondertau
- Re: Count Leading Zeros (cntlzw)
- From: Jens Gruschel
- Re: Count Leading Zeros (cntlzw)
- References:
- Count Leading Zeros (cntlzw)
- From: Kostas
- Count Leading Zeros (cntlzw)
- Prev by Date: MMX: pack without saturation?
- Next by Date: Re: Count Leading Zeros (cntlzw)
- Previous by thread: Count Leading Zeros (cntlzw)
- Next by thread: Re: Count Leading Zeros (cntlzw)
- Index(es):
Relevant Pages
|