Lines Matching refs:U32
37 #include "util.h" /* U32 */
55 static void FUZ_writeLE32 (void* dstVoidPtr, U32 value32)
72 static const U32 nbTestsDefault = 256 KB;
74 static const U32 prime1 = 2654435761U;
75 static const U32 prime2 = 2246822519U;
94 static U32 no_prompt = 0;
95 static U32 displayLevel = 2;
96 static U32 use_pause = 0;
165 U32 rand32 = *src;
175 static void FUZ_fillCompressibleNoiseBuffer(void* buffer, size_t bufferSize, double proba, U32* seed)
179 U32 P32 = (U32)(32768 * proba);
205 static unsigned FUZ_highbit(U32 v32)
220 int basicTests(U32 seed, double compressibility)
227 U32 randState = seed;
247 DISPLAYLEVEL(3, " %u \n", (U32)cBound);
258 DISPLAYLEVEL(3, " %u \n", (U32)cBound);
265 DISPLAYLEVEL(3, " %u \n", (U32)cBound);
299 DISPLAYLEVEL(3, "Compressed %u bytes into a %u bytes frame \n", (U32)testSize, (U32)cSize);
304 DISPLAYLEVEL(3, "Compressed %u bytes into a %u bytes frame \n", (U32)testSize, (U32)cSize);
316 DISPLAYLEVEL(3, "Regenerated %u bytes \n", (U32)decodedBufferSize);
326 DISPLAYLEVEL(3, "Missing last %u bytes : ", (U32)missingBytes);
329 DISPLAY("%u bytes missing != %u bytes requested \n", (U32)missingBytes, (U32)decResult);
440 unsigned const maxBits = FUZ_highbit((U32)decodedBufferSize);
460 DISPLAYLEVEL(3, "Regenerated %u bytes \n", (U32)decodedSize);
487 DISPLAYLEVEL(4, "dstCapacity = %u ; ", (U32)dstCapacity)
489 DISPLAYLEVEL(3, "Compressed %u bytes into a %u bytes frame \n", (U32)testSize, (U32)cSize);
495 DISPLAYLEVEL(4, "dstCapacity = %u ; ", (U32)dstCapacity)
497 DISPLAYLEVEL(3, "Compressed %u bytes into a %u bytes frame \n", (U32)testSize, (U32)cSize);
518 DISPLAYLEVEL(3, "Regenerated %u bytes \n", (U32)decodedSize);
565 U32 const dictID = 0x99;
581 DISPLAYLEVEL(3, "%u \n", (U32)prefs.frameInfo.dictID);
639 DISPLAYLEVEL(3, "Regenerated %u bytes \n", (U32)decodedSize);
697 DISPLAYLEVEL(3, "Regenerated %u bytes \n", (U32)decodedSize);
733 DISPLAYLEVEL(3, "Regenerated %u bytes \n", (U32)decodedSize);
768 unsigned maxBits = FUZ_highbit((U32)decodedBufferSize);
778 FUZ_writeLE32(ip+4, (U32)cSize);
876 U32* const randState,
878 U32 seed, U32 testNb,
887 unsigned const suggestedBits = FUZ_highbit((U32)cSize);
963 U32* const randState,
965 U32 seed, U32 testNb,
990 int fuzzerTests(U32 seed, unsigned nbTests, unsigned startTest, double compressibility, U32 duration_s)
998 U32 coreRand = seed;
1025 U32 randState = coreRand ^ prime1;
1026 unsigned const srcBits = (FUZ_rand(&randState) % (FUZ_highbit((U32)(CNBufferLength-1)) - 1)) + 1;
1053 FUZ_writeLE32(op+4, (U32)srcSize);
1065 unsigned const maxBits = FUZ_highbit((U32)srcSize);
1145 DISPLAYLEVEL(5, "\nCompressed %u bytes into %u \n", (U32)srcSize, (U32)cSize);
1158 { U32 const maxNbBits = FUZ_highbit((U32)cSize);
1162 { U32 const nbBits = FUZ_rand(&randState) % maxNbBits;
1169 { U32 const nbBitsCodes = FUZ_rand(&randState) % maxNbBits;
1170 U32 const nbBits = nbBitsCodes ? nbBitsCodes-1 : 0;
1225 U32 seed=0;
1232 U32 duration=0;
1297 case '9': duration *= 10; duration += (U32)(*argument++ - '0'); continue;
1309 seed += (U32)(*argument - '0');
1346 U32 const h = XXH32(&t, sizeof(t), 1);