File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
libc-top-half/musl/src/string Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ jobs:
110110 TARGET_TRIPLE : wasm32-wasip1-threads
111111 THREAD_MODEL : posix
112112
113- - name : Test SIMD
113+ - name : Test wasm32-wasi-simd
114114 os : ubuntu-24.04
115115 clang_version : 16
116116 test : true
Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ size_t strlen(const char *s)
2525 // Bitmask is slow on AArch64, all_true is much faster.
2626 if (!wasm_i8x16_all_true (* v )) {
2727 const v128_t cmp = wasm_i8x16_eq (* v , (v128_t ){});
28- // Clear the bits corresponding to alignment (little-endian)
28+ // Clear the bits corresponding to align (little-endian)
2929 // so we can count trailing zeros.
3030 int mask = wasm_i8x16_bitmask (cmp ) >> align << align ;
31- // At least one bit will be set, unless we cleared them.
32- // Knowing this helps the compiler.
31+ // At least one bit will be set, unless align cleared them.
32+ // Knowing this helps the compiler if it unrolls the loop .
3333 __builtin_assume (mask || align );
34- // If the mask is zero because of alignment ,
34+ // If the mask became zero because of align ,
3535 // it's as if we didn't find anything.
3636 if (mask ) {
3737 // Find the offset of the first one bit (little-endian).
You can’t perform that action at this time.
0 commit comments