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
F127258101: D46399.id149057.diff
Fri, Aug 29, 5:28 PM
Unknown Object (File)
Fri, Aug 22, 3:55 PM
Unknown Object (File)
Fri, Aug 15, 12:00 AM
Unknown Object (File)
Jul 27 2025, 11:14 PM
Unknown Object (File)
Jul 27 2025, 1:52 PM
Unknown Object (File)
Jul 27 2025, 7:45 AM
Unknown Object (File)
Jul 27 2025, 3:58 AM
Unknown Object (File)
Jul 25 2025, 5:37 PM
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 Not Applicable
Unit
Tests Not Applicable

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