Home | History | Annotate | Download | only in tests

Lines Matching refs:U32

38 #include "util.h"       /* U32 */
55 static void FUZ_writeLE32 (void* dstVoidPtr, U32 value32)
74 static const U32 nbTestsDefault = 256 KB;
76 static const U32 prime1 = 2654435761U;
77 static const U32 prime2 = 2246822519U;
97 static U32 no_prompt = 0;
98 static U32 displayLevel = 2;
99 static U32 use_pause = 0;
117 U32 rand32 = *src;
128 static void FUZ_fillCompressibleNoiseBuffer(void* buffer, size_t bufferSize, double proba, U32* seed)
132 U32 P32 = (U32)(32768 * proba);
159 static unsigned FUZ_highbit(U32 v32)
174 int basicTests(U32 seed, double compressibility)
181 U32 randState = seed;
201 DISPLAYLEVEL(3, " %u \n", (U32)cBound);
231 DISPLAYLEVEL(3, "Compressed %u bytes into a %u bytes frame \n", (U32)testSize, (U32)cSize);
236 DISPLAYLEVEL(3, "Compressed %u bytes into a %u bytes frame \n", (U32)testSize, (U32)cSize);
248 DISPLAYLEVEL(3, "Regenerated %u bytes \n", (U32)decodedBufferSize);
258 DISPLAYLEVEL(3, "Missing last %u bytes : ", (U32)missingBytes);
261 DISPLAY("%u bytes missing != %u bytes requested \n", (U32)missingBytes, (U32)decResult);
371 unsigned const maxBits = FUZ_highbit((U32)decodedBufferSize);
391 DISPLAYLEVEL(3, "Regenerated %u bytes \n", (U32)decodedSize);
418 DISPLAYLEVEL(4, "dstCapacity = %u ; ", (U32)dstCapacity)
420 DISPLAYLEVEL(3, "Compressed %u bytes into a %u bytes frame \n", (U32)testSize, (U32)cSize);
426 DISPLAYLEVEL(4, "dstCapacity = %u ; ", (U32)dstCapacity)
428 DISPLAYLEVEL(3, "Compressed %u bytes into a %u bytes frame \n", (U32)testSize, (U32)cSize);
449 DISPLAYLEVEL(3, "Regenerated %u bytes \n", (U32)decodedSize);
496 U32 const dictID = 0x99;
510 DISPLAYLEVEL(3, "%u \n", (U32)prefs.frameInfo.dictID);
557 DISPLAYLEVEL(3, "Regenerated %u bytes \n", (U32)decodedSize);
615 DISPLAYLEVEL(3, "Regenerated %u bytes \n", (U32)decodedSize);
651 DISPLAYLEVEL(3, "Regenerated %u bytes \n", (U32)decodedSize);
663 unsigned maxBits = FUZ_highbit((U32)decodedBufferSize);
673 FUZ_writeLE32(ip+4, (U32)cSize);
756 int fuzzerTests(U32 seed, unsigned nbTests, unsigned startTest, double compressibility, U32 duration_s)
765 U32 coreRand = seed;
793 U32 randState = coreRand ^ prime1;
794 unsigned const srcBits = (FUZ_rand(&randState) % (FUZ_highbit((U32)(srcDataLength-1)) - 1)) + 1;
821 FUZ_writeLE32(op+4, (U32)srcSize);
831 unsigned const maxBits = FUZ_highbit((U32)srcSize);
863 DISPLAYLEVEL(5, "\nCompressed %u bytes into %u \n", (U32)srcSize, (U32)cSize);
871 unsigned const suggestedBits = FUZ_highbit((U32)cSize);
892 XXH64_update(&xxh64, op, (U32)oSize);
948 U32 seed=0;
955 U32 duration=0;
1069 U32 const h = XXH32(&t, sizeof(t), 1);