diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2014-03-16 04:08:02 +0200 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2014-03-28 23:06:17 -0400 |
commit | bbc711d5c719bbd14cd7849309e89608ae13d287 (patch) | |
tree | 0ea137dd83103c8ce0df5a29454b86ffc471b45c /src | |
parent | 0967703fd279255e2f479e6bba9bb7ef48e1c7d6 (diff) |
Migrate to using musl 0.9.13 strpbrk for better asm.js performance.
Diffstat (limited to 'src')
-rw-r--r-- | src/library.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/library.js b/src/library.js index 6f8fba5e..e7298721 100644 --- a/src/library.js +++ b/src/library.js @@ -3639,23 +3639,6 @@ LibraryManager.library = { return pdest|0; }, - strpbrk: function(ptr1, ptr2) { - var curr; - var searchSet = {}; - while (1) { - var curr = {{{ makeGetValue('ptr2++', 0, 'i8') }}}; - if (!curr) break; - searchSet[curr] = 1; - } - while (1) { - curr = {{{ makeGetValue('ptr1', 0, 'i8') }}}; - if (!curr) break; - if (curr in searchSet) return ptr1; - ptr1++; - } - return 0; - }, - __strtok_state: 0, strtok__deps: ['__strtok_state', 'strtok_r'], strtok__postset: '___strtok_state = Runtime.staticAlloc(4);', |