diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-03-24 18:56:34 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-05-07 13:35:29 -0300 |
commit | db373e4c57159ac82df4b07b596dd29c4cfe9d86 (patch) | |
tree | af01c60f6c1bbb8e2881fb7fc43bca85330d853c /nscd/nscd_getgr_r.c | |
parent | 69e0a5eb0d5acb4b55dbef68b68fc4a10f2911af (diff) | |
download | glibc-db373e4c57159ac82df4b07b596dd29c4cfe9d86.tar.gz glibc-db373e4c57159ac82df4b07b596dd29c4cfe9d86.tar.xz glibc-db373e4c57159ac82df4b07b596dd29c4cfe9d86.zip |
Remove architecture specific sched_cpucount optimizations
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.
Diffstat (limited to 'nscd/nscd_getgr_r.c')
0 files changed, 0 insertions, 0 deletions