Skip to content
Commit 32c7acd4 authored by Wilco Dijkstra's avatar Wilco Dijkstra
Browse files

Replace rawmemchr (s, '\0') with strchr



Almost all uses of rawmemchr find the end of a string.  Since most targets use
a generic implementation, replacing it with strchr is better since that is
optimized by compilers into strlen (s) + s.  Also fix the generic rawmemchr
implementation to use a cast to unsigned char in the if statement.

Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
parent d2d3f372
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment