diff --git a/embed/bcw2/bcw2.wasm b/embed/bcw2/bcw2.wasm index d770eda..837fa85 100755 Binary files a/embed/bcw2/bcw2.wasm and b/embed/bcw2/bcw2.wasm differ diff --git a/embed/bcw2/build.sh b/embed/bcw2/build.sh index 83fc712..16b7808 100755 --- a/embed/bcw2/build.sh +++ b/embed/bcw2/build.sh @@ -13,8 +13,8 @@ mkdir -p build/ext/ cp "$ROOT"/sqlite3/*.[ch] build/ cp "$ROOT"/sqlite3/*.patch build/ -# https://sqlite.org/src/info/4196efe83c2fa850 -curl -# https://sqlite.org/src/tarball/sqlite.tar.gz?r=4196efe8 | tar xz +# https://sqlite.org/src/info/3215186aa9204149 +curl -# https://sqlite.org/src/tarball/sqlite.tar.gz?r=3215186a | tar xz cd sqlite if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then diff --git a/embed/sqlite3.wasm b/embed/sqlite3.wasm index 7be8de5..88ebe99 100755 Binary files a/embed/sqlite3.wasm and b/embed/sqlite3.wasm differ diff --git a/sqlite3/libc/string.h b/sqlite3/libc/string.h index fba3421..678d8f6 100644 --- a/sqlite3/libc/string.h +++ b/sqlite3/libc/string.h @@ -50,7 +50,7 @@ void *memmove(void *dest, const void *src, size_t n) { __attribute__((weak)) int memcmp(const void *v1, const void *v2, size_t n) { // memcmp can read up to n bytes from each object. - // Using unaligned loads to handle the case where + // Use unaligned loads to handle the case where // the objects have mismatching alignments. const v128_t *w1 = v1; const v128_t *w2 = v2; @@ -151,7 +151,7 @@ static int __strcmp(const char *s1, const char *s2) { const v128_t *const limit = (v128_t *)(__builtin_wasm_memory_size(0) * PAGESIZE) - 1; - // Using unaligned loads to handle the case where + // Use unaligned loads to handle the case where // the strings have mismatching alignments. const v128_t *w1 = (void *)s1; const v128_t *w2 = (void *)s2; @@ -199,7 +199,7 @@ int strncmp(const char *s1, const char *s2, size_t n) { const v128_t *const limit = (v128_t *)(__builtin_wasm_memory_size(0) * PAGESIZE) - 1; - // Using unaligned loads to handle the case where + // Use unaligned loads to handle the case where // the strings have mismatching alignments. const v128_t *w1 = (void *)s1; const v128_t *w2 = (void *)s2; @@ -304,7 +304,7 @@ size_t strspn(const char *s, const char *c) { return s - a; } -#if defined(__OPTIMIZE_SIZE__) || !defined(__OPTIMIZE__) +#if !__OPTIMIZE__ || __OPTIMIZE_SIZE__ // Unoptimized version. memset(byteset, 0, sizeof(byteset)); @@ -339,7 +339,7 @@ size_t strcspn(const char *s, const char *c) { if (!c[0] || !c[1]) return __strchrnul(s, *c) - s; -#if defined(__OPTIMIZE_SIZE__) || !defined(__OPTIMIZE__) +#if !__OPTIMIZE__ || __OPTIMIZE_SIZE__ // Unoptimized version. memset(byteset, 0, sizeof(byteset)); diff --git a/vfs/tests/mptest/wasm/mptest.wasm b/vfs/tests/mptest/wasm/mptest.wasm index 95942c0..1655131 100644 Binary files a/vfs/tests/mptest/wasm/mptest.wasm and b/vfs/tests/mptest/wasm/mptest.wasm differ diff --git a/vfs/tests/speedtest1/wasm/speedtest1.wasm b/vfs/tests/speedtest1/wasm/speedtest1.wasm index 9d42a9e..299df6f 100644 Binary files a/vfs/tests/speedtest1/wasm/speedtest1.wasm and b/vfs/tests/speedtest1/wasm/speedtest1.wasm differ