MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / ggml_bitset_size

Function ggml_bitset_size

subprojects/llama.cpp/ggml/src/ggml-impl.h:199–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

ggml_hash_set_newFunction · 0.85
ggml_hash_set_resetFunction · 0.85
ggml_graph_nbytesFunction · 0.85
ggml_new_graph_customFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected