about summary refs log tree commit diff
path: root/src/string/strcspn.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-09-27 16:56:33 -0400
committerRich Felker <dalias@aerifal.cx>2012-09-27 16:56:33 -0400
commit3f9ff1514e49b06c20a61af9ae9e52bd53b48d9a (patch)
tree697589451e3d75da05df6e2dd38fcdabf5b4a138 /src/string/strcspn.c
parent507faa63cb12571c14d66eb37dedbe6adbbf40a8 (diff)
downloadmusl-3f9ff1514e49b06c20a61af9ae9e52bd53b48d9a.tar.gz
musl-3f9ff1514e49b06c20a61af9ae9e52bd53b48d9a.tar.xz
musl-3f9ff1514e49b06c20a61af9ae9e52bd53b48d9a.zip
slightly cleaner strlen, also seems to compile to better code
testing with gcc 4.6.3 on x86, -Os, the old version does a duplicate
null byte check after the first loop. this is purely the compiler
being stupid, but the old code was also stupid and unintuitive in how
it expressed the check.
Diffstat (limited to 'src/string/strcspn.c')
0 files changed, 0 insertions, 0 deletions