Re: Count Leading Zeros (cntlzw)
- From: Lars <lbg_@xxxxxxxxxxxx>
- Date: Mon, 29 Aug 2005 20:07:40 +0200
Torjei Kvinen wrote:
Kostas wrote:
How should it be best implemented in order to be best optimised?
function cntlzw(const v: Longword): Longword; asm MOV EDX, 00000020h BSF EAX, EAX CMOVZ EAX, EDX end;
Can somebody validate this
cntlzw(0) = 32 ok cntlzw(1) = 0 wrong
Regards Lars .
- References:
- Count Leading Zeros (cntlzw)
- From: Kostas
- Re: Count Leading Zeros (cntlzw)
- From: Torjei Kvinen
- Count Leading Zeros (cntlzw)
- Prev by Date: Re: Count Leading Zeros (cntlzw)
- Next by Date: Re: Count Leading Zeros (cntlzw)
- Previous by thread: Re: Count Leading Zeros (cntlzw)
- Next by thread: Re: Count Leading Zeros (cntlzw)
- Index(es):