mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 11:20:07 +00:00
40b7fbf273
This is transformed into rawmemchr by the bits/string2.h header. However this is generally slower than strlen on most targets, even when an optimized rawmemchr implementation exists. Since GCC7 optimizes strchr (s, '\0') to strlen (s) + s, the GLIBC headers should not transform this to rawmemchr. As GCC recognizes strchr as a builtin, defining strchr as the builtin is not useful. * string/bits/string2.h (strchr): Remove define. |
||
---|---|---|
.. | ||
string2.h | ||
string3.h | ||
strings_fortified.h |