| 197 | #define BITSET_MASK (sizeof(ggml_bitset_t)*8 - 1) |
| 198 | |
| 199 | static size_t ggml_bitset_size(size_t n) { |
| 200 | return (n + BITSET_MASK) >> BITSET_SHR; |
| 201 | } |
| 202 | |
| 203 | static inline bool ggml_bitset_get(const ggml_bitset_t * bitset, size_t i) { |
| 204 | return !!(bitset[i >> BITSET_SHR] & (1u << (i & BITSET_MASK))); |
no outgoing calls
no test coverage detected