fanquake requested review from sipa on Jun 5, 2018
Empact renamed this: Drop unused uint 256 not operator Drop unused arith_uint256 ! operator on Jun 5, 2018
promag
commented at 11:52 AM on June 5, 2018:
member
utACK2acd1d6.
laanwj
commented at 1:11 PM on June 5, 2018:
member
Isn't ! expected functionality for bigint arithmetic? I'm aware that we're not using it at the moment, but I'd like to invoke the principle of least surprise here
skeees
commented at 3:47 PM on June 5, 2018:
contributor
Agree with @laanwj@Empact - is the only benefit here to reduce binary size? I don't know enough about the linker to determine whether it will include this code even if currently unused
MarcoFalke
commented at 3:54 PM on June 5, 2018:
member
When was it last used?
laanwj
commented at 4:34 PM on June 5, 2018:
member
It's a function in the include file, so I would even doubt this affect the binary size. Also ti's properly tested so that can't be an argument to remove it either. I'd say NACK, sorry.
DrahtBot
commented at 5:24 PM on June 5, 2018:
contributor
<!--e57a25ab6845829454e8d69fc972939a-->Note to reviewers: This pull request conflicts with the following ones:
#13388 (util: Implement boolean conversion and !operator for uint* by qmma70)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Empact
commented at 7:40 PM on June 5, 2018:
member
My motivation is to reduce lines of code because I view unused functionality as a tax on readers of the code, even if those lines don't impact the binaries. I guess you could say this is partly an expression of the YAGNI principle.
qmma70
commented at 12:05 AM on June 6, 2018:
contributor
I opened a related PR #13388, if anyone's interested.
laanwj
commented at 5:11 AM on June 7, 2018:
member
Oke, forget my argument about API symmetry. There is no operator bool() on arith_uint256, so why would bool operator!() exist. This means you can do if (!a) but not if(a). Hmm.
utACK2acd1d6716959b99e751cf85a7c47aaa383e937f
practicalswift
commented at 5:12 PM on June 7, 2018:
contributor
utACK2acd1d6716959b99e751cf85a7c47aaa383e937f
laanwj merged this on Jun 7, 2018
laanwj closed this on Jun 7, 2018
laanwj referenced this in commit 97073f8837 on Jun 7, 2018
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:55 UTC