Comment

Comment by joezydeco

8 bit input? Use a pre-generated lookup table. Store it in ROM.

The table deference will take 1 or 2 operations instead of the AND/SHIFT/PUSH/AND/SHIFT/POP/OR described in the answer.

parent joezydeco 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton