bloomfilter
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -48,5 +48,4 @@ (function(exports) { | ||
k = this.k, | ||
m = this.m, | ||
buckets = this.buckets; | ||
while (++i < k) buckets[Math.floor(l[i] / m)] |= 1 << (l[i] % m); | ||
while (++i < k) buckets[Math.floor(l[i] / 32)] |= 1 << (l[i] % 32); | ||
}; | ||
@@ -58,3 +57,2 @@ | ||
k = this.k, | ||
m = this.m, | ||
b, | ||
@@ -64,3 +62,3 @@ buckets = this.buckets; | ||
b = l[i]; | ||
if ((buckets[Math.floor(b / m)] & (1 << (b % m))) === 0) { | ||
if ((buckets[Math.floor(b / 32)] & (1 << (b % 32))) === 0) { | ||
return false; | ||
@@ -67,0 +65,0 @@ } |
{ | ||
"name": "bloomfilter", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Fast bloom filter in JavaScript.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
6102
103