Browse Source
bpo-29882: Add _Py_popcount32() function (GH-20518)
bpo-29882: Add _Py_popcount32() function (GH-20518)
* Rename pycore_byteswap.h to pycore_bitutils.h. * Move popcount_digit() to pycore_bitutils.h as _Py_popcount32(). * _Py_popcount32() uses GCC and clang builtin function if available. * Add unit tests to _Py_popcount32().pull/20758/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 108 additions and 39 deletions
-
51Include/internal/pycore_bitutils.h
-
2Makefile.pre.in
-
2Modules/_ctypes/cfield.c
-
42Modules/_testinternalcapi.c
-
2Modules/sha256module.c
-
2Modules/sha512module.c
-
15Objects/longobject.c
-
2Objects/stringlib/codecs.h
-
2PCbuild/pythoncore.vcxproj
-
2PCbuild/pythoncore.vcxproj.filters
-
25Python/hamt.c
Write
Preview
Loading…
Cancel
Save
Reference in new issue