Merge pull request #1471 from facebook/nofloat

guard functions using floating point for debug mode only
This commit is contained in:
Yann Collet
2018-12-23 12:35:51 -08:00
committed by GitHub
2 changed files with 11 additions and 1 deletions
+6
View File
@@ -746,6 +746,7 @@ MEM_STATIC U32 ZSTD_window_update(ZSTD_window_t* window,
/* debug functions */
#if (DEBUGLEVEL>=2)
MEM_STATIC double ZSTD_fWeight(U32 rawStat)
{
@@ -760,6 +761,8 @@ MEM_STATIC double ZSTD_fWeight(U32 rawStat)
return (double)weight / fp_multiplier;
}
/* display a table content,
* listing each element, its frequency, and its predicted bit cost */
MEM_STATIC void ZSTD_debugTable(const U32* table, U32 max)
{
unsigned u, sum;
@@ -771,6 +774,9 @@ MEM_STATIC void ZSTD_debugTable(const U32* table, U32 max)
}
}
#endif
#if defined (__cplusplus)
}
#endif