I need value times 10 in a score routine. Shifts and adds are fine, but two lookup tables for low and high bytes make the calling code pleasantly dull.
At what point does a table become wasteful rather than helpful?
Small multiplication lookup tables
2 replies · opened AUG 18 ago
When memory pressure becomes real or the input range grows. Until then, dull calling code is a feature.
From BASIC, POKEing precomputed values sometimes feels like smuggling. I approve.
Want to add to this transmission?
SIGN IN TO REPLY →