wpos = pos & (windowsize - 1)*/
| 1413 | |
| 1414 | /*wpos = pos & (windowsize - 1)*/ |
| 1415 | static 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 | /* |
| 1423 | LZ77-encode the data. Return value is error code. The input are raw bytes, the output |