aboutsummaryrefslogtreecommitdiff
path: root/src/test/bignum_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Reduce bignum.h now it is only needed for scriptnum_testsPieter Wuille2014-05-091-136/+0
|
* Move {Get,Set}Compact from bignum to uint256Pieter Wuille2014-05-091-88/+0
|
* Update moved and dead linksLuke Dashjr2014-03-241-5/+2
|
* Add licenses for tests and test dataWladimir J. van der Laan2014-03-181-0/+4
| | | | | | | | - Add license headers to source files (years based on commit dates) in `src/test` as well as `qa` - Add `README.md` to `src/test/data` specifying MIT license Fixes #3848
* Adds additional zero checks for setCompactNoel Tiernan2014-01-191-0/+36
| | | | | | | | | | | | | | | | | These encoded values should all decode to zero Positive Numbers 0x01003456 (1 byte 0x00) 0x02000056 (2 bytes 0x0000) 0x03000000 (3 bytes 0x000000) 0x04000000 (4 bytes 0x000000_00) Negative Numbers 0x00923456 -(0 bytes, so zero) 0x01803456 -(1 byte 0x00) 0x02800056 -(2 bytes 0x0000) 0x03800000 -(3 bytes 0x000000) 0x04800000 -(4 bytes 0x000000_00)
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-7/+8
| | | | | | | | | Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
* Make util phexdigit array reusableOlivier Langlois2013-10-271-0/+8
| | | | | | | | | | | | | | class template base_uint had its own private lookup table. This is saving 256 bytes per instantiation. The result is not spectacular as bitcoin-qt has only shrinked of about 1Kb but it is still valid improvement. Also, I have replaced a for loop with a memset() call. Made CBigNum::SetHex() use the new HexDigit() function. Signed-off-by: Olivier Langlois <[email protected]>
* Fix signed/unsigned comparison warningsGavin Andresen2013-04-031-12/+12
|
* tests for SetCompact and GetCompact of CBigNumChristian von Roques2012-09-151-0/+53
|
* fix further spelling errors / remove a tab in the sourcePhilip Kaufmann2012-08-021-3/+3
|
* Move NOINLINE definition to test where it's used.Ricardo M. Correia2012-06-071-0/+16
|
* Use C++-style numeric limits instead of C-style.Ricardo M. Correia2012-05-311-3/+3
|
* Fix noinline definition so that it works for more compilers.Ricardo M. Correia2012-05-311-3/+2
|
* Add test case for CBigNum::setint64().Ricardo M. Correia2012-05-141-0/+110
One of the test cases currently aborts when using gcc's flag -ftrapv, due to negating an INT64_MIN int64 variable, which is an undefined operation. This will be fixed in a subsequent commit.