MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuLocalsHash

Function PiuLocalsHash

modules/piu/All/piuLocals.c:97–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97uint32_t PiuLocalsHash(uint32_t d, uint8_t* s)
98{
99 int32_t c;
100 if (d == 0)
101 d = 0x811c9dc5;
102 while ((c = c_read8(s))) {
103 d *= 0x01000193;
104 d ^= c;
105 s++;
106 }
107 return (d & 0x7FFFFFFF);
108}
109
110void PiuLocalsMark(xsMachine* the, void* it, xsMarkRoot markRoot)
111{

Callers 1

PiuLocals_getFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected