4 ms·Once you do that, you can trade your array for a 32-bit integer: f(n) = 28 + ((0x3bbeecc >> n >> n) & 3)by saalweachter 12y agoOnce you do that, you can trade your array for a 32-bit integer: f(n) = 28 + ((0x3bbeecc >> n >> n) & 3)TillE 12y agoI think this has to win for fewest/cheapest instructions and genuinely clever, practical programming. I've been doing a lot of cache optimization lately, so I'm a fan of anything that reduces the amount of bits required to store information.ChuckMcM 12y agoOhh I like that a lot.