Date: Fri, 21 Jan 2022 19:51:22 +0100 From: Joerg Sonnenberger <joerg@....de> To: libc-coord@...ts.openwall.com Cc: GNU C Library <libc-alpha@...rceware.org>, Richard Biener via Gcc <gcc@....gnu.org> Subject: Re: Add new ABIs '__strcmpeq', '__strncmpeq', '__wcscmpeq' and '__wcsncmpeq' to libc 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
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.