mirror of
https://github.com/facebook/zstd.git
synced 2025-11-30 00:03:21 -05:00
Add ip1 + 128 Prefetch; Tiny Cleanup
This commit is contained in:
parent
991d660ea9
commit
57a100f6dc
@ -295,7 +295,9 @@ _start: /* Requires: ip0 */
|
|||||||
idx = hashTable[hash0];
|
idx = hashTable[hash0];
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
/* load repcode match for ip[2]*/
|
||||||
const U32 rval = MEM_read32(ip2 - rep_offset1);
|
const U32 rval = MEM_read32(ip2 - rep_offset1);
|
||||||
|
|
||||||
current0 = ip0 - base;
|
current0 = ip0 - base;
|
||||||
|
|
||||||
/* write back hash table entry */
|
/* write back hash table entry */
|
||||||
@ -334,18 +336,18 @@ _start: /* Requires: ip0 */
|
|||||||
/* lookup ip[1] */
|
/* lookup ip[1] */
|
||||||
idx = hashTable[hash0];
|
idx = hashTable[hash0];
|
||||||
|
|
||||||
/* advance to next positions */
|
/* calculate step */
|
||||||
{
|
if (ip1 >= nextStep) {
|
||||||
if (ip1 >= nextStep) {
|
PREFETCH_L1(ip1 + 64);
|
||||||
PREFETCH_L1(ip1 + 64);
|
PREFETCH_L1(ip1 + 128);
|
||||||
step++;
|
step++;
|
||||||
nextStep += kStepIncr;
|
nextStep += kStepIncr;
|
||||||
}
|
|
||||||
|
|
||||||
ip0 = ip1;
|
|
||||||
ip1 = ip2;
|
|
||||||
ip2 = ip2 + step;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* advance to next positions */
|
||||||
|
ip0 = ip1;
|
||||||
|
ip1 = ip2;
|
||||||
|
ip2 += step;
|
||||||
} while (ip2 < ilimit);
|
} while (ip2 < ilimit);
|
||||||
|
|
||||||
_cleanup:
|
_cleanup:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user