Page MenuHomeFreeBSD

lib/libc/aarch64/string: add optimized strpbrk & strsep implementations
ClosedPublic

Authored by getz on Aug 21 2024, 4:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 3, 6:55 PM
Unknown Object (File)
Mon, Nov 3, 6:05 PM
Unknown Object (File)
Sat, Nov 1, 6:49 AM
Unknown Object (File)
Tue, Oct 28, 8:07 AM
Unknown Object (File)
Mon, Oct 27, 11:29 PM
Unknown Object (File)
Mon, Oct 27, 3:41 PM
Unknown Object (File)
Mon, Oct 27, 8:48 AM
Unknown Object (File)
Mon, Oct 27, 8:25 AM
Subscribers

Details

Summary

These are direct copies from the amd64 string functions using the
optimized strcspn from D46398

Test Plan

No regressions noticed

Diff Detail

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

Event Timeline

getz requested review of this revision.Aug 21 2024, 4:29 PM

Ok.

lib/libc/aarch64/string/strsep.c
36

Could this be machine independent?

@andrew If we don't have an assembly implementation for strcspn, it's generally faster to implement this function directly.

exp-run says it's fine.

This revision is now accepted and ready to land.Nov 6 2024, 2:23 PM