cpython/Objects/clinic
Niklas Fiekas 8bd216dfed
bpo-29882: Add an efficient popcount method for integers (#771)
* bpo-29882: Add an efficient popcount method for integers

* Update 'sign bit' and versionadded in docs

* Add entry to whatsnew document

* Doc: use positive example, mention population count

* Minor cleanups of the core code

* Move popcount_digit closer to where it's used

* Use z instead of self after conversion

* Add 'absolute value' and 'population count' to docstring

* Fix clinic error about missing summary line

* Ensure popcount_digit is portable with 64-bit ints

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2020-05-29 17:28:02 +01:00
..
bytearrayobject.c.h
bytesobject.c.h
codeobject.c.h
complexobject.c.h
descrobject.c.h
dictobject.c.h
enumobject.c.h
floatobject.c.h
funcobject.c.h
listobject.c.h
longobject.c.h bpo-29882: Add an efficient popcount method for integers (#771) 2020-05-29 17:28:02 +01:00
memoryobject.c.h
moduleobject.c.h
odictobject.c.h
structseq.c.h
tupleobject.c.h
typeobject.c.h
unicodeobject.c.h