Counting leading zeros

Counting leading zeros

Hi all,

Im porting a code from PowerPc to Intel, and I have some assembly code to port, my problem is at the cntlzw instruction, that count the number of leading zeros from a 32bits word.
So I want to know if the Intel has a similar intruction to do this or how would be the best way to port it.

Tks
Bruno

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.