diff options
author | Eric Salem <ericsalem@gmail.com> | 2025-04-06 15:03:23 -0500 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2025-04-15 13:20:36 -0400 |
commit | f36442cd598443cde0e1bf82a12cede05ec52c5e (patch) | |
tree | 6748f5a1bc563e4c10dd386c153ce4375b5f4cc2 /winsup/utils/profiler.cc | |
parent | 37c49decc835f65af570a45fc6b8b4f9d9b05ba2 (diff) | |
download | newlib-main.zip newlib-main.tar.gz newlib-main.tar.bz2 |
newlib: riscv: Remove unnecessary byte load/store for stpcpy()/strcpy()HEADgithub/mastergithub/mainmastermain
For architectures where XLEN is 32 bits, when detecting a null byte, a
word is read at a time. Once a null is found in the word, its precise
location is then determined. Make clear to the compiler that if the
first three bytes are not null, the last byte must be null, and does not
need to be read from the source string, since its value is always zero.
Reviewed-by: Christian Herber <christian.herber@oss.nxp.com>
Signed-off-by: Eric Salem <ericsalem@gmail.com>
Diffstat (limited to 'winsup/utils/profiler.cc')
0 files changed, 0 insertions, 0 deletions