HomePhabricator

[avalanche] Use black magic for popcount.

Authored by deadalnix on Thu, Nov 29, 15:27.

Description

[avalanche] Use black magic for popcount.

Summary:
Or compiler intrinsic if these are supported.

The black magic algorithm is from 'Owen Anderson <resistor@mac.com>', as far as I know.

Test Plan:

make check

Reviewers: #bitcoin_abc, jasonbcox, Fabien, Mengerian

Reviewed By: #bitcoin_abc, jasonbcox, Fabien, Mengerian

Subscribers: Mengerian, jasonbcox, teamcity, schancel

Differential Revision: https://reviews.bitcoinabc.org/D2148

Details

Committed
deadalnixMon, Dec 3, 18:20
Pushed
deadalnixMon, Dec 3, 18:20
Reviewer
Restricted Project
Differential Revision
D2148: [avalanche] Use black magic for popcount.
Parents
rABC9e90803c6e02: Rename wallet functional test files to match bitcoin core
Branches
Unknown
Tags
Unknown