cpython/Include/internal
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
..
pegen_interface.h bpo-40334: Make the PyPegen* and PyParser* APIs more consistent (GH-19839) 2020-05-01 18:30:51 +01:00
pycore_abstract.h bpo-40170: Add _PyIndex_Check() internal function (GH-19426) 2020-04-08 02:01:56 +02:00
pycore_accu.h
pycore_atomic.h
pycore_bitutils.h bpo-29782: Consolidate _Py_Bit_Length() (GH-20739) 2020-06-15 14:33:48 +02:00
pycore_bytes_methods.h bpo-35081: Move bytes_methods.h to the internal C API (GH-18492) 2020-02-12 22:32:34 +01:00
pycore_call.h
pycore_ceval.h PyOS_AfterFork_Child() pass tstate to _PyEval_ReInitThreads() (GH-20598) 2020-06-02 18:44:54 +02:00
pycore_code.h
pycore_condvar.h
pycore_context.h bpo-40521: Make context free list per-interpreter (GH-20644) 2020-06-05 02:56:37 +02:00
pycore_dtoa.h bpo-35081: Move dtoa.h header to the internal C API (GH-18489) 2020-02-12 22:54:42 +01:00
pycore_fileutils.h
pycore_gc.h bpo-40521: Make context free list per-interpreter (GH-20644) 2020-06-05 02:56:37 +02:00
pycore_getopt.h
pycore_gil.h
pycore_hamt.h bpo-39573: Add Py_IS_TYPE() function (GH-18488) 2020-02-13 18:37:17 +01:00
pycore_hashtable.h bpo-40602: Write unit tests for _Py_hashtable_t (GH-20091) 2020-05-14 21:55:47 +02:00
pycore_import.h PyOS_AfterFork_Child() uses PyStatus (GH-20596) 2020-06-02 15:51:37 +02:00
pycore_initconfig.h bpo-40910: Export Py_GetArgcArgv() function (GH-20721) 2020-06-08 18:12:59 +02:00
pycore_interp.h bpo-39465: Use _PyInterpreterState_GET() (GH-20788) 2020-06-10 20:08:26 +02:00
pycore_object.h bpo-40170: Convert PyObject_IS_GC() macro to a function (GH-19464) 2020-04-14 20:11:20 +02:00
pycore_pathconfig.h
pycore_pyerrors.h bpo-40696: Fix a hang that can arise after gen.throw() (GH-20287) 2020-05-22 13:33:27 -07:00
pycore_pyhash.h
pycore_pylifecycle.h bpo-40521: Make async gen free lists per-interpreter (GH-20643) 2020-06-05 02:34:14 +02:00
pycore_pymem.h bpo-40609: Rewrite how _tracemalloc handles domains (GH-20059) 2020-05-13 01:36:47 +02:00
pycore_pystate.h bpo-40826: Add _PyOS_InterruptOccurred(tstate) function (GH-20599) 2020-06-03 14:39:59 +02:00
pycore_runtime.h PyOS_AfterFork_Child() uses PyStatus (GH-20596) 2020-06-02 15:51:37 +02:00
pycore_sysmodule.h bpo-38644: Add _PySys_Audit() which takes tstate (GH-19180) 2020-03-26 18:57:32 +01:00
pycore_traceback.h bpo-40421: Add pyframe.h header file (GH-19755) 2020-04-28 16:32:48 +02:00
pycore_tupleobject.h
pycore_warnings.h bpo-39796: Fix _warnings module initialization (GH-18739) 2020-03-02 15:02:18 +01:00