[libc-coord] Add new ABIs '__strcmpeq', '__strncmpeq', '__wcscmpeq' and '__wcsncmpeq' to libc

Joerg Sonnenberger joerg@bec.de
Fri Jan 21 18:51:22 GMT 2022


On Thu, Jan 20, 2022 at 04:56:59PM -0600, Noah Goldstein wrote:
> The goal is that the new interfaces will be usable as an optimization
> by compilers if a program uses the return value of the non "eq"
> variant as a boolean.

So I'm curious, but can you demonstrate that it can be implemented
notacibly faster than regular strcmp? Unlike for memcmp, I don't see an
obvious way to save any operations.

Joerg


More information about the Gcc mailing list