MCPcopy Create free account
hub / github.com/cococry/leif / djb2_hash

Function djb2_hash

leif.c:1633–1642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1631}
1632
1633uint64_t djb2_hash(uint64_t hash, const void* buf, size_t size) {
1634 uint8_t* bytes = (uint8_t*)buf;
1635 int c;
1636
1637 while ((c = *bytes++)) {
1638 hash = ((hash << 5) + hash) + c; /* hash * 33 + c */
1639 }
1640
1641 return hash;
1642}
1643
1644void props_stack_create(PropsStack* stack) {
1645 stack->data = (LfUIElementProps*)malloc(LF_STACK_INIT_CAP * sizeof(LfUIElementProps));

Callers 2

button_exFunction · 0.85
_lf_div_begin_locFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected