Set i-th bit (from left, counting from 0) of |array| to be 1
| 54 | |
| 55 | // Set i-th bit (from left, counting from 0) of |array| to be 1 |
| 56 | inline void bit_array_set(uint64_t* array, size_t i) { |
| 57 | const size_t off = (i >> 6); |
| 58 | array[off] |= (((uint64_t)1) << (i - (off << 6))); |
| 59 | } |
| 60 | |
| 61 | // Set i-th bit (from left, counting from 0) of |array| to be 0 |
| 62 | inline void bit_array_unset(uint64_t* array, size_t i) { |
no outgoing calls
no test coverage detected