aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-06 18:38:48 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-06 18:38:48 -0800
commit5cb03faced4a10da93f78f674f643b6862855390 (patch)
tree497ef37ebb751505b21d5d935643f4238c4a09e9 /src/library.js
parent11df7779bc1b8b3e4d1bce79e867c927ab0dbaf9 (diff)
simplify loop unrolling of memcpy and memset
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index 848a2571..075f9750 100644
--- a/src/library.js
+++ b/src/library.js
@@ -4326,7 +4326,7 @@ LibraryManager.library = {
ptr = ptr|0; value = value|0; num = num|0;
var stop = 0, value4 = 0, stop4 = 0, unaligned = 0;
stop = (ptr + num)|0;
- if ((num|0) >= {{{ SEEK_OPTIMAL_ALIGN_MIN }}}) {
+ if ((num|0) >= {{{ Math.round(2.5*UNROLL_LOOP_MAX) }}}) {
// This is unaligned, but quite large, so work hard to get to aligned settings
value = value & 0xff;
unaligned = ptr & 3;