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)
Sun, Jan 26, 6:00 PM
Unknown Object (File)
Fri, Jan 24, 5:45 PM
Unknown Object (File)
Mon, Jan 13, 7:28 PM
Unknown Object (File)
Fri, Jan 10, 5:07 PM
Unknown Object (File)
Wed, Jan 1, 12:14 AM
Unknown Object (File)
Dec 31 2024, 12:45 AM
Unknown Object (File)
Dec 30 2024, 1:01 AM
Unknown Object (File)
Dec 29 2024, 12:50 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 59127
Build 56014: 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
35

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