The Magic of Bits “Bitwise”
antonio-cooler.gitbook.io
antonio-cooler.gitbook.io
---
Although the post is an introduction, I wanted to share a nice tip for coding multiplexers with bitwise operations:
https://blog.uidrafter.com/bitwise-table-lookup
---
And here's a fun example, KITT-like lights, for practicing bitwise operations:
https://ericfortis.github.io/web-animations/#-kitt-like-ligh...
Source Code:
https://github.com/ericfortis/web-animations/blob/main/kitt-...
"Hackers Delight" https://www.amazon.com/Hackers-Delight-2nd-Henry-Warren/dp/0...
let ix = a | b<<1
(lut & (1 << ix)) >> ix