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
Unknown Object (File)
Nov 13 2024, 11:33 AM
Unknown Object (File)
Sep 20 2024, 4:13 PM
Unknown Object (File)
Sep 14 2024, 9:13 AM
Unknown Object (File)
Sep 1 2024, 12:00 PM
Unknown Object (File)
Sep 1 2024, 11:59 AM
Unknown Object (File)
Sep 1 2024, 11:59 AM
Unknown Object (File)
Sep 1 2024, 11:49 AM
Unknown Object (File)
Jul 10 2024, 12:57 PM
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