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 contribution / 0 nouveau(x)
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.