Hacker News new | ask | show | jobs
by kardos 1702 days ago
Hard to compete with a 4-byte lookup table, but for decoding the 256-byte table can become: return ((dibit | (dibit -1))>>1) & 3;