Home
last modified time | relevance | path

Searched refs:hSize (Results 1 – 21 of 21) sorted by relevance

/external/skqp/bench/
DHairlinePathBench.cpp91 int hSize = size / 2; in makePath() local
98 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
99 int base2 = 2 * rand.nextULessThan(hSize); in makePath()
100 int base3 = 2 * rand.nextULessThan(hSize); in makePath()
123 int hSize = size / 2; in makePath() local
130 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
131 int base2 = 2 * rand.nextULessThan(hSize); in makePath()
132 int base3 = 2 * rand.nextULessThan(hSize); in makePath()
156 int hSize = size / 2; in makePath() local
163 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
[all …]
/external/skia/bench/
DHairlinePathBench.cpp91 int hSize = size / 2; in makePath() local
98 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
99 int base2 = 2 * rand.nextULessThan(hSize); in makePath()
100 int base3 = 2 * rand.nextULessThan(hSize); in makePath()
123 int hSize = size / 2; in makePath() local
130 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
131 int base2 = 2 * rand.nextULessThan(hSize); in makePath()
132 int base3 = 2 * rand.nextULessThan(hSize); in makePath()
156 int hSize = size / 2; in makePath() local
163 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
[all …]
/external/zstd/lib/decompress/
Dhuf_decompress.c470 size_t const hSize = HUF_readDTableX1_wksp(DCtx, cSrc, cSrcSize, workSpace, wkspSize); in HUF_decompress1X1_DCtx_wksp() local
471 if (HUF_isError(hSize)) return hSize; in HUF_decompress1X1_DCtx_wksp()
472 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress1X1_DCtx_wksp()
473 ip += hSize; cSrcSize -= hSize; in HUF_decompress1X1_DCtx_wksp()
495 … size_t const hSize = HUF_readDTableX1_wksp_bmi2(dctx, cSrc, cSrcSize, workSpace, wkspSize, bmi2); in HUF_decompress4X1_DCtx_wksp_bmi2() local
496 if (HUF_isError(hSize)) return hSize; in HUF_decompress4X1_DCtx_wksp_bmi2()
497 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X1_DCtx_wksp_bmi2()
498 ip += hSize; cSrcSize -= hSize; in HUF_decompress4X1_DCtx_wksp_bmi2()
936 size_t const hSize = HUF_readDTableX2_wksp(DCtx, cSrc, cSrcSize, in HUF_decompress1X2_DCtx_wksp() local
938 if (HUF_isError(hSize)) return hSize; in HUF_decompress1X2_DCtx_wksp()
[all …]
Dzstd_decompress.c1085 size_t const hSize = HUF_readDTableX1_wksp(entropy->hufTable, in ZSTD_loadDEntropy() local
1089 size_t const hSize = HUF_readDTableX2_wksp(entropy->hufTable, in ZSTD_loadDEntropy() local
1093 RETURN_ERROR_IF(HUF_isError(hSize), dictionary_corrupted, ""); in ZSTD_loadDEntropy()
1094 dictPtr += hSize; in ZSTD_loadDEntropy()
1682 …{ size_t const hSize = ZSTD_getFrameHeader_advanced(&zds->fParams, zds->headerBuffer, zds->lhSiz… in ZSTD_decompressStream() local
1683 DEBUGLOG(5, "header size : %u", (U32)hSize); in ZSTD_decompressStream()
1684 if (ZSTD_isError(hSize)) { in ZSTD_decompressStream()
1703 return hSize; /* error */ in ZSTD_decompressStream()
1705 if (hSize != 0) { /* need more input */ in ZSTD_decompressStream()
1706 … size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */ in ZSTD_decompressStream()
[all …]
/external/zstd/lib/compress/
Dhuf_compress.c90 { CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), norm, maxSymbolValue, tableLog) ); in HUF_compressWeights()
91 op += hSize; in HUF_compressWeights()
127 { CHECK_V_F(hSize, HUF_compressWeights(op+1, maxDstSize-1, huffWeight, maxSymbolValue) ); in HUF_writeCTable()
128 if ((hSize>1) & (hSize < maxSymbolValue/2)) { /* FSE compressed */ in HUF_writeCTable()
129 op[0] = (BYTE)hSize; in HUF_writeCTable()
130 return hSize+1; in HUF_writeCTable()
806 { CHECK_V_F(hSize, HUF_writeCTable (op, dstSize, table->CTable, maxSymbolValue, huffLog) ); in HUF_compress_internal()
811 if (oldSize <= hSize + newSize || hSize + 12 >= srcSize) { in HUF_compress_internal()
818 if (hSize + 12ul >= srcSize) { return 0; } in HUF_compress_internal()
819 op += hSize; in HUF_compress_internal()
Dzstd_compress_superblock.c131 size_t const hSize = HUF_writeCTable( in ZSTD_buildSuperBlockEntropy_literal() local
138 if (oldCSize < srcSize && (oldCSize <= hSize + newCSize || hSize + 12 >= srcSize)) { in ZSTD_buildSuperBlockEntropy_literal()
145 if (newCSize + hSize >= srcSize) { in ZSTD_buildSuperBlockEntropy_literal()
151 DEBUGLOG(5, "set_compressed (hSize=%u)", (U32)hSize); in ZSTD_buildSuperBlockEntropy_literal()
154 return hSize; in ZSTD_buildSuperBlockEntropy_literal()
Dzstd_compress.c1275 size_t const hSize = ((size_t)1) << cParams->hashLog; in ZSTD_sizeof_matchState() local
1281 + hSize * sizeof(U32) in ZSTD_sizeof_matchState()
1294 (U32)chainSize, (U32)hSize, (U32)h3Size); in ZSTD_sizeof_matchState()
1534 size_t const hSize = ((size_t)1) << cParams->hashLog; in ZSTD_reset_matchState() local
1554 ms->hashTable = (U32*)ZSTD_cwksp_reserve_table(ws, hSize * sizeof(U32)); in ZSTD_reset_matchState()
1890 size_t const hSize = (size_t)1 << cdict_cParams->hashLog; in ZSTD_resetCCtx_byCopyingCDict() local
1894 hSize * sizeof(U32)); in ZSTD_resetCCtx_byCopyingCDict()
1982 size_t const hSize = (size_t)1 << srcCCtx->appliedParams.cParams.hashLog; in ZSTD_copyCCtx_internal() local
1988 hSize * sizeof(U32)); in ZSTD_copyCCtx_internal()
2090 { U32 const hSize = (U32)1 << params->cParams.hashLog; in ZSTD_reduceIndex() local
[all …]
Dzstdmt_compress.c710 …size_t const hSize = ZSTD_compressContinue(cctx, dstBuff.start, dstBuff.capacity, job->src.start, … in ZSTDMT_compressionJob() local
711 if (ZSTD_isError(hSize)) JOB_ERROR(hSize); in ZSTDMT_compressionJob()
712 …"ZSTDMT_compressionJob: flush and overwrite %u bytes of frame header (not first job)", (U32)hSize); in ZSTDMT_compressionJob()
/external/zstd/lib/dictBuilder/
Dzdict.c892 size_t hSize; in ZDICT_finalizeDictionary() local
911 hSize = 8; in ZDICT_finalizeDictionary()
916 { size_t const eSize = ZDICT_analyzeEntropy(header+hSize, HBUFFSIZE-hSize, in ZDICT_finalizeDictionary()
922 hSize += eSize; in ZDICT_finalizeDictionary()
926 if (hSize + dictContentSize > dictBufferCapacity) dictContentSize = dictBufferCapacity - hSize; in ZDICT_finalizeDictionary()
927 { size_t const dictSize = hSize + dictContentSize; in ZDICT_finalizeDictionary()
930 memcpy(dictBuffer, header, hSize); in ZDICT_finalizeDictionary()
943 size_t hSize = 8; in ZDICT_addEntropyTablesFromBuffer_advanced() local
948 { size_t const eSize = ZDICT_analyzeEntropy((char*)dictBuffer+hSize, dictBufferCapacity-hSize, in ZDICT_addEntropyTablesFromBuffer_advanced()
954 hSize += eSize; in ZDICT_addEntropyTablesFromBuffer_advanced()
[all …]
/external/gptfdisk/
Dgpt.cc538 uint32_t oldCRC, newCRC, hSize; in CheckHeaderCRC() local
546 hSize = header->headerSize; in CheckHeaderCRC()
551 if ((hSize > blockSize) || (hSize < HEADER_SIZE)) { in CheckHeaderCRC()
553 cerr << "\aWarning! Header size is specified as " << hSize << ", which is invalid.\n"; in CheckHeaderCRC()
556 hSize = HEADER_SIZE; in CheckHeaderCRC()
557 } else if ((hSize > sizeof(GPTHeader)) && warn) { in CheckHeaderCRC()
558 …cout << "\aCaution! Header size for CRC check is " << hSize << ", which is greater than " << sizeo… in CheckHeaderCRC()
562 temp = new uint8_t[hSize]; in CheckHeaderCRC()
564 memset(temp, 0, hSize); in CheckHeaderCRC()
565 if (hSize < sizeof(GPTHeader)) in CheckHeaderCRC()
[all …]
/external/zstd/lib/legacy/
Dzstd_v07.c1909 size_t const hSize = HUFv07_readDTableX2 (DCtx, cSrc, cSrcSize); in HUFv07_decompress1X2_DCtx() local
1910 if (HUFv07_isError(hSize)) return hSize; in HUFv07_decompress1X2_DCtx()
1911 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUFv07_decompress1X2_DCtx()
1912 ip += hSize; cSrcSize -= hSize; in HUFv07_decompress1X2_DCtx()
2032 size_t const hSize = HUFv07_readDTableX2 (dctx, cSrc, cSrcSize); in HUFv07_decompress4X2_DCtx() local
2033 if (HUFv07_isError(hSize)) return hSize; in HUFv07_decompress4X2_DCtx()
2034 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUFv07_decompress4X2_DCtx()
2035 ip += hSize; cSrcSize -= hSize; in HUFv07_decompress4X2_DCtx()
2321 size_t const hSize = HUFv07_readDTableX4 (DCtx, cSrc, cSrcSize); in HUFv07_decompress1X4_DCtx() local
2322 if (HUFv07_isError(hSize)) return hSize; in HUFv07_decompress1X4_DCtx()
[all …]
Dzstd_v06.c2501 size_t const hSize = HUFv06_readDTableX4 (DTable, cSrc, cSrcSize); in HUFv06_decompress1X4() local
2502 if (HUFv06_isError(hSize)) return hSize; in HUFv06_decompress1X4()
2503 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUFv06_decompress1X4()
2504 ip += hSize; in HUFv06_decompress1X4()
2505 cSrcSize -= hSize; in HUFv06_decompress1X4()
2609 size_t hSize = HUFv06_readDTableX4 (DTable, cSrc, cSrcSize); in HUFv06_decompress4X4() local
2610 if (HUFv06_isError(hSize)) return hSize; in HUFv06_decompress4X4()
2611 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUFv06_decompress4X4()
2612 ip += hSize; in HUFv06_decompress4X4()
2613 cSrcSize -= hSize; in HUFv06_decompress4X4()
[all …]
Dzstd_v05.c2373 size_t hSize = HUFv05_readDTableX4 (DTable, cSrc, cSrcSize); in HUFv05_decompress1X4() local
2374 if (HUFv05_isError(hSize)) return hSize; in HUFv05_decompress1X4()
2375 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUFv05_decompress1X4()
2376 ip += hSize; in HUFv05_decompress1X4()
2377 cSrcSize -= hSize; in HUFv05_decompress1X4()
2482 size_t hSize = HUFv05_readDTableX4 (DTable, cSrc, cSrcSize); in HUFv05_decompress4X4() local
2483 if (HUFv05_isError(hSize)) return hSize; in HUFv05_decompress4X4()
2484 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUFv05_decompress4X4()
2485 ip += hSize; in HUFv05_decompress4X4()
2486 cSrcSize -= hSize; in HUFv05_decompress4X4()
[all …]
Dzstd_v02.c2185 size_t hSize = HUF_readDTableX4 (DTable, cSrc, cSrcSize); in HUF_decompress4X4() local
2186 if (HUF_isError(hSize)) return hSize; in HUF_decompress4X4()
2187 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X4()
2188 ip += hSize; in HUF_decompress4X4()
2189 cSrcSize -= hSize; in HUF_decompress4X4()
2542 size_t hSize = HUF_readDTableX6 (DTable, cSrc, cSrcSize); in HUF_decompress4X6() local
2543 if (HUF_isError(hSize)) return hSize; in HUF_decompress4X6()
2544 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X6()
2545 ip += hSize; in HUF_decompress4X6()
2546 cSrcSize -= hSize; in HUF_decompress4X6()
Dzstd_v03.c2182 size_t hSize = HUF_readDTableX4 (DTable, cSrc, cSrcSize); in HUF_decompress4X4() local
2183 if (HUF_isError(hSize)) return hSize; in HUF_decompress4X4()
2184 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X4()
2185 ip += hSize; in HUF_decompress4X4()
2186 cSrcSize -= hSize; in HUF_decompress4X4()
Dzstd_v04.c2329 size_t hSize = HUF_readDTableX4 (DTable, cSrc, cSrcSize); in HUF_decompress4X4() local
2330 if (HUF_isError(hSize)) return hSize; in HUF_decompress4X4()
2331 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X4()
2332 ip += hSize; in HUF_decompress4X4()
2333 cSrcSize -= hSize; in HUF_decompress4X4()
/external/lz4/lib/
Dlz4frame.c1264 size_t const hSize = LZ4F_headerSize(srcBuffer, *srcSizePtr); in LZ4F_getFrameInfo() local
1265 if (LZ4F_isError(hSize)) { *srcSizePtr=0; return hSize; } in LZ4F_getFrameInfo()
1266 if (*srcSizePtr < hSize) { in LZ4F_getFrameInfo()
1271 { size_t decodeResult = LZ4F_decodeHeader(dctx, srcBuffer, hSize); in LZ4F_getFrameInfo()
1402 …size_t const hSize = LZ4F_decodeHeader(dctx, srcPtr, (size_t)(srcEnd-srcPtr)); /* will update dSt… in LZ4F_decompress() local
1403 if (LZ4F_isError(hSize)) return hSize; in LZ4F_decompress()
1404 srcPtr += hSize; in LZ4F_decompress()
1424 …{ size_t const hSize = LZ4F_decodeHeader(dctx, dctx->header, dctx->tmpInTarget); /* will update… in LZ4F_decompress() local
1425 if (LZ4F_isError(hSize)) return hSize; in LZ4F_decompress()
/external/lz4/programs/
Dlz4io.c1449 { size_t hSize = LZ4F_headerSize(&buffer, LZ4F_HEADER_SIZE_MIN); in LZ4IO_getCompressedFileInfo() local
1450 if (!LZ4F_isError(hSize)) { in LZ4IO_getCompressedFileInfo()
1451 if (hSize > (LZ4F_HEADER_SIZE_MIN + MAGICNUMBER_SIZE)) { in LZ4IO_getCompressedFileInfo()
1453 …const size_t readBytes = fread(buffer + LZ4F_HEADER_SIZE_MIN, 1, hSize - LZ4F_HEADER_SIZE_MIN, fin… in LZ4IO_getCompressedFileInfo()
1460 … isError = LZ4F_isError(LZ4F_getFrameInfo(dctx, &frameInfo.lz4FrameInfo, buffer, &hSize)); in LZ4IO_getCompressedFileInfo()
1479 …{ double const ratio = (double)(totalBlocksSize + hSize) / frameInfo.lz4FrameInfo.contentSize * … in LZ4IO_getCompressedFileInfo()
1481 totalBlocksSize + hSize, in LZ4IO_getCompressedFileInfo()
1489 … DISPLAYLEVEL(3, " %20llu %20s %9s \n", totalBlocksSize + hSize, "-", "-"); in LZ4IO_getCompressedFileInfo()
/external/mdnsresponder/mDNSShared/
DDebugServices.c1196 unsigned hSize : 1; in DebugSNPrintFVAList() member
1276 case 'h' : F.hSize = 1; c = *++fmt; goto conv; in DebugSNPrintFVAList()
1308 if (F.hSize) n = (short) n; in DebugSNPrintFVAList()
1327 if (F.hSize) n = (unsigned short) n; in DebugSNPrintFVAList()
1432 if (F.hSize) n = (unsigned short) n; in DebugSNPrintFVAList()
1541 if (F.hSize) err = (short)err; in DebugSNPrintFVAList()
1573 if (F.hSize) * (short *) s = (short)nwritten; in DebugSNPrintFVAList()
/external/mdnsresponder/mDNSCore/
DDNSCommon.c2857 unsigned hSize : 1; member
2932 case 'h' : F.hSize = 1; c = *++fmt; goto conv; in mDNS_vsnprintf()
2938 if (F.hSize) n = (short) n; in mDNS_vsnprintf()
2944 if (F.hSize) n = (unsigned short) n; in mDNS_vsnprintf()
2965 if (F.hSize) n = (unsigned short) n; in mDNS_vsnprintf()
3020 if (F.hSize) n = (unsigned short) n; in mDNS_vsnprintf()
3101 if (F.hSize) * (short *) s = (short)nwritten; in mDNS_vsnprintf()
/external/zstd/tests/
Ddecodecorpus.c457 { size_t const hSize = HUF_writeCTable (op, dstSize, hufTable, maxSymbolValue, huffLog); in writeHufHeader() local
458 if (hSize + 12 >= srcSize) return 0; /* not useful to try compression */ in writeHufHeader()
459 op += hSize; in writeHufHeader()