glibc/posix
Adhemerval Zanella db373e4c57 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.
2021-05-07 13:35:29 -03:00
..
bits
bug-ga2.root/etc
rxspencer
sys
_exit.c
alarm.c
annexc.c
BOOST.tests
bsd-getpgrp.c
bug-ga1.c
bug-ga2.c
bug-getopt1.c
bug-getopt2.c
bug-getopt3.c
bug-getopt4.c
bug-getopt5.c
bug-glob2.c
bug-glob3.c
bug-regex1.c
bug-regex2.c
bug-regex3.c
bug-regex4.c
bug-regex5.c
bug-regex6.c
bug-regex7.c
bug-regex8.c
bug-regex9.c
bug-regex10.c
bug-regex11.c
bug-regex12.c
bug-regex13.c
bug-regex14.c
bug-regex15.c
bug-regex16.c
bug-regex17.c
bug-regex18.c
bug-regex19.c
bug-regex20.c
bug-regex21.c
bug-regex22.c
bug-regex23.c
bug-regex24.c
bug-regex25.c
bug-regex26.c
bug-regex27.c
bug-regex28.c
bug-regex29.c
bug-regex30.c
bug-regex31.c
bug-regex31.input
bug-regex32.c
bug-regex33.c Annotate additional APIs with GCC attribute access. 2021-05-06 11:01:05 -06:00
bug-regex34.c
bug-regex35.c
bug-regex36.c
bug-regex37.c
bug-regex38.c
confstr.c
cpio.h
Depend
environ.c
execl.c
execle.c
execlp.c
execv.c
execve.c
execveat.c linux: Add execveat system call wrapper 2021-05-03 16:46:06 -03:00
execvp.c
execvpe.c
fexecve.c
flexmember.h
fnmatch_loop.c
fnmatch.c posix: Falling back to non wide mode in case of encoding error [BZ #14185] 2021-02-23 15:58:04 -03:00
fnmatch.h
fork.c
fpathconf.c
gai_strerror.c
gai.conf
get_child_max.c
getaddrinfo.c
getconf-speclist.c
getconf.c Fix argv overrun in getconf (bug 27761) 2021-04-21 15:11:26 +02:00
getegid.c
geteuid.c
getgid.c
getgroups.c
getopt1.c
getopt_int.h
getopt.c
getopt.h
getpgid.c
getpgrp.c
getpid.c
getppid.c
getresgid.c
getresuid.c
getsid.c
getuid.c
glob64-lstat-compat.c
glob64.c
glob_internal.h
glob_pattern_p.c
glob-lstat-compat.c
glob.c
glob.h posix: glob, glob64 should not be declared __THROW [BZ #27522] 2021-03-05 14:07:26 +01:00
globfree64.c
globfree.c
globtest.c
globtest.sh
group_member.c
init-posix.c
Makefile linux: Add execveat system call wrapper 2021-05-03 16:46:06 -03:00
nanosleep.c
pathconf.c
pause.c
PCRE.tests
posix_madvise.c
posix-conf-vars.h
posix-conf-vars.list
posix-envs.def
pread64.c
pread.c
PTESTS
PTESTS2C.sed
pwrite64.c
pwrite.c
re_comp.h
regcomp.c
regex_internal.c
regex_internal.h regex: stop using alloca 2021-02-09 16:58:16 -03:00
regex.c
regex.h Annotate additional APIs with GCC attribute access. 2021-05-06 11:01:05 -06:00
regexbug1.c
regexec.c regexec: remove alloca usage in build_trtable 2021-02-09 16:57:56 -03:00
register-atfork.c posix: Consolidate register-atfork 2021-03-12 10:19:22 -03:00
runptests.c
runtests.c
sched_cpualloc.c
sched_cpucount.c Remove architecture specific sched_cpucount optimizations 2021-05-07 13:35:29 -03:00
sched_cpufree.c
sched_getaffinity.c
sched_getp.c
sched_gets.c
sched_primax.c
sched_primin.c
sched_rr_gi.c
sched_setaffinity.c
sched_setp.c
sched_sets.c
sched_yield.c
sched.h
setgid.c
setpgid.c
setpgrp.c
setresgid.c
setresuid.c
setsid.c
setuid.c
shm-directory.c nptl: Move sem_close, sem_open into libc 2021-05-05 17:19:38 +02:00
sleep.c
spawn_faction_addchdir.c
spawn_faction_addclose.c
spawn_faction_adddup2.c
spawn_faction_addfchdir.c
spawn_faction_addopen.c
spawn_faction_destroy.c
spawn_faction_init.c
spawn_int.h
spawn_valid_fd.c
spawn.c
spawn.h
spawnattr_destroy.c
spawnattr_getdefault.c
spawnattr_getflags.c
spawnattr_getpgroup.c
spawnattr_getschedparam.c
spawnattr_getschedpolicy.c
spawnattr_getsigmask.c
spawnattr_init.c
spawnattr_setdefault.c
spawnattr_setflags.c
spawnattr_setpgroup.c
spawnattr_setschedparam.c
spawnattr_setschedpolicy.c
spawnattr_setsigmask.c
spawni.c
spawnp.c
streams-compat.c
sysconf.c
tar.h
test-errno.c
test-ssize-max.c
test-vfork.c
testfnm.c
TESTS
TESTS2C.sed
times.c
transbug.c
tst-boost.c
tst-chmod.c
tst-cpucount.c
tst-cpuset.c
tst-dir.c
tst-exec-static.c
tst-exec.c
tst-execl1.c
tst-execl2.c
tst-execle1.c
tst-execle2.c
tst-execlp1.c
tst-execlp2.c
tst-execv1.c
tst-execv2.c
tst-execve1.c
tst-execve2.c
tst-execveat.c posix: Fix Hurd build failure in tst-execveat 2021-05-04 16:03:07 +02:00
tst-execvp1.c
tst-execvp2.c
tst-execvp3.c
tst-execvp4.c
tst-execvpe1.c
tst-execvpe2.c
tst-execvpe3.c
tst-execvpe4.c
tst-execvpe5.c
tst-execvpe6.c
tst-fexecve.c
tst-fnmatch2.c
tst-fnmatch3.c
tst-fnmatch4.c
tst-fnmatch5.c
tst-fnmatch6.c
tst-fnmatch.c
tst-fnmatch.input posix: Falling back to non wide mode in case of encoding error [BZ #14185] 2021-02-23 15:58:04 -03:00
tst-fork.c
tst-getaddrinfo2.c
tst-getaddrinfo3.c
tst-getaddrinfo4.c
tst-getaddrinfo5.c
tst-getaddrinfo.c
tst-getconf.sh
tst-getopt_long1.c
tst-getopt-cancel.c
tst-glob_lstat_compat.c posix: tst-glob_lstat_compat no longer needs to be an internal test 2021-03-09 21:07:24 +01:00
tst-glob_symlinks.c
tst-glob-tilde.c
tst-gnuglob64.c
tst-gnuglob-skeleton.c
tst-gnuglob.c
tst-mmap-offset.c
tst-mmap.c
tst-nanosleep.c
tst-nice.c
tst-pathconf.c
tst-pcre.c
tst-posix_fadvise64.c
tst-posix_fadvise-common.c
tst-posix_fadvise.c
tst-posix_spawn-fd.c
tst-posix_spawn-setsid.c
tst-preadwrite64.c
tst-preadwrite-common.c
tst-preadwrite.c
tst-regcomp-truncated.c
tst-regex2.c
tst-regex.c
tst-regex.input
tst-regexloc.c
tst-rfc3484-2.c
tst-rfc3484-3.c
tst-rfc3484.c
tst-rxspencer-no-utf8.c
tst-rxspencer.c
tst-sched_rr_get_interval.c tst: Provide test for sched_rr_get_interval 2021-02-16 20:35:37 +01:00
tst-spawn2.c
tst-spawn3.c
tst-spawn4-compat.c posix: tst-spawn4-compat can be a regular test 2021-03-09 21:07:24 +01:00
tst-spawn4.c
tst-spawn-chdir.c
tst-spawn-static.c
tst-spawn.c
tst-sysconf-empty-chroot.c
tst-sysconf.c
tst-truncate64.c
tst-truncate-common.c
tst-truncate.c
tst-vfork1.c
tst-vfork2.c
tst-vfork3.c
tst-wait3.c posix: Add wait3 tests 2021-04-15 11:32:40 -03:00
tst-wait4.c posix: Add wait3 tests 2021-04-15 11:32:40 -03:00
tst-wait-skeleton.c posix: Add wait3 tests 2021-04-15 11:32:40 -03:00
tst-waitid.c
tst-wordexp-nocmd.c
tstgetopt.c
uname-values.h
uname.c
unistd.h linux: Add execveat system call wrapper 2021-05-03 16:46:06 -03:00
Versions linux: Add execveat system call wrapper 2021-05-03 16:46:06 -03:00
vfork.c
wait3.c
wait4.c
wait.c
wait.h
waitid.c
waitpid.c
wordexp-test.c
wordexp-tst.sh
wordexp.c
wordexp.h