MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / hash_link_ref

Function hash_link_ref

libraries/hoedown/src/document.c:180–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180static unsigned int
181hash_link_ref(const uint8_t *link_ref, size_t length)
182{
183 size_t i;
184 unsigned int hash = 0;
185
186 for (i = 0; i < length; ++i)
187 hash = tolower(link_ref[i]) + (hash << 6) + (hash << 16) - hash;
188
189 return hash;
190}
191
192static struct link_ref *
193add_link_ref(

Callers 4

add_link_refFunction · 0.85
find_link_refFunction · 0.85
create_footnote_refFunction · 0.85
find_footnote_refFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected