| 22 | #include "flow/CompressedInt.h" |
| 23 | |
| 24 | void printBitsLittle(size_t const size, void const* const ptr) { |
| 25 | unsigned char* b = (unsigned char*)ptr; |
| 26 | unsigned char byte; |
| 27 | int i, j; |
| 28 | |
| 29 | for (i = size - 1; i >= 0; i--) { |
| 30 | for (j = 7; j >= 0; j--) { |
| 31 | byte = (b[i] >> j) & 1; |
| 32 | printf("%u", byte); |
| 33 | } |
| 34 | printf(" "); |
| 35 | } |
| 36 | puts(""); |
| 37 | } |
| 38 | |
| 39 | void printBitsBig(size_t const size, void const* const ptr) { |
| 40 | unsigned char* b = (unsigned char*)ptr; |
no test coverage detected