News for hackers. Stuff that matters.
Re:Bit Twiddling Hacks by white_beach on Friday August 23, 2024 @05:19AM (#41327442)
here's one or two

shr ecx, 1 lea eax, [rcx + 1FC00000h] shr eax, 1 add eax, ecx

Re:Bit Twiddling Hacks by dahart on Friday August 23, 2024 @12:33PM (#41330434)
This reminded me of the puzzle book “xchg rax,rax”. Maybe that has some hidden insights… :P

https://www.xorpd.net/pages/xchg_rax/snip_00.html