diff --git a/src/system/libroot/posix/string/strcmp.c b/src/system/libroot/posix/string/strcmp.c index cdba1d4f01..56e058e2cb 100644 --- a/src/system/libroot/posix/string/strcmp.c +++ b/src/system/libroot/posix/string/strcmp.c @@ -15,19 +15,6 @@ int strcmp(char const *a, char const *b) { - /* Make sure we don't pass page boundries on a or b when doing four byte - comparisons */ - if ((((addr_t)a) & 3) == 0 && (((addr_t)b) && 3) == 0) { - uint32* a32 = (uint32*)a; - uint32* b32 = (uint32*)b; - - while (LACKS_ZERO_BYTE(*a32)) { - int32 cmp = *a32++ - *b32++; - if (cmp != 0) - return cmp; - } - return *a32 - *b32; - } while (true) { int cmp = (unsigned char)*a - (unsigned char)*b++; if (cmp != 0 || *a++ == '\0')