diff options
Diffstat (limited to 'string')
-rw-r--r-- | string/strchr.c | 6 | ||||
-rw-r--r-- | string/strchrnul.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/string/strchr.c b/string/strchr.c index 17bd54531c..94e50baf0c 100644 --- a/string/strchr.c +++ b/string/strchr.c @@ -126,11 +126,11 @@ STRCHR (const char *s, int c_in) /* Look at only the hole bits. If any of the hole bits are unchanged, most likely one of the bytes was a zero. */ - & ~magic_bits) != 0 || + & ~magic_bits) != 0 /* That caught zeroes. Now test for C. */ - ((((longword ^ charmask) + magic_bits) ^ ~(longword ^ charmask)) - & ~magic_bits) != 0) + || ((((longword ^ charmask) + magic_bits) ^ ~(longword ^ charmask)) + & ~magic_bits) != 0) { /* Which of the bytes was C or zero? If none of them were, it was a misfire; continue the search. */ diff --git a/string/strchrnul.c b/string/strchrnul.c index 5a1af13c5b..052fb042fc 100644 --- a/string/strchrnul.c +++ b/string/strchrnul.c @@ -126,11 +126,11 @@ STRCHRNUL (const char *s, int c_in) /* Look at only the hole bits. If any of the hole bits are unchanged, most likely one of the bytes was a zero. */ - & ~magic_bits) != 0 || + & ~magic_bits) != 0 /* That caught zeroes. Now test for C. */ - ((((longword ^ charmask) + magic_bits) ^ ~(longword ^ charmask)) - & ~magic_bits) != 0) + || ((((longword ^ charmask) + magic_bits) ^ ~(longword ^ charmask)) + & ~magic_bits) != 0) { /* Which of the bytes was C or zero? If none of them were, it was a misfire; continue the search. */ |