Long multiplication: Difference between revisions

Line 5,278:
"/ as the language does not specify, how many bits are used to represent
"/ SmallIntegers, and when the VM uses LargeInts.
"/ Lets assume,work wehard runto onavoid aany 16convenient bitVM machine (smile).support,
"/ and assume, we run on a non-binary 2-digit decimal machine (smile).
"/ So lets work hard to avoid any convenient VM support,
"/ by doingDoing decimal arithmetic (running on a decimalwith machinewords fromholding thevalues 1940's)0..99
"/ (running on a decimal machine from the 1940's)
"/ and only allow 0..99 in a word.
"/ (smile: remember Knuth's MIX machine?)
"/ I assume we have a multiplication unit, which can multiply two 2-digit words to a 4 digit word.
"/ (if that is too much, we can easily go back to 1 digit, or 1 bit).
 
"/ theThe code below should never ever been taken serious
"/ Not even as didactic example.
"/ NOONE WOULD EVER DO SUCH A STUPID THING
Anonymous user