|
Defines |
#define | OUT2OS() |
#define | PREDIFF RED(BOLD) |
#define | POSTDIFF NORMAL |
#define | IF_TTY if (!termTest.isDumb() && isatty(fileno(out))) |
Functions |
void | debug_randomize (void *data, size_t intsize) |
| Randomize memory.
|
std::ostream & | debug_cppPrintBitstring (std::ostream &out, const uint32_t *s, size_t n) |
| Print bitstring, lower bits first.
|
void | debug_printBitstring (FILE *out, const uint32_t *s, size_t n) |
| Print bitstring, lower bits first.
|
std::ostream & | debug_cppPrintBitMatrix (std::ostream &out, const uint32_t *s, cindex_t dim) |
| Print a matrix of bit.
|
void | debug_printBitMatrix (FILE *out, const uint32_t *s, cindex_t dim) |
| Print a bit matrix.
|
std::ostream & | debug_cppPrintDiffBitstrings (std::ostream &out, const uint32_t *s1, const uint32_t *s2, size_t n) |
| Print diff between bitstrings, lower bits first.
|
void | debug_printDiffBitstrings (FILE *out, const uint32_t *s1, const uint32_t *s2, size_t n) |
| Print diff between bitstrings, lower bits first.
|
std::ostream & | debug_cppPrintBits (std::ostream &out, uint32_t i) |
| Print bits, lower bits first.
|
void | debug_printBits (FILE *out, uint32_t i) |
| Print bits, lower bits first.
|
std::ostream & | debug_cppPrintDiffBits (std::ostream &out, uint32_t i, uint32_t j) |
| Print diff bits of i with j, lower bits first.
|
void | debug_printDiffBits (FILE *out, uint32_t i, uint32_t j) |
| Print diff bits of i with j, lower bits first.
|
std::ostream & | debug_cppPrintVector (std::ostream &out, const int32_t *data, size_t size) |
| Print a vector of ints.
|
void | debug_printVector (FILE *out, const int32_t *data, size_t size) |
| Print a vector of ints.
|
std::ostream & | debug_cppPrintRealVector (std::ostream &out, const double *data, size_t size) |
| Print a vector of ints.
|
void | debug_printRealVector (FILE *out, const double *data, size_t size) |
| Print a vector of ints.
|
std::ostream & | debug_cppPrintDiffVectors (std::ostream &out, const int32_t *vec1, const int32_t *vec2, size_t size) |
| Print 2 vectors and highlight the difference between them.
|
void | debug_printDiffVectors (FILE *out, const int32_t *vec1, const int32_t *vec2, size_t size) |
| Print 2 vectors and highlight the difference between them.
|
std::ostream & | debug_cppPrintActiveSet (std::ostream &out, const uint32_t *bits, size_t intSize) |
| Print the set of active "things" according to a bit vector that marks which ones are active.
|
void | debug_printActiveSet (FILE *out, const uint32_t *bits, size_t intSize) |
| Print the set of active "things" according to a bit vector that marks which ones are active.
|
const char * | debug_shortName (const char *filename, const char *test) |
| Return sub-string of filename.
|
void | debug_generateBits (uint32_t *bits, size_t bitSize, size_t nbits, BOOL bit1) |
| Generate random bits.
|
void | debug_fixGeneratedBits (uint32_t *bits, size_t bitSize, size_t bitStringSize) |
| Fix generated bits (typically by debug_generateBits) so that the index of the highest bit < bitStringSize.
|
BOOL | debug_bits2indexTableOK (const uint32_t *bits, size_t n, const uint32_t *table, size_t nbSet) |
| Test if a the unpacking of a bit table gives the given index table as a result.
|
std::ostream & | debug_cppPrintMemory (std::ostream &out, size_t i) |
| Print memory quantity in human readable format with B,MB,GB units.
|
void | debug_printMemory (FILE *out, size_t i) |
| Print memory quantity in human readable format with B,MB,GB units.
|
void | debug_spin (FILE *out) |
| Print a spinning bar on a given output.
|
Variables |
static DumbTerminal | termTest |