mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-04 02:40:06 +00:00
db373e4c57
And replace the generic algorithm with the Brian Kernighan's one. GCC optimize it with popcnt if the architecture supports, so there is no need to add the extra POPCNT define to enable it. This is really a micro-optimization that only adds complexity: recent ABIs already support it (x86-64-v2 or power64le) and it simplifies the code for internal usage, since i686 does not allow an internal iFUNC call. Checked on x86_64-linux-gnu, aarch64-linux-gnu, and powerpc64le-linux-gnu. |
||
---|---|---|
.. | ||
fpu | ||
multiarch | ||
nptl | ||
add_n.S | ||
bcopy.S | ||
bzero.S | ||
dl-hash.h | ||
ffs.c | ||
isa.h | ||
Makefile | ||
memcmp.S | ||
memcpy.S | ||
memmove.S | ||
mempcpy.S | ||
memset.S | ||
memusage.h | ||
pthread_spin_trylock.S | ||
strcmp.S | ||
tst-stack-align.h |