8 ms·
I can't see any elegant solution. \n Struggling proc \n lzcnt ecx,ecx \n test cl,cl \n setz al \n lea edx,[ecx-2] ;[0,1,2] \n cmp rdx,2 \n cmovle eax,ecx \n r
by Cold_Miserable 11mo ago
I can't see any elegant solution. \n
Struggling proc \n
lzcnt ecx,ecx \n
test cl,cl \n
setz al \n
lea edx,[ecx-2] ;[0,1,2] \n
cmp rdx,2 \n
cmovle eax,ecx \n
ret \n
Struggling endp