Index mapping: Difference between revisions

Content deleted Content added
m Applicable arrays: 0-255 or 1-256...
Line 7:
* day of the week (1-7)
* human lifespan (0-130) - eg. lifecover actuary tables, fixed term mortgage
* [[ASCII]] characters (0-256255), encompassing:
:* common mathematical operator symbols (+-/*^)
:* common punctuation symbols (,.;:")
Line 14:
:* numeric digits (0-9)
:* etc
* [[EBCDIC]] characters (0-256255)
 
==Examples==
The following two examples demonstrate how a simple non-iterative table lookup, using a trivial hash function, can eliminate conditional testing & branching completely thereby reducing [[instruction path length]] significantly. Although both examples are shown here as functions, the required code would be better [[Inline expansion|inlined]] to avoid function call overhead in view of their obvious simplicity.