From db373e4c57159ac82df4b07b596dd29c4cfe9d86 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Wed, 24 Mar 2021 18:56:34 -0300 Subject: 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. --- sysdeps/i386/i686/multiarch/sched_cpucount.c | 1 - 1 file changed, 1 deletion(-) delete mode 100644 sysdeps/i386/i686/multiarch/sched_cpucount.c (limited to 'sysdeps/i386') diff --git a/sysdeps/i386/i686/multiarch/sched_cpucount.c b/sysdeps/i386/i686/multiarch/sched_cpucount.c deleted file mode 100644 index 7db31b02f8..0000000000 --- a/sysdeps/i386/i686/multiarch/sched_cpucount.c +++ /dev/null @@ -1 +0,0 @@ -#include -- cgit 1.4.1