Call into SIMD strlen and stpcpy for an optimized strcat.
Port of D42600 for amd64.
Details
Details
Passes the strcat tests in the test suite
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 59156 Build 56043: arc lint + arc unit
Event Timeline
Comment Actions
This is probably better done in C code. We don't do any fancy SIMD shenanigans here. The only reason I did it in assembly in D42600 is that the implementation shared a file with an optimised assembly implementation, so it couldn't be done in C.
Code looks ok.
Comment Actions
@andrew If we don't have assembly implementations for strlen and stpcpy, it's generally faster to implement this function directly.