Shanks0224 opened a new pull request, #22188: URL: https://github.com/apache/nuttx/pull/22188
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary - Use `ARCH_LIBCFUN()` for the assembly symbol names. - Add an optimized `strnlen()`. - Add AVX2 implementations of `memset`, `memmove`/`memcpy`, `strlen`, `strcmp`, `strncmp`, `strcat`, `strncpy`, `stpcpy` and `stpncpy`, selected when `CONFIG_ARCH_X86_64_AVX` is set; the existing assembly remains the fallback. - Add new scan functions `strchr`, `strchrnul`, `strrchr`, `strnlen` and `memchr`, each with an AVX2 and an SSE2 version. They load page-safely, so they never read across a page boundary. All of these are opt-in through their Kconfig options (default n). ## Impact - Opt-in only; the default configuration is unchanged. - No impact on the build system beyond the new source files, documentation or hardware. ## Testing Build host: Linux x86_64. - `qemu-intel64:nsh` on QEMU with KVM, 11976 cases covering `memcmp`, `memchr`, `memmove`, `strlen`, `strnlen`, `strchr`, `strchrnul`, `strrchr`, `strcmp`, `strncmp`, `strcpy` and `memcpy` over offsets, lengths and overlaps: 0 failures with the SSE2 path, and 0 failures with `ARCH_X86_64_AVX` (AVX2 path). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
