This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Raif S. Naffah wrote:
...and speed, for some numerical algorithms where modulo 2**32 is enough.Not necessarirly. I don't think canonicaliztion of small integers is required for correctness, just (space) effiency...
canonicalize "in place" (i.e. ignoring the looking in smallFixNums still converts the 1-word integers to use just the 'ival' field without the 'words' array. The issue is whether the input BigInteger, after "normalization-in-place" is replace by the equivalent BigInteger in the smallFixNums array. The later wouldn't change the algorithms used, just the identity of the objects used. -- --Per Bothner per@bothner.com http://www.bothner.com/per/
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |