Comparing version 4.0.2 to 4.0.3
@@ -31,7 +31,8 @@ 'use strict'; | ||
this._bitrev = new Array(1 << this._width); | ||
this._bitrev.fill(0); | ||
for (var shift = 0; shift < this._width; shift += 2) { | ||
var revShift = this._width - shift - 2; | ||
for (let j = 0; j < this._bitrev.length; j++) | ||
for (var j = 0; j < this._bitrev.length; j++) { | ||
this._bitrev[j] = 0; | ||
for (var shift = 0; shift < this._width; shift += 2) { | ||
var revShift = this._width - shift - 2; | ||
this._bitrev[j] |= ((j >>> shift) & 3) << revShift; | ||
} | ||
} | ||
@@ -54,3 +55,4 @@ | ||
const res = new Array(this._csize); | ||
res.fill(0); | ||
for (var i = 0; i < res.length; i++) | ||
res[i] = 0; | ||
return res; | ||
@@ -57,0 +59,0 @@ }; |
{ | ||
"name": "fft.js", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Insanely Fast Fourier Transform (radix-4)", | ||
@@ -5,0 +5,0 @@ "main": "lib/fft.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
21621
479