These can be assisted by a table as well, replacing the last four lines of each with a table lookup on the high/low byte.
The input method then simply becomes a table lookup.
As an example, the routing function is actually a multi-step process involving various optimization algorithms and table lookups.
Vowel/consonant balance was a table lookup based on the count of vowels and consonants left in the rack.
The VoIP E911 system is based on a static table lookup.
So everything is this table lookup, which is extremely fast with computers.
They've got instructions just for doing table lookup.
Most software applications will compute small factorials by direct multiplication or table lookup.
The shift rules are implemented as constant-time table lookups, using tables generated during the preprocessing of P.
Hash functions are frequently used to speed up table lookups.