Page MenuHomePhabricator

Merge #9533: Allow non-power-of-2 signature cache sizes
ClosedPublic

Authored by jasonbcox on May 31 2019, 18:18.

Details

Summary

7482781 Allow non-power-of-2 signature cache sizes (Pieter Wuille)

Tree-SHA512: 5731c22b46c5ae81cf6d52000c28e39b243a47d96d91079942a5b5a10db214449217f71aa2195e18f8a3917cb206b04c75dc13e4522eb700a1dbf1819013ba22

Backport of Core PR9533
https://github.com/bitcoin/bitcoin/pull/9533/files

Test Plan

make check

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markblundeberg added a subscriber: markblundeberg.

Oh neat! Another usage of "A fast alternative to the modulo reduction"
https://lemire.me/blog/2016/06/27/a-fast-alternative-to-the-modulo-reduction/

src/cuckoocache.h
218 ↗(On Diff #9051)

Do you want to use uint32_t(X) rather than (uint32_t)(X) style? You guys always nag my Diffs on that one ;-P

This revision now requires changes to proceed.May 31 2019, 20:14
src/cuckoocache.h
218 ↗(On Diff #9051)

You caught me :)

This revision is now accepted and ready to land.Jun 1 2019, 13:48