Skip to content

Add an efficient popcount method for integers #74068

@niklasf

Description

@niklasf
mannequin
BPO 29882
Nosy @tim-one, @rhettinger, @mdickinson, @vstinner, @njsmith, @markshannon, @serhiy-storchaka, @vedgar, @DimitrisJim, @niklasf, @gbtami
PRs
  • bpo-29882: Add an efficient popcount method for integers #771
  • bpo-29882: Add _Py_popcount32() function #20518
  • bpo-29882: _Py_popcount32() doesn't need 64x64 multiply #30774
  • bpo-29882: Fix portability bug introduced in GH-30774 #30794
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None closed_at = <Date 2020-05-29.16:28:39.179> created_at = <Date 2017-03-22.17:30:42.549> labels = ['interpreter-core', 'type-feature', '3.10'] title = 'Add an efficient popcount method for integers' updated_at = <Date 2022-01-23.09:59:43.073> user = 'https://github.com/niklasf'

    bugs.python.org fields:

    activity = <Date 2022-01-23.09:59:43.073> actor = 'mark.dickinson' assignee = 'none' closed = True closed_date = <Date 2020-05-29.16:28:39.179> closer = 'mark.dickinson' components = ['Interpreter Core'] creation = <Date 2017-03-22.17:30:42.549> creator = 'niklasf' dependencies = [] files = [] hgrepos = [] issue_num = 29882 keywords = [] message_count = 26.0 messages = ['290003', '290013', '290014', '290015', '290016', '290017', '290073', '344215', '344216', '344223', '344224', '344225', '369860', '369878', '369879', '369881', '369887', '369966', '370323', '370423', '370447', '370456', '370987', '372497', '411211', '411357'] nosy_count = 12.0 nosy_names = ['tim.peters', 'rhettinger', 'mark.dickinson', 'vstinner', 'casevh', 'njs', 'Mark.Shannon', 'serhiy.storchaka', 'veky', 'Jim Fasarakis-Hilliard', 'niklasf', 'gbtami'] pr_nums = ['771', '20518', '30774', '30794'] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue29882' versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions