diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2014-03-16 03:57:19 +0200 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2014-03-28 23:06:17 -0400 |
commit | 4fc97c69d66a81e93849ebbff1f6eed8be7dd174 (patch) | |
tree | cbd286947d534280650d067f45e23ab7b0b5c89c /src | |
parent | fc1a3e285393446ef3cc2fad07b2611bf2da80d4 (diff) |
Migrate to using musl 0.9.13 strstr for better asm.js performance.
Diffstat (limited to 'src')
-rw-r--r-- | src/library.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/library.js b/src/library.js index 543f6f04..fbef0d15 100644 --- a/src/library.js +++ b/src/library.js @@ -3639,25 +3639,6 @@ LibraryManager.library = { return pdest|0; }, - strstr: function(ptr1, ptr2) { - var check = 0, start; - do { - if (!check) { - start = ptr1; - check = ptr2; - } - var curr1 = {{{ makeGetValue('ptr1++', 0, 'i8') }}}; - var curr2 = {{{ makeGetValue('check++', 0, 'i8') }}}; - if (curr2 == 0) return start; - if (curr2 != curr1) { - // rewind to one character after start, to find ez in eeez - ptr1 = start + 1; - check = 0; - } - } while (curr1); - return 0; - }, - strchr: function(ptr, chr) { ptr--; do { |