slightly cleaner strlen, also seems to compile to better code
authorRich Felker <dalias@aerifal.cx>
Thu, 27 Sep 2012 20:56:33 +0000 (16:56 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 27 Sep 2012 20:56:33 +0000 (16:56 -0400)
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.


No differences found