__asm { movq mm0,n movq mm2,four mov ecx,-1 xor edx,edx align 8 nextone: movd eax,mm0 add ecx,1 shr eax,1 notset: psrlq mm0,1 jnc nextone set: psllq mm0,1 movq mm1,mm0 psllq mm0,1 paddq mm0,mm1 paddq mm0,mm2 //#4 jne nextone anymore: movq mm1,mm0 psrlq mm1,32 movd eax,mm1 test eax,eax jne nextone completed: mov delay,ecx }