Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix aliasing-based undefined behavior in string functions | Rich Felker | 2018-09-26 | 1 | -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. | ||||
* | include cleanups: remove unused headers and add feature test macros | Szabolcs Nagy | 2013-12-12 | 1 | -1/+0 |
| | |||||
* | slightly cleaner strlen, also seems to compile to better code | Rich Felker | 2012-09-27 | 1 | -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. | ||||
* | initial check-in, version 0.5.0 v0.5.0 | Rich Felker | 2011-02-12 | 1 | -0/+21 |