Comparing version 0.11.3 to 0.11.4
5
1.js
@@ -12,7 +12,6 @@ var bn = require('./'); | ||
console.time('montSqr'); | ||
am.words = new Array(100); | ||
for (var i = 0; i < 4000000; i++) { | ||
t += a.mulTo(a, am).length; | ||
for (var i = 0; i < 8000; i++) { | ||
t += am.redInvm().length; | ||
} | ||
console.timeEnd('montSqr'); | ||
console.log(t); |
@@ -1319,7 +1319,6 @@ // Utils | ||
} | ||
for (var i = 0; i < num.length; i++) { | ||
if (num.words[i] >= 0x4000000) { | ||
num.words[i + 1] += num.words[i] >>> 26; | ||
num.words[i] &= 0x3ffffff; | ||
} | ||
var w = num.words[num.length - 2]; | ||
if (w >= 0x4000000) { | ||
num.words[num.length - 1] += w >>> 26; | ||
num.words[num.length - 2] = w & 0x3ffffff; | ||
} | ||
@@ -1326,0 +1325,0 @@ if (num.words[num.length - 1] === 0) |
{ | ||
"name": "bn.js", | ||
"version": "0.11.3", | ||
"version": "0.11.4", | ||
"description": "Big number implementation in pure javascript", | ||
@@ -5,0 +5,0 @@ "main": "lib/bn.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1900756
9
1772