Commit f757da8
committed
Merge bitcoin/bitcoin#33332: common: Make arith_uint256 trivially copyable
653a984 common: Make arith_uint256 trivially copyable (Fabian Jahr)
Pull request description:
Makes `arith_uint256`/`base_uint` trivially copyable by removing the custom copy constructor and copy assignment operators. Removing of the custom code should not result in a change of behavior since `base_uint` contains a simple array of `uint32_t` and compiler generated versions of the code could be better optimized.
This was suggested by maflcko here: bitcoin/bitcoin#30469 (review)
ACKs for top commit:
Raimo33:
ACK 653a984
l0rinc:
ACK 653a984
achow101:
ACK 653a984
hodlinator:
re-ACK 653a984
Tree-SHA512: 38db5220a2cf773c0c5fb5591671e329b6b87458d972db4f5f3f98c025ec329a8c39b32b5bc24ef8b50b1002b43bb248d8b35aa1c9a56c68c6bbd1d470485bd71 file changed
+5
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 40 | + | |
| 41 | + | |
54 | 42 | | |
55 | 43 | | |
56 | 44 | | |
| |||
272 | 260 | | |
273 | 261 | | |
274 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
275 | 266 | | |
276 | 267 | | |
277 | 268 | | |
| |||
0 commit comments