while (cctx->ip < cctx->anchor + MINMATCH + matchLength + literalLength) {
// printf("Loop\n");
if (cctx->ip > cctx->lastPosHashed) {
- LDM_updateLastHashFromNextHash(cctx);
-// LDM_putHashOfCurrentPosition(cctx);
#ifdef LDM_ROLLING_HASH
+ LDM_updateLastHashFromNextHash(cctx);
LDM_setNextHash(cctx);
+#else
+ LDM_putHashOfCurrentPosition(cctx);
#endif
}
/*
// Set start of next block to current input pointer.
cctx.anchor = cctx.ip;
+#ifdef LDM_ROLLING_HASH
LDM_updateLastHashFromNextHash(&cctx);
-// LDM_putHashOfCurrentPosition(&cctx);
-#ifndef LDM_ROLLING_HASH
+#else
+ LDM_putHashOfCurrentPosition(&cctx);
cctx.ip++;
#endif