musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/string/strlen.c
AgeCommit message (Collapse)AuthorLines
2018年09月26日fix aliasing-based undefined behavior in string functions Rich Felker-2/+6
use the GNU C may_alias attribute if available, and fallback to naive byte-by-byte loops if __GNUC__ is not defined. this patch has been written to minimize changes so that history remains reviewable; it does not attempt to bring the affected code into a more consistent or elegant form.
2013年12月12日include cleanups: remove unused headers and add feature test macros Szabolcs Nagy-1/+0
2012年09月27日slightly cleaner strlen, also seems to compile to better code Rich Felker-6/+4
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.
2011年02月12日initial check-in, version 0.5.0 v0.5.0 Rich Felker-0/+21
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月10日 13:21:43 +0000

AltStyle によって変換されたページ (->オリジナル) /