Y
Hacker News
new
|
ask
|
show
|
jobs
by
tlb
4536 days ago
You can get trailing ones by subtracting 1:
0x01000000 - 1 = 0x00ffffff
so you can generate any number of trailing ones with 2 instructions.