aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2014-03-16 04:08:02 +0200
committerJukka Jylänki <jujjyl@gmail.com>2014-03-28 23:06:17 -0400
commitbbc711d5c719bbd14cd7849309e89608ae13d287 (patch)
tree0ea137dd83103c8ce0df5a29454b86ffc471b45c /system
parent0967703fd279255e2f479e6bba9bb7ef48e1c7d6 (diff)
Migrate to using musl 0.9.13 strpbrk for better asm.js performance.
Diffstat (limited to 'system')
-rw-r--r--system/lib/libc/musl/src/string/strpbrk.c7
-rw-r--r--system/lib/libcextra.symbols1
2 files changed, 8 insertions, 0 deletions
diff --git a/system/lib/libc/musl/src/string/strpbrk.c b/system/lib/libc/musl/src/string/strpbrk.c
new file mode 100644
index 00000000..55947c64
--- /dev/null
+++ b/system/lib/libc/musl/src/string/strpbrk.c
@@ -0,0 +1,7 @@
+#include <string.h>
+
+char *strpbrk(const char *s, const char *b)
+{
+ s += strcspn(s, b);
+ return *s ? (char *)s : 0;
+}
diff --git a/system/lib/libcextra.symbols b/system/lib/libcextra.symbols
index 06e68c92..7846f153 100644
--- a/system/lib/libcextra.symbols
+++ b/system/lib/libcextra.symbols
@@ -126,6 +126,7 @@
T strncat
T strndup
T strnlen
+ T strpbrk
T strrchr
T strsep
T strspn