summaryrefslogtreecommitdiffstats
path: root/sys/libkern/strspn.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace the current strspn() and strcspn() with significantly fasterdas2005-04-021-24/+40
| | | | | | | | | implementations inspired by the ones in DragonFly. Unlike the DragonFly versions, these have a small data cache footprint, and my tests show that they're never slower than the old code except when the charset or the span is 0 or 1 characters. This implementation is generally faster than DragonFly until either the charset or the span gets in the ballpark of 32 to 64 characters.
* Add strspn() to libkern.glebius2005-02-101-0/+55
Ok'ed by: rwatson
OpenPOWER on IntegriCloud