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 Not Applicable - Unit
Tests Not Applicable
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.