diff options
Diffstat (limited to 'src/modules.js')
-rw-r--r-- | src/modules.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules.js b/src/modules.js index 71fec0cd..5c1d6a1d 100644 --- a/src/modules.js +++ b/src/modules.js @@ -259,6 +259,7 @@ var Functions = { // Generate code for function indexing generateIndexing: function() { var total = this.nextIndex; + if (ASM_JS) total = ceilPowerOfTwo(total); // must be power of 2 for mask function emptyTable(sig) { return zeros(total); } |