cpython/Python
Niklas Fiekas 794e7d1ab2
bpo-29782: Consolidate _Py_Bit_Length() (GH-20739)
In GH-2866, _Py_Bit_Length() was added to pymath.h for lack of a better
location. GH-20518 added a more appropriate header file for bit utilities. It
also shows how to properly use intrinsics. This allows reconsidering bpo-29782.

* Move the function to the new header.
* Changed return type to match __builtin_clzl() and reviewed usage.
* Use intrinsics where available.
* Pick a fallback implementation suitable for inlining.
2020-06-15 14:33:48 +02:00
..
clinic bpo-40471: Fix grammar typo in 'issubclass' docstring (GH-19847) 2020-06-03 06:19:45 -07:00
_warnings.c bpo-39465: Use _PyInterpreterState_GET() (GH-20788) 2020-06-10 20:08:26 +02:00
asdl.c
ast.c bpo-40939: Remove the old parser (GH-20768) 2020-06-11 17:30:46 +01:00
ast_opt.c
ast_unparse.c
bltinmodule.c bpo-40471: Fix grammar typo in 'issubclass' docstring (GH-19847) 2020-06-03 06:19:45 -07:00
bootstrap_hash.c bpo-40910: Export Py_GetArgcArgv() function (GH-20721) 2020-06-08 18:12:59 +02:00
ceval.c bpo-40925: Remove unused stack macro SET_VALUE (GH-20783) 2020-06-11 10:39:18 +01:00
ceval_gil.h
codecs.c
compile.c bpo-40939: Remove the old parser (GH-20768) 2020-06-11 17:30:46 +01:00
condvar.h
context.c bpo-40887: Don't use finalized free lists (GH-20700) 2020-06-08 02:14:47 +02:00
dtoa.c bpo-40780: Fix failure of _Py_dg_dtoa to remove trailing zeros (GH-20435) 2020-05-29 14:23:57 +01:00
dup2.c
dynamic_annotations.c
dynload_aix.c
dynload_dl.c
dynload_hpux.c
dynload_shlib.c
dynload_stub.c
dynload_win.c
errors.c Remove redundant var in PyErr_NewException() (GH-20850) 2020-06-13 15:58:12 +09:00
fileutils.c bpo-40957: Fix refleak in _Py_fopen_obj() (GH-20827) 2020-06-14 00:57:22 +09:00
formatter_unicode.c
frozen.c
frozenmain.c
future.c
getargs.c bpo-40943: Replace PY_FORMAT_SIZE_T with "z" (GH-20781) 2020-06-10 18:38:05 +02:00
getcompiler.c
getcopyright.c
getopt.c
getplatform.c
getversion.c
graminit.c
hamt.c bpo-29882: Add _Py_popcount32() function (GH-20518) 2020-06-08 16:30:33 +02:00
hashtable.c
import.c bpo-40232: _PyImport_ReInitLock() can now safely use its lock (GH-20597) 2020-06-02 17:13:49 +02:00
importdl.c
importdl.h
importlib.h
importlib_external.h bpo-39791 native hooks for importlib.resources.files (GH-20576) 2020-06-07 21:00:51 -04:00
importlib_zipimport.h bpo-39791 native hooks for importlib.resources.files (GH-20576) 2020-06-07 21:00:51 -04:00
initconfig.c bpo-40939: Remove the old parser (GH-20768) 2020-06-11 17:30:46 +01:00
makeopcodetargets.py
marshal.c
modsupport.c
mysnprintf.c
mystrtoul.c
opcode_targets.h
pathconfig.c
peephole.c
preconfig.c _PyPreConfig_Read() decodes argv at each iteration (GH-20786) 2020-06-10 19:33:11 +02:00
pyarena.c
pyctype.c
pyfpe.c
pyhash.c bpo-40943: Replace PY_FORMAT_SIZE_T with "z" (GH-20781) 2020-06-10 18:38:05 +02:00
pylifecycle.c bpo-40939: Remove the old parser (GH-20768) 2020-06-11 17:30:46 +01:00
pymath.c bpo-29782: Consolidate _Py_Bit_Length() (GH-20739) 2020-06-15 14:33:48 +02:00
pystate.c bpo-40834: Fix truncate when sending str object with channel (GH-20555) 2020-06-13 05:26:01 -07:00
pystrcmp.c
pystrhex.c
pystrtod.c
Python-ast.c bpo-40217: Ensure Py_VISIT(Py_TYPE(self)) is always called for PyType_FromSpec types (reverts GH-19414) (GH-20264) 2020-05-27 02:03:38 -07:00
pythonrun.c bpo-40939: Remove the old parser (GH-20768) 2020-06-11 17:30:46 +01:00
pytime.c
README
strdup.c
structmember.c
symtable.c
sysmodule.c bpo-40854: Allow overriding sys.platlibdir via PYTHONPLATLIBDIR env-var (GH-20605) 2020-06-08 17:28:11 +02:00
thread.c
thread_nt.h
thread_pthread.h
traceback.c
wordcode_helpers.h

Miscellaneous source files for the main Python shared library