aboutsummaryrefslogtreecommitdiff
path: root/src/uint256.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-03-26 16:48:23 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2012-03-26 16:48:23 +0200
commit6b8de05d0a6696dff4b7dccec5b74889f3cdc486 (patch)
tree123b892a842e3a99342cc4806b4a833b2a635b52 /src/uint256.h
parent01a196e08db49d83cf6c5abd8a799c56dcfef503 (diff)
downloadbitcoin-6b8de05d0a6696dff4b7dccec5b74889f3cdc486.tar.xz
Begin doxygen-compatible comments
Diffstat (limited to 'src/uint256.h')
-rw-r--r--src/uint256.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/uint256.h b/src/uint256.h
index 783e7069e9..cfc2eb128e 100644
--- a/src/uint256.h
+++ b/src/uint256.h
@@ -19,8 +19,9 @@ inline int Testuint256AdHoc(std::vector<std::string> vArg);
-// We have to keep a separate base class without constructors
-// so the compiler will let us use it in a union
+/** Base class without constructors for uint256 and uint160.
+ * This makes the compiler let u use it in a union.
+ */
template<unsigned int BITS>
class base_uint
{
@@ -393,6 +394,7 @@ typedef base_uint<256> base_uint256;
// uint160
//
+/** 160-bit unsigned integer */
class uint160 : public base_uint160
{
public:
@@ -507,6 +509,7 @@ inline const uint160 operator-(const uint160& a, const uint160& b) { return
// uint256
//
+/** 256-bit unsigned integer */
class uint256 : public base_uint256
{
public: