Commit graph

3 commits

Author SHA1 Message Date
Justin Dhillon
009542a92e accounts/usbwallet, common/bitutil: fix broken links in docs (#29078)
fixes some links in documentation
2024-12-28 09:06:31 +08:00
David Chase
5a8110b292 common/bitutil: use result of TestBytes to prevent dead code elimination (#19846)
Gollvm has very aggressive dead code elimination that completely
removes one of these two benchmarks.  To prevent this, use the
result of the benchmark (a boolean), and to be "fair", make the
transformation to both benchmarks.

To be reliably assured of not removing the code, "use" means
assigning to an exported global.  Non-exported globals and
//go:noinline functions are possibly subject to this optimization.
2024-12-28 09:06:30 +08:00
Péter Szilágyi
36a800a1d2
common/bitutil, consensus/ethash: reusable bitutil package 2017-05-05 16:00:11 +03:00