diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-09-27 16:56:33 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-09-27 16:56:33 -0400 |
commit | 3f9ff1514e49b06c20a61af9ae9e52bd53b48d9a (patch) | |
tree | 697589451e3d75da05df6e2dd38fcdabf5b4a138 /src/string/strcspn.c | |
parent | 507faa63cb12571c14d66eb37dedbe6adbbf40a8 (diff) | |
download | musl-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