Skip to content

Commit

Permalink
Merge pull request #494 from skirpichev/xmpz-bit_count-493
Browse files Browse the repository at this point in the history
Add xmpz.bit_count()
  • Loading branch information
casevh authored Jul 14, 2024
2 parents df5d55c + 6c414dd commit 11c0c14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gmpy2_xmpz.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ static PyMethodDef GMPy_XMPZ_methods [] =
{ "bit_clear", GMPy_MPZ_bit_clear_method, METH_O, doc_bit_clear_method },
{ "bit_flip", GMPy_MPZ_bit_flip_method, METH_O, doc_bit_flip_method },
{ "bit_length", GMPy_MPZ_bit_length_method, METH_NOARGS, doc_bit_length_method },
{ "bit_count", GMPy_MPZ_bit_count_method, METH_NOARGS, doc_bit_count_method },
{ "bit_scan0", (PyCFunction)GMPy_MPZ_bit_scan0_method, METH_FASTCALL, doc_bit_scan0_method },
{ "bit_scan1", (PyCFunction)GMPy_MPZ_bit_scan1_method, METH_FASTCALL, doc_bit_scan1_method },
{ "bit_set", GMPy_MPZ_bit_set_method, METH_O, doc_bit_set_method },
Expand Down

0 comments on commit 11c0c14

Please sign in to comment.