Page MenuHomeFreeBSD

lib/libc/amd64/string: implement strsep() through strcspn()
ClosedPublic

Authored by fuz on Oct 24 2023, 4:41 AM.
Tags
None
Referenced Files
F133022110: D42346.diff
Wed, Oct 22, 3:54 AM
Unknown Object (File)
Mon, Oct 20, 11:50 AM
Unknown Object (File)
Mon, Oct 20, 11:50 AM
Unknown Object (File)
Mon, Oct 20, 11:50 AM
Unknown Object (File)
Sun, Oct 19, 9:25 PM
Unknown Object (File)
Sun, Oct 19, 7:32 AM
Unknown Object (File)
Sat, Oct 18, 3:32 AM
Unknown Object (File)
Wed, Oct 15, 2:05 AM
Subscribers

Details

Summary

The strsep() function is basically strcspn() with extra steps.
On amd64, we now have an optimised implementation of strcspn(),
so instead of implementing the inner loop manually, just call
into the optimised routine.

Sponsored by: The FreeBSD Foundation.

Test Plan

no new test suite failures when substituting this
implementation.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 54146
Build 51036: arc lint + arc unit