summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib/codecs.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-06-08 14:30:33 (GMT)
committerGitHub <noreply@github.com>2020-06-08 14:30:33 (GMT)
commitc6b292cdeee689f0bfac6c1e2c2d4e4e01fa8d9e (patch)
tree4a7686465f3ed4a171382d4717ad558d82413951 /Objects/stringlib/codecs.h
parent301f0d4ff9b6bd60599eea0612904f65a92e6dd9 (diff)
downloadcpython-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 'Objects/stringlib/codecs.h')
-rw-r--r--Objects/stringlib/codecs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringlib/codecs.h b/Objects/stringlib/codecs.h
index 9b2a29b..197605b 100644
--- a/Objects/stringlib/codecs.h
+++ b/Objects/stringlib/codecs.h
@@ -4,7 +4,7 @@
# error "codecs.h is specific to Unicode"
#endif
-#include "pycore_byteswap.h" // _Py_bswap32()
+#include "pycore_bitutils.h" // _Py_bswap32()
/* Mask to quickly check whether a C 'long' contains a
non-ASCII, UTF8-encoded char. */