Implemented 36-bit multiplication with support for (up to) 72-bit results
This commit is contained in:
parent
f03a5686e5
commit
a0ddaa2239
1 changed files with 3 additions and 1 deletions
|
|
@ -162,7 +162,9 @@ class Int36 {
|
|||
if (extended) {
|
||||
if (fUnsigned) extended += Int36.BIT36;
|
||||
/*
|
||||
* TODO: Come up with a solution that won't overflow JavaScript's more limited precision.
|
||||
* TODO: Need a radix-independent solution for these extended (up to 72-bit) values,
|
||||
* because after 52 bits, JavaScript will start dropping least-significant bits. Until
|
||||
* then, you're better off sticking with octal (see above).
|
||||
*/
|
||||
value = extended * Int36.BIT36 + value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue