Skip to content

Commit 7392b47

Browse files
committed
Workflow name, comments.
1 parent 266d6a1 commit 7392b47

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

libc-top-half/musl/src/string/strlen.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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).

0 commit comments

Comments
 (0)