diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-01 17:40:59 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-01 17:40:59 -0700 |
commit | 8da1f7e4285732527955c5b8a97c25fca79f7943 (patch) | |
tree | 923bd5aa9781941ded72a6e19f07eb558be44074 /src | |
parent | 63cfce0325e60f9197b2692a8de7426e9cd4a206 (diff) |
fix alignment detection in asm for makeCopyValues, strip corrections before calculating
Diffstat (limited to 'src')
-rw-r--r-- | src/parseTools.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 39de4b7c..5e5df88f 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1361,6 +1361,8 @@ function makeCopyValues(dest, src, num, type, modifier, align, sep) { unroll(type, 1) + ' }'; } else { // USE_TYPED_ARRAYS == 2 // If we don't know how to handle this at compile-time, or handling it is best done in a large amount of code, call memset + if (!isNumber(num)) num = stripCorrections(num); + if (!isNumber(align)) align = stripCorrections(align); if (!isNumber(num) || (parseInt(num)/align >= UNROLL_LOOP_MAX)) { return '_memcpy(' + dest + ', ' + src + ', ' + num + ')'; } |