diff options
Diffstat (limited to 'lib/libc/string/strlen.c')
-rw-r--r-- | lib/libc/string/strlen.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/libc/string/strlen.c b/lib/libc/string/strlen.c index 319e44b..0302ace 100644 --- a/lib/libc/string/strlen.c +++ b/lib/libc/string/strlen.c @@ -101,27 +101,27 @@ strlen(const char *str) vb = ((~*lp) & mask80); if (va & vb) /* Check if we have \0 in the first part */ - for (p = str; (uintptr_t)p & LONGPTR_MASK; p++) - if (*p == '\0') - return (p - str); + for (p = str; (uintptr_t)p & LONGPTR_MASK; p++) + if (*p == '\0') + return (p - str); /* Scan the rest of the string using word sized operation */ for (lp = (const unsigned long *)p; ; lp++) { va = (*lp - mask01); vb = ((~*lp) & mask80); if (va & vb) { - p = (const char *)(lp); - testbyte(0); - testbyte(1); - testbyte(2); - testbyte(3); + p = (const char *)(lp); + testbyte(0); + testbyte(1); + testbyte(2); + testbyte(3); #if (LONG_BIT >= 64) - testbyte(4); - testbyte(5); - testbyte(6); - testbyte(7); + testbyte(4); + testbyte(5); + testbyte(6); + testbyte(7); #endif - } + } } /* NOTREACHED */ |