Damm algorithm: Difference between revisions

Content added Content deleted
m (→‎static table: changed a word in the REXX section header.)
Line 1,238: Line 1,238:


=== static table ===
=== static table ===
Using a static table is over four times faster than manufacturing one.
Using a static table is over four times faster than manufacturing it.
<lang rexx>/*REXX pgm uses H. Michael Damm's algorithm to validate numbers with suffixed check sum.*/
<lang rexx>/*REXX pgm uses H. Michael Damm's algorithm to validate numbers with suffixed check sum.*/
@.0= 0317598642; @.1= 7092154863; @.2= 4206871359; @.3= 1750983426; @.4= 6123045978
@.0= 0317598642; @.1= 7092154863; @.2= 4206871359; @.3= 1750983426; @.4= 6123045978