Lines Matching full:1

59     dstPtr[1] = (BYTE)(value32 >> 8);  in FUZ_writeLE32()
70 #define KB *(1U<<10)
71 #define MB *(1U<<20)
72 #define GB *(1U<<30)
143 size_t const offsetRand = FUZ_RAND15BITS + 1; in FUZ_fillCompressibleNoiseBuffer()
161 while (v32) {v32 >>= 1; nbBits ++;} in FUZ_highbit()
193 crcOrig = XXH64(CNBuffer, COMPRESSIBLE_NOISE_LENGTH, 1); in basicTests()
203 DISPLAYLEVEL(3, "LZ4F_compressBound(1 KB, autoFlush=1) = "); in basicTests()
207 autoFlushPrefs.autoFlush = 1; in basicTests()
208 cBound = LZ4F_compressBound(1 KB, &autoFlushPrefs); in basicTests()
214 DISPLAYLEVEL(3, "LZ4F_compressBound(1 KB, autoFlush=0) = "); in basicTests()
215 { size_t const cBound = LZ4F_compressBound(1 KB, &prefs); in basicTests()
266 { U64 const crcDest = XXH64(decodedBuffer, decodedBufferSize, 1); in basicTests()
293 { U64 const crcDest = XXH64(decodedBuffer, (size_t)(op-ostart), 1); in basicTests()
361 size_t iSize = 1; in basicTests()
366 { U64 const crcDest = XXH64(decodedBuffer, COMPRESSIBLE_NOISE_LENGTH, 1); in basicTests()
402 size_t iSize = (FUZ_rand(&randState) & ((1<<nbBits)-1)) + 1; in basicTests()
410 U64 const crcDest = XXH64(decodedBuffer, decodedSize, 1); in basicTests()
424 DISPLAYLEVEL(3, "Using 1 MB block : "); in basicTests()
466 { U64 const crcDest = XXH64(decodedBuffer, decodedSize, 1); in basicTests()
467 U64 const crcSrc = XXH64(CNBuffer, testSize, 1); in basicTests()
501 prefs.frameInfo.contentSize = testSize+1; in basicTests()
722 size_t iSize = (FUZ_rand(&randState) & ((1<<nbBits)-1)) + 1; in basicTests()
735 FUZ_writeLE32(ip, LZ4F_MAGIC_SKIPPABLE_START+1); in basicTests()
741 size_t iSize = (FUZ_rand(&randState) & ((1<<nbBits)-1)) + 1; in basicTests()
777 basicTests_error = 1; in basicTests()
805 DISPLAY(" (seed %u, test nb %u) \n", seed, testNb); exit(1); }
831 XXH64_reset(&xxh64, 1); in test_lz4f_decompression_wBuffers()
834 unsigned const nbBitsI = (FUZ_rand(randState) % (maxBits-1)) + 1; in test_lz4f_decompression_wBuffers()
835 unsigned const nbBitsO = (FUZ_rand(randState) % (maxBits)) + 1; in test_lz4f_decompression_wBuffers()
836 size_t const iSizeCand = (FUZ_rand(randState) & ((1<<nbBitsI)-1)) + 1; in test_lz4f_decompression_wBuffers()
839 size_t const oSizeCand = (FUZ_rand(randState) & ((1<<nbBitsO)-1)) + 2; in test_lz4f_decompression_wBuffers()
846 dOptions.stableDst = FUZ_rand(randState) & 1; in test_lz4f_decompression_wBuffers()
906 …o_scenario_e const o_scenario = (o_scenario_e)(FUZ_rand(randState) % 3); /* 0 : contiguous; 1 : … in test_lz4f_decompression()
954 …decodedBuffer = calloc(1, CNBufferLength); /* calloc avoids decodedBuffer being considered "garb… in fuzzerTests()
964 … unsigned const srcBits = (FUZ_rand(&randState) % (FUZ_highbit((U32)(CNBufferLength-1)) - 1)) + 1; in fuzzerTests()
965 size_t const srcSize = (FUZ_rand(&randState) & ((1<<srcBits)-1)) + 1; in fuzzerTests()
968 unsigned const neverFlush = (FUZ_rand(&randState) & 15) == 1; in fuzzerTests()
969 U64 const crcOrig = XXH64(srcStart, srcSize, 1); in fuzzerTests()
976 prefs.frameInfo.blockMode = (LZ4F_blockMode_t)(FUZ_rand(&randState) & 1); in fuzzerTests()
978 prefs.frameInfo.blockChecksumFlag = (LZ4F_blockChecksum_t)(FUZ_rand(&randState) & 1); in fuzzerTests()
979 prefs.frameInfo.contentChecksumFlag = (LZ4F_contentChecksum_t)(FUZ_rand(&randState) & 1); in fuzzerTests()
980 prefs.frameInfo.contentSize = ((FUZ_rand(&randState) & 0xF) == 1) ? srcSize : 0; in fuzzerTests()
983 if ((FUZ_rand(&randState) & 0xF) == 1) prefsPtr = NULL; in fuzzerTests()
1013 size_t const sampleMax = (FUZ_rand(&randState) & ((1<<nbBitsSeg)-1)) + 1; in fuzzerTests()
1017 cOptions.stableSrc = ((FUZ_rand(&randState) & 3) == 1); in fuzzerTests()
1027 { unsigned const forceFlush = neverFlush ? 0 : ((FUZ_rand(&randState) & 3) == 1); in fuzzerTests()
1035 op[0] = op[1] = op[2] = 0; in fuzzerTests()
1041 op[1] = (BYTE)(bc32>>8); in fuzzerTests()
1050 size_t const dstEndTooSmallSize = (FUZ_rand(&randState) % dstEndSafeSize) + 1; in fuzzerTests()
1075 …ressedBuffer, cSize, srcStart, srcSize, crcOrig, &randState, dCtx, seed, testNb, 1 /*findError*/ ); in fuzzerTests()
1080 #if 1 in fuzzerTests()
1087 size_t const mask = (1<<nbBits) - 1; in fuzzerTests()
1094 U32 const nbBits = nbBitsCodes ? nbBitsCodes-1 : 0; in fuzzerTests()
1095 size_t const mask = (1<<nbBits) - 1; in fuzzerTests()
1096 size_t const rNoiseLength = (FUZ_rand(&randState) & mask) + 1; in fuzzerTests()
1160 for (argNb=1; argNb<argc; argNb++) { in main()
1168 no_prompt=1; in main()
1169 seedset=1; in main()
1170 displayLevel=1; in main()
1190 use_pause = 1; in main()
1213 case '1': in main()
1230 seedset=1; in main()
1270 U32 const h = XXH32(&t, sizeof(t), 1); in main()
1279 if (result) return 1; in main()