[Q] Project: Better performance for LargeIntegers

Dan Ingalls Dan.Ingalls at disney.com
Sat Oct 30 05:43:42 UTC 1999


>>Well, since we're talking hackery here, Squeak's long Floats can 
>>probably help a lot.
>>Yeh jes' load 'em into da mantissa an' press 'start'  (hey, it's 
>>Friday night ;-).
>
>That should work for the adding of the 32 bitters.  How would you do 
>a multiply?

You don't use 32 bits (since Squeak's ints are only 30 bits + sign anyway.
You make the choice of how many bits per int on how many the mult will handle.  Probably around 25.  There are some clever things you can do like adding a certain constant that forces everything to stay in alignment.

	-D





More information about the Squeak-dev mailing list