aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/iconv
diff options
context:
space:
mode:
authorEric Salem <ericsalem@gmail.com>2025-04-06 15:03:23 -0500
committerJeff Johnston <jjohnstn@redhat.com>2025-04-15 13:20:36 -0400
commitf36442cd598443cde0e1bf82a12cede05ec52c5e (patch)
tree6748f5a1bc563e4c10dd386c153ce4375b5f4cc2 /newlib/libc/iconv
parent37c49decc835f65af570a45fc6b8b4f9d9b05ba2 (diff)
downloadnewlib-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 'newlib/libc/iconv')
0 files changed, 0 insertions, 0 deletions