2 ms·You can do it with one shift: 0x10880 & (24 << (i*4))by teo_zero 2y agoYou can do it with one shift: 0x10880 & (24 << (i*4))pbsd 2y agoBrilliant. Can be further simplified to 0x10880 & (0x2240 << i).