Recently, I had to count the number of bits of a 32 bits register.
I don't remember exactly how much cycles it took, but it was originally a C routine.
My question is:
what is the fastest routine to count the number of bits of EAX ?
JC
I don't remember exactly how much cycles it took, but it was originally a C routine.
My question is:
what is the fastest routine to count the number of bits of EAX ?
JC
mov ebx, eax
shr eax, 16
and ebx, 0ffffh
mov eax,
shr eax, 16
and ebx, 0ffffh
mov eax,