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

Function printBitsLittle

flow/CompressedInt.actor.cpp:24–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include "flow/CompressedInt.h"
23
24void 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
39void printBitsBig(size_t const size, void const* const ptr) {
40 unsigned char* b = (unsigned char*)ptr;

Callers 1

testCompressedIntFunction · 0.85

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected