#include <stddef.h> #include <stdlib.h> #include <inttypes.h> #include <stdio.h> #include <stdbool.h> #include <string.h> bool bit_read(uint64_t const* const buf, size_t const idx) { size_t const offset = idx >> 6; // log2(64)