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)
Apr 30 2024, 6:30 PM
Unknown Object (File)
Apr 28 2024, 6:43 PM
Unknown Object (File)
Feb 10 2024, 5:56 PM
Unknown Object (File)
Jan 25 2024, 12:38 AM
Unknown Object (File)
Jan 4 2024, 6:45 PM
Unknown Object (File)
Dec 25 2023, 6:09 PM
Unknown Object (File)
Dec 23 2023, 3:11 AM
Unknown Object (File)
Dec 20 2023, 2:21 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 Not Applicable
Unit
Tests Not Applicable