U32 highThreshold = tableSize-1;
/* CTable header */
-
-
tableU16[-2] = (U16) tableLog;
tableU16[-1] = (U16) maxSymbolValue;
}
/* Build table */
- { U32 u; for (u=0; u<tableSize; u++) {
+ { U32 u; for (u=0; u<tableSize; u++) {
FSE_FUNCTION_TYPE s = tableSymbol[u]; /* note : static analyzer may not understand tableSymbol is properly initialized */
tableU16[cumul[s]++] = (U16) (tableSize+u); /* TableU16 : sorted by symbol order; gives next state value */
- }}
+ } }
/* Build Symbol Transformation Table */
{ unsigned total = 0;
#include <time.h> /* clock_t, clock, CLOCKS_PER_SEC */
#include "mem.h"
-#include "zstd_static.h"
+#include "zstd_static.h" /* ZSTD_VERSION_STRING */
#include "fse_static.h"
#include "zbuff.h"
#include "datagen.h"
* Constants
**************************************/
#define PROGRAM_DESCRIPTION "Zstandard speed analyzer"
-#ifndef ZSTD_VERSION
-# define ZSTD_VERSION ""
-#endif
#define AUTHOR "Yann Collet"
-#define WELCOME_MESSAGE "*** %s %s %i-bits, by %s (%s) ***\n", PROGRAM_DESCRIPTION, ZSTD_VERSION, (int)(sizeof(void*)*8), AUTHOR, __DATE__
+#define WELCOME_MESSAGE "*** %s %s %i-bits, by %s (%s) ***\n", PROGRAM_DESCRIPTION, ZSTD_VERSION_STRING, (int)(sizeof(void*)*8), AUTHOR, __DATE__
#define KB *(1<<10)
#include <sys/timeb.h> /* timeb */
#include <string.h> /* strcmp */
#include <time.h> /* clock_t */
-#include "zstd_static.h"
+#include "zstd_static.h" /* ZSTD_VERSION_STRING */
#include "datagen.h" /* RDG_genBuffer */
#include "xxhash.h" /* XXH64 */
#include "mem.h"
/*-************************************
* Constants
**************************************/
-#ifndef ZSTD_VERSION
-# define ZSTD_VERSION ""
-#endif
-
#define KB *(1U<<10)
#define MB *(1U<<20)
#define GB *(1U<<30)
} } } } /* for (argNb=1; argNb<argc; argNb++) */
/* Get Seed */
- DISPLAY("Starting zstd tester (%i-bits, %s)\n", (int)(sizeof(size_t)*8), ZSTD_VERSION);
+ DISPLAY("Starting zstd tester (%i-bits, %s)\n", (int)(sizeof(size_t)*8), ZSTD_VERSION_STRING);
if (!seedset) seed = (U32)(clock() % 10000);
DISPLAY("Seed = %u\n", seed);
* Constants
**************************************/
#define PROGRAM_DESCRIPTION "ZSTD parameters tester"
-#ifndef ZSTD_VERSION
-# define ZSTD_VERSION ""
-#endif
#define AUTHOR "Yann Collet"
-#define WELCOME_MESSAGE "*** %s %s %i-bits, by %s (%s) ***\n", PROGRAM_DESCRIPTION, ZSTD_VERSION, (int)(sizeof(void*)*8), AUTHOR, __DATE__
+#define WELCOME_MESSAGE "*** %s %s %i-bits, by %s (%s) ***\n", PROGRAM_DESCRIPTION, ZSTD_VERSION_STRING, (int)(sizeof(void*)*8), AUTHOR, __DATE__
#define KB *(1<<10)
/*-************************************
* Constants
**************************************/
-#ifndef ZSTD_VERSION
-# define ZSTD_VERSION ""
-#endif
-
#define KB *(1U<<10)
#define MB *(1U<<20)
#define GB *(1U<<30)
} } } /* for(argNb=1; argNb<argc; argNb++) */
/* Get Seed */
- DISPLAY("Starting zstd_buffered tester (%i-bits, %s)\n", (int)(sizeof(size_t)*8), ZSTD_VERSION);
+ DISPLAY("Starting zstd_buffered tester (%i-bits, %s)\n", (int)(sizeof(size_t)*8), ZSTD_VERSION_STRING);
if (!seedset) seed = FUZ_GetMilliStart() % 10000;
DISPLAY("Seed = %u\n", seed);