Pretty printer for test cases. More...
Public Member Functions | |
Printer (const int64_t high, const uint64_t low) | |
Construct from high and low words of Q64.64 representation. More... | |
Printer (const int64x64_t value) | |
Construct from an int64x64_t Q64.64 value. More... | |
Private Attributes | |
bool | m_haveInt |
Do we have a full int64x64_t value? More... | |
int64_t | m_high |
The high (integer) word. More... | |
uint64_t | m_low |
The low (fractional) word. More... | |
int64x64_t | m_value |
The int64x64_t value. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Printer &p) |
Output streamer, the main reason for this class. More... | |
Pretty printer for test cases.
Definition at line 67 of file int64x64-test-suite.cc.
|
inline |
Construct from high and low words of Q64.64 representation.
[in] | high | The integer portion. |
[in] | low | The fractional portion. |
Definition at line 76 of file int64x64-test-suite.cc.
|
inline |
Construct from an int64x64_t
Q64.64 value.
[in] | value | The value. |
Definition at line 89 of file int64x64-test-suite.cc.
|
friend |
Output streamer, the main reason for this class.
[in] | os | The stream. |
[in] | p | The value to print. |
Definition at line 113 of file int64x64-test-suite.cc.
|
private |
Do we have a full int64x64_t value?
Definition at line 107 of file int64x64-test-suite.cc.
|
private |
The high (integer) word.
Definition at line 109 of file int64x64-test-suite.cc.
|
private |
The low (fractional) word.
Definition at line 110 of file int64x64-test-suite.cc.
|
private |
The int64x64_t value.
Definition at line 108 of file int64x64-test-suite.cc.