back

by beardyw·5y ago·view on hn ↗
Others have mentioned microcontrollers and using shifts for efficiency, but also often because system services are often described and accessed by individual bits. So for instance (in C) xxx |= (1 << n) will set bit n and xxx &= ~(1 << n) will clear it.