MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / updateHashChain

Function updateHashChain

src/lodepng.cpp:1415–1420  ·  view source on GitHub ↗

wpos = pos & (windowsize - 1)*/

Source from the content-addressed store, hash-verified

1413
1414/*wpos = pos & (windowsize - 1)*/
1415static void updateHashChain(Hash* hash, size_t wpos, int hashval)
1416{
1417 hash->val[wpos] = hashval;
1418 if(hash->head[hashval] != -1) hash->chain[wpos] = hash->head[hashval];
1419 hash->head[hashval] = wpos;
1420}
1421
1422/*
1423LZ77-encode the data. Return value is error code. The input are raw bytes, the output

Callers 1

encodeLZ77Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected