diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-08 14:30:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-08 14:30:33 (GMT) |
commit | c6b292cdeee689f0bfac6c1e2c2d4e4e01fa8d9e (patch) | |
tree | 4a7686465f3ed4a171382d4717ad558d82413951 /PCbuild | |
parent | 301f0d4ff9b6bd60599eea0612904f65a92e6dd9 (diff) | |
download | cpython-c6b292cdeee689f0bfac6c1e2c2d4e4e01fa8d9e.zip cpython-c6b292cdeee689f0bfac6c1e2c2d4e4e01fa8d9e.tar.gz cpython-c6b292cdeee689f0bfac6c1e2c2d4e4e01fa8d9e.tar.bz2 |
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().
Diffstat (limited to 'PCbuild')
-rw-r--r-- | PCbuild/pythoncore.vcxproj | 2 | ||||
-rw-r--r-- | PCbuild/pythoncore.vcxproj.filters | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj index b6b0cf3..8d5f99f 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -170,7 +170,7 @@ <ClInclude Include="..\Include\internal\pycore_accu.h" /> <ClInclude Include="..\Include\internal\pycore_atomic.h" /> <ClInclude Include="..\Include\internal\pycore_bytes_methods.h" /> - <ClInclude Include="..\Include\internal\pycore_byteswap.h" /> + <ClInclude Include="..\Include\internal\pycore_bitutils.h" /> <ClInclude Include="..\Include\internal\pycore_call.h" /> <ClInclude Include="..\Include\internal\pycore_ceval.h" /> <ClInclude Include="..\Include\internal\pycore_code.h" /> diff --git a/PCbuild/pythoncore.vcxproj.filters b/PCbuild/pythoncore.vcxproj.filters index 10dfffb..7bc9f8f 100644 --- a/PCbuild/pythoncore.vcxproj.filters +++ b/PCbuild/pythoncore.vcxproj.filters @@ -201,7 +201,7 @@ <ClInclude Include="..\Include\internal\pycore_atomic.h"> <Filter>Include</Filter> </ClInclude> - <ClInclude Include="..\Include\internal\pycore_byteswap.h"> + <ClInclude Include="..\Include\internal\pycore_bitutils.h"> <Filter>Include</Filter> </ClInclude> <ClInclude Include="..\Include\internal\pycore_bytes_methods.h"> |