ra’s avatarra’s Twitter Archive—№ 6,690

  1. Reminder: ~(~0 << x) will generate a bit mask with x 1s. 4 instructions in x86.