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)
Fri, Nov 14, 6:42 PM
Unknown Object (File)
Fri, Nov 14, 1:29 PM
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
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