aboutsummaryrefslogtreecommitdiff
path: root/src/arith_uint256.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* [copyright] copyright header style uniformisle29832016-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Three categories of modifications: 1) 1 instance of 'The Bitcoin Core developers \n', 1 instance of 'the Bitcoin Core developers\n', 3 instances of 'Bitcoin Core Developers\n', and 12 instances of 'The Bitcoin developers\n' are made uniform with the 443 instances of 'The Bitcoin Core developers\n' 2) 3 instances of 'BitPay, Inc\.\n' are made uniform with the other 6 instances of 'BitPay Inc\.\n' 3) 4 instances where there was no '(c)' between the 'Copyright' and the year where it deviates from the style of the local directory.
* src/arith_256.cpp: bigendian compatibilityWladimir J. van der Laan2015-03-061-4/+5
|
* arith_uint256: remove initialization from byte vectorWladimir J. van der Laan2015-01-051-37/+2
| | | | | | | | Remove initialization from vector (as this is only used in the tests). Also implement SetHex and GetHex in terms of uint256, to avoid duplicate code as well as avoid endianness issues (as they work in term of bytes).
* Remove now-unused methods from arith_uint256 and base_uintWladimir J. van der Laan2015-01-051-62/+0
| | | | | | | | | | - Methods that access the guts of arith_uint256 are removed, as these are incompatible between endians. Use uint256 instead - Serialization is no longer needed as arith_uint256's are never read or written - GetHash is never used on arith_uint256
* Remove arith_uint160Wladimir J. van der Laan2015-01-051-17/+0
| | | | We never do 160-bit arithmetic.
* Add conversion functions arith_uint256<->uint_256Wladimir J. van der Laan2015-01-051-0/+16
|
* uint256->arith_uint256 blob256->uint256Wladimir J. van der Laan2015-01-051-0/+357
Introduce new opaque implementation of `uint256`, move old "arithmetic" implementation to `arith_uint256.