Long multiplication: Difference between revisions

Content added Content deleted
Line 5,279: Line 5,279:
"/ as the language does not specify, how many bits are used to represent
"/ as the language does not specify, how many bits are used to represent
"/ SmallIntegers, and when the VM uses LargeInts.
"/ SmallIntegers, and when the VM uses LargeInts.
"/ Lets assume, we run on a 16 bit machine (smile).
"/ Lets assume, we run on a 2-digit decimal machine (smile).
"/ So lets work hard to avoid any convenient VM support,
"/ So lets work hard to avoid any convenient VM support,
"/ by doing decimal arithmetic (running on a decimal machine from the 1940's)
"/ by doing decimal arithmetic (running on a decimal machine from the 1940s)
"/ and only allow 0..99 in a word.
"/ and only allow 0..99 in a word (assuming it has a 2*2->4 digit multiply available)
"/ (smile: remember Knuth's MIX machine?)
"/ (smile: remember the Knuth MIX machine?)


"/ the code below should never ever been taken serious
"/ the code below should never ever been taken serious