Comment on Ask HN: What's the most elegant piece of code you've seen?Comments−camperman10yA quiz question from the old Imphobia demo diskmag: a single instruction to extend a byte value in al across a full 32-bit word. Impossible right? Nope: imul 0x01010101
Comments
A quiz question from the old Imphobia demo diskmag: a single instruction to extend a byte value in al across a full 32-bit word. Impossible right? Nope: