fix : inlining difficulties with gcc 4.6 (travis)

This commit is contained in:
Yann Collet
2016-02-10 14:01:49 +01:00
parent 70e8c389f1
commit 768c6bc705
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ FORCE_INLINE U32 ZSTD_getPrice(seqStore_t* seqStorePtr, U32 litLength, const BYT
{
if (seqStorePtr->litSum > ZSTD_FREQ_THRESHOLD)
return ZSTD_getLiteralPriceReal(seqStorePtr, litLength, literals) + ZSTD_getMatchPriceReal(seqStorePtr, offset, matchLength);
/* backup eval */
return (litLength<<3) + ZSTD_highbit((U32)matchLength+1) + Offbits + ZSTD_highbit((U32)offset+1);
}