MCPcopy Create free account
hub / github.com/apple/foundationdb / printBitsBig

Function printBitsBig

flow/CompressedInt.actor.cpp:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void printBitsBig(size_t const size, void const* const ptr) {
40 unsigned char* b = (unsigned char*)ptr;
41 unsigned char byte;
42 int i, j;
43
44 for (i = 0; i < size; ++i) {
45 for (j = 7; j >= 0; j--) {
46 byte = (b[i] >> j) & 1;
47 printf("%u", byte);
48 }
49 printf(" ");
50 }
51 puts("");
52}
53
54template <typename IntType>
55void testCompressedInt(IntType n, StringRef rep = StringRef()) {

Callers 1

testCompressedIntFunction · 0.85

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected