Follow up commit to reindent the code.
MFC after: 1 month
This commit is contained in:
parent
dabae22639
commit
51e48ff21b
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user