Get i-th bit (from left, counting from 0) of |array|
| 66 | |
| 67 | // Get i-th bit (from left, counting from 0) of |array| |
| 68 | inline uint64_t bit_array_get(const uint64_t* array, size_t i) { |
| 69 | const size_t off = (i >> 6); |
| 70 | return (array[off] & (((uint64_t)1) << (i - (off << 6)))); |
| 71 | } |
| 72 | |
| 73 | // Find index of first 1-bit from bit |begin| to |end| in |array|. |
| 74 | // Returns |end| if all bits are 0. |
no outgoing calls
no test coverage detected