guard functions using floating point for debug mode only

they are only used to print debug messages.
Requested in #1386,
This commit is contained in:
Yann Collet
2018-12-22 09:09:40 -08:00
parent 8f35c7f94c
commit c9dfb7e445
2 changed files with 11 additions and 1 deletions
+5 -1
View File
@@ -54,11 +54,15 @@ MEM_STATIC U32 ZSTD_fracWeight(U32 rawStat)
return weight;
}
/* debugging function, @return price in bytes */
#if (DEBUGLEVEL>=2)
/* debugging function,
* @return price in bytes as fractional value
* for debug messages only */
MEM_STATIC double ZSTD_fCost(U32 price)
{
return (double)price / (BITCOST_MULTIPLIER*8);
}
#endif
static void ZSTD_setBasePrices(optState_t* optPtr, int optLevel)
{