diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2017-02-10 17:26:16 +0000 |
---|---|---|
committer | Wilco Dijkstra <wdijkstr@arm.com> | 2017-02-10 17:28:11 +0000 |
commit | 40b7fbf27310d4f4a899aa2c54740dce5369ec70 (patch) | |
tree | df78f63943d48a7e7af1718d1db7b8229044a2f1 /ChangeLog | |
parent | 3403a17fea8ccef7dc5f99553a13231acf838744 (diff) | |
download | glibc-40b7fbf27310d4f4a899aa2c54740dce5369ec70.tar.gz glibc-40b7fbf27310d4f4a899aa2c54740dce5369ec70.tar.xz glibc-40b7fbf27310d4f4a899aa2c54740dce5369ec70.zip |
GLIBC uses strchr (s, '\0') as an idiom to find the end of a string.
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 66dfc2b610..fac0e11c40 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2017-02-10 Wilco Dijkstra <wdijkstr@arm.com> + + * string/bits/string2.h (strchr): Remove define. + 2017-02-09 H.J. Lu <hongjiu.lu@intel.com> * sysdeps/x86_64/Makefile (tests): Add tst-sse, tst-avx and |