
Xchg rax,rax
by xorpd · first published 2014
4mentions
2recommended by
4HN commenters
2014–2025first – last mentioned
50% recommend50% neutral
Affiliate links. As an Amazon Associate I earn from qualifying purchases.

…Microscope: http://patshaughnessy.net/ruby-under-a-microscope The CS Detective: https://nostarch.com/csdetective Mazes for Programmers: http://www.mazesforprogrammers.com/ A Curious Moon: https://bigmachine.io/products/a-curious-moon/ xchg rax,rax: https://www.xorpd.net/pages/xchg_rax/snip_00.html
on “Ask HN: Most interesting, mildly impractical, well-written books on software?” ↗It happens to be the first instruction of the first snippet in the wonderful xchg rax,rax. https://www.xorpd.net/pages/xchg_rax/snip_00.html
on “Why xor eax, eax?” ↗…rcx,0x40 .loop: mov rdx,rax xor rax,rbx and rbx,rdx shl rbx,0x1 loop .loop From the book's description on https://www.createspace.com/5067642: xchg rax, rax Authored by xorpd About the author: "Performs a bitwise logical exclusive-OR of the two packed double-precision floating-point values from the source operand (second operand) and the destination…
on “Xchg rax, rax – a x86_64 asm poetry book” ↗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
on “Bit Twiddling Hacks (2009)” ↗