Monero
Macros | Functions | Variables
bigintegertest.cpp File Reference
#include "unittest.h"
#include "rapidjson/internal/biginteger.h"
Include dependency graph for bigintegertest.cpp:

Macros

#define BIGINTEGER_LITERAL(s)   BigInteger(s, sizeof(s) - 1)
 

Functions

static const BigInteger kZero (0)
 
static const BigInteger kOne (1)
 
 TEST (BigInteger, Constructor)
 
 TEST (BigInteger, AddUint64)
 
 TEST (BigInteger, MultiplyUint64)
 
 TEST (BigInteger, MultiplyUint32)
 
 TEST (BigInteger, LeftShift)
 
 TEST (BigInteger, Compare)
 

Variables

static const BigInteger kUint64Max = BIGINTEGER_LITERAL("18446744073709551615")
 
static const BigInteger kTwo64 = BIGINTEGER_LITERAL("18446744073709551616")
 

Macro Definition Documentation

◆ BIGINTEGER_LITERAL

#define BIGINTEGER_LITERAL (   s)    BigInteger(s, sizeof(s) - 1)

Function Documentation

◆ kOne()

static const BigInteger kOne ( )
static

◆ kZero()

static const BigInteger kZero ( )
static

◆ TEST() [1/6]

TEST ( BigInteger  ,
Constructor   
)

◆ TEST() [2/6]

TEST ( BigInteger  ,
AddUint64   
)

◆ TEST() [3/6]

TEST ( BigInteger  ,
MultiplyUint64   
)

◆ TEST() [4/6]

TEST ( BigInteger  ,
MultiplyUint32   
)

◆ TEST() [5/6]

TEST ( BigInteger  ,
LeftShift   
)

◆ TEST() [6/6]

TEST ( BigInteger  ,
Compare   
)

Variable Documentation

◆ kTwo64

const BigInteger kTwo64 = BIGINTEGER_LITERAL("18446744073709551616")
static

◆ kUint64Max

const BigInteger kUint64Max = BIGINTEGER_LITERAL("18446744073709551615")
static