HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by teo_zero | Hacker News Reader
Parent
Full thread
teo_zero
·
You can do it with one shift:
0x10880 & (24 << (i*4))
View on HN
pbsd
·
Brilliant. Can be further simplified to 0x10880 & (0x2240 << i).
Reply on news.ycombinator.com