This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On 01/31/2014 06:34 PM, Joseph S. Myers wrote:
On Fri, 31 Jan 2014, Florian Weimer wrote:In case BSWAP turns out to be too slow for some CPUs, it could be replaced with BSF and a shift (both constant time in current processors), like we already do in some of the existing memcmp implementations.I wonder how the performance of MOVBE compares with the other options (though availability of MOVBE is sufficiently limited it may not be worth having another version of memcmp using it).
Interesting. It might allow to recover the one-cycle overhead in some cases, although the number of µops after decoding should remain the same. But as you say, it's probably not worth maintaining yet another version just for that.
-- Florian Weimer / Red Hat Product Security Team
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |