/external/zstd/contrib/pzstd/ |
D | SkippableFrame.cpp | 25 MEM_readLE32(bytes.begin()) != kSkippableFrameMagicNumber || in tryRead() 26 MEM_readLE32(bytes.begin() + 4) != kFrameContentsSize) { in tryRead() 29 return MEM_readLE32(bytes.begin() + 8); in tryRead()
|
/external/zstd/contrib/seekable_format/ |
D | zstdseek_decompress.c | 326 if (MEM_readLE32(zs->inBuff + 5) != ZSTD_SEEKABLE_MAGICNUMBER) { in ZSTD_seekable_loadSeekTable() 338 { U32 const numFrames = MEM_readLE32(zs->inBuff); in ZSTD_seekable_loadSeekTable() 350 if (MEM_readLE32(zs->inBuff) != (ZSTD_MAGIC_SKIPPABLE_START | 0xE)) { in ZSTD_seekable_loadSeekTable() 353 if (MEM_readLE32(zs->inBuff+4) + ZSTD_SKIPPABLEHEADERSIZE != frameSize) { in ZSTD_seekable_loadSeekTable() 382 cOffset += MEM_readLE32(zs->inBuff + pos); in ZSTD_seekable_loadSeekTable() 384 dOffset += MEM_readLE32(zs->inBuff + pos); in ZSTD_seekable_loadSeekTable() 387 entries[idx].checksum = MEM_readLE32(zs->inBuff + pos); in ZSTD_seekable_loadSeekTable()
|
/external/zstd/lib/decompress/ |
D | zstd_decompress.c | 383 { U32 const magic = MEM_readLE32(buffer); in ZSTD_isFrame() 400 { U32 const magic = MEM_readLE32(buffer); in ZSTD_isSkippableFrame() 452 && (MEM_readLE32(src) != ZSTD_MAGICNUMBER) ) { in ZSTD_getFrameHeader_advanced() 453 if ((MEM_readLE32(src) & ZSTD_MAGIC_SKIPPABLE_MASK) == ZSTD_MAGIC_SKIPPABLE_START) { in ZSTD_getFrameHeader_advanced() 458 zfhPtr->frameContentSize = MEM_readLE32((const char *)src + ZSTD_FRAMEIDSIZE); in ZSTD_getFrameHeader_advanced() 498 case 3 : dictID = MEM_readLE32(ip+pos); pos+=4; break; in ZSTD_getFrameHeader_advanced() 507 case 2 : frameContentSize = MEM_readLE32(ip+pos); break; in ZSTD_getFrameHeader_advanced() 563 sizeU32 = MEM_readLE32((BYTE const*)src + ZSTD_FRAMEIDSIZE); in readSkippableFrameSize() 587 U32 const magicNumber = MEM_readLE32(src); in ZSTD_readSkippableFrame() 614 U32 const magicNumber = MEM_readLE32(src); in ZSTD_findDecompressedSize() [all …]
|
D | zstd_ddict.c | 102 { U32 const magic = MEM_readLE32(ddict->dictContent); in ZSTD_loadEntropy_intoDDict() 109 ddict->dictID = MEM_readLE32((const char*)ddict->dictContent + ZSTD_FRAMEIDSIZE); in ZSTD_loadEntropy_intoDDict()
|
D | zstd_decompress_block.c | 141 U32 const lhc = MEM_readLE32(istart); in ZSTD_decodeLiteralsBlock()
|
/external/zstd/contrib/linux-kernel/ |
D | mem.h | 63 MEM_STATIC U32 MEM_readLE32(const void* memPtr); 169 MEM_STATIC U32 MEM_readLE32(const void *memPtr) in MEM_readLE32() function 192 return (size_t)MEM_readLE32(memPtr); in MEM_readLEST()
|
/external/zstd/lib/common/ |
D | entropy_common.c | 99 bitStream = MEM_readLE32(ip); in FSE_readNCount_body() 126 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount_body() 157 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount_body() 205 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount_body()
|
D | mem.h | 108 MEM_STATIC U32 MEM_readLE32(const void* memPtr); 336 MEM_STATIC U32 MEM_readLE32(const void* memPtr) in MEM_readLE32() function 371 return (size_t)MEM_readLE32(memPtr); in MEM_readLEST()
|
/external/zstd/lib/legacy/ |
D | zstd_v03.c | 228 MEM_STATIC U32 MEM_readLE32(const void* memPtr) in MEM_readLE32() function 255 return (size_t)MEM_readLE32(memPtr); in MEM_readLEST() 1194 bitStream = MEM_readLE32(ip); in FSE_readNCount() 1215 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount() 1237 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount() 1279 bitStream = MEM_readLE32(ip) >> (bitCount & 31); in FSE_readNCount() 2494 …const size_t litSize = (MEM_readLE32(src) & 0x1FFFFF) >> 2; /* no buffer issue : srcSize >= MIN_… in ZSTD_decompressLiterals() 2495 …const size_t litCSize = (MEM_readLE32(ip+2) & 0xFFFFFF) >> 5; /* no buffer issue : srcSize >= MI… in ZSTD_decompressLiterals() 2532 …const size_t litSize = (MEM_readLE32(istart) & 0xFFFFFF) >> 2; /* no buffer issue : srcSize >= M… in ZSTD_decodeLiteralsBlock() 2550 …const size_t litSize = (MEM_readLE32(istart) & 0xFFFFFF) >> 2; /* no buffer issue : srcSize >= M… in ZSTD_decodeLiteralsBlock() [all …]
|
D | zstd_v07.c | 404 MEM_STATIC U32 MEM_readLE32(const void* memPtr) in MEM_readLE32() function 424 return (size_t)MEM_readLE32(memPtr); in MEM_readLEST() 1222 bitStream = MEM_readLE32(ip); in FSEv07_readNCount() 1239 bitStream = MEM_readLE32(ip) >> bitCount; in FSEv07_readNCount() 1256 bitStream = MEM_readLE32(ip) >> bitCount; in FSEv07_readNCount() 1289 bitStream = MEM_readLE32(ip) >> (bitCount & 31); in FSEv07_readNCount() 3156 if (MEM_readLE32(src) != ZSTDv07_MAGICNUMBER) { in ZSTDv07_getFrameParams() 3157 if ((MEM_readLE32(src) & 0xFFFFFFF0U) == ZSTDv07_MAGIC_SKIPPABLE_START) { in ZSTDv07_getFrameParams() 3159 fparamsPtr->frameContentSize = MEM_readLE32((const char *)src + 4); in ZSTDv07_getFrameParams() 3197 case 3 : dictID = MEM_readLE32(ip+pos); pos+=4; break; in ZSTDv07_getFrameParams() [all …]
|
D | zstd_v04.c | 198 MEM_STATIC U32 MEM_readLE32(const void* memPtr) in MEM_readLE32() function 226 return (size_t)MEM_readLE32(memPtr); in MEM_readLEST() 1171 bitStream = MEM_readLE32(ip); in FSE_readNCount() 1192 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount() 1214 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount() 1256 bitStream = MEM_readLE32(ip) >> (bitCount & 31); in FSE_readNCount() 2551 magicNumber = MEM_readLE32(src); in ZSTD_decodeFrameHeader_Part1() 2562 magicNumber = MEM_readLE32(src); in ZSTD_getFrameParams() 2620 …const size_t litSize = (MEM_readLE32(src) & 0x1FFFFF) >> 2; /* no buffer issue : srcSize >= MIN_… in ZSTD_decompressLiterals() 2621 …const size_t litCSize = (MEM_readLE32(ip+2) & 0xFFFFFF) >> 5; /* no buffer issue : srcSize >= MI… in ZSTD_decompressLiterals() [all …]
|
D | zstd_v02.c | 226 MEM_STATIC U32 MEM_readLE32(const void* memPtr) in MEM_readLE32() function 254 return (size_t)MEM_readLE32(memPtr); in MEM_readLEST() 1193 bitStream = MEM_readLE32(ip); in FSE_readNCount() 1214 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount() 1236 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount() 1278 bitStream = MEM_readLE32(ip) >> (bitCount & 31); in FSE_readNCount() 2853 …const size_t litSize = (MEM_readLE32(src) & 0x1FFFFF) >> 2; /* no buffer issue : srcSize >= MIN_… in ZSTD_decompressLiterals() 2854 …const size_t litCSize = (MEM_readLE32(ip+2) & 0xFFFFFF) >> 5; /* no buffer issue : srcSize >= MI… in ZSTD_decompressLiterals() 2891 …const size_t litSize = (MEM_readLE32(istart) & 0xFFFFFF) >> 2; /* no buffer issue : srcSize >= M… in ZSTD_decodeLiteralsBlock() 2909 …const size_t litSize = (MEM_readLE32(istart) & 0xFFFFFF) >> 2; /* no buffer issue : srcSize >= M… in ZSTD_decodeLiteralsBlock() [all …]
|
D | zstd_v05.c | 222 MEM_STATIC U32 MEM_readLE32(const void* memPtr) in MEM_readLE32() function 248 return (size_t)MEM_readLE32(memPtr); in MEM_readLEST() 1297 bitStream = MEM_readLE32(ip); in FSEv05_readNCount() 1314 bitStream = MEM_readLE32(ip) >> bitCount; in FSEv05_readNCount() 1331 bitStream = MEM_readLE32(ip) >> bitCount; in FSEv05_readNCount() 1365 bitStream = MEM_readLE32(ip) >> (bitCount & 31); in FSEv05_readNCount() 2796 magicNumber = MEM_readLE32(src); in ZSTDv05_decodeFrameHeader_Part1() 2807 magicNumber = MEM_readLE32(src); in ZSTDv05_getFrameParams() 3542 if (MEM_readLE32(src) != ZSTDv05_MAGICNUMBER) { in ZSTDv05_findFrameSizeInfoLegacy() 3710 U32 magic = MEM_readLE32(dict); in ZSTDv05_decompress_insertDictionary()
|
D | zstd_v06.c | 245 MEM_STATIC U32 MEM_readLE32(const void* memPtr) in MEM_readLE32() function 266 return (size_t)MEM_readLE32(memPtr); in MEM_readLEST() 1278 bitStream = MEM_readLE32(ip); in FSEv06_readNCount() 1295 bitStream = MEM_readLE32(ip) >> bitCount; in FSEv06_readNCount() 1312 bitStream = MEM_readLE32(ip) >> bitCount; in FSEv06_readNCount() 1345 bitStream = MEM_readLE32(ip) >> (bitCount & 31); in FSEv06_readNCount() 2985 if (MEM_readLE32(src) != ZSTDv06_MAGICNUMBER) return ERROR(prefix_unknown); in ZSTDv06_getFrameParams() 3680 if (MEM_readLE32(src) != ZSTDv06_MAGICNUMBER) { in ZSTDv06_findFrameSizeInfoLegacy() 3854 U32 const magic = MEM_readLE32(dict); in ZSTDv06_decompress_insertDictionary()
|
D | zstd_legacy.h | 60 magicNumberLE = MEM_readLE32(src); in ZSTD_isLegacy()
|
/external/zstd/lib/dictBuilder/ |
D | zdict.c | 105 if (MEM_readLE32(dictBuffer) != ZSTD_MAGIC_DICTIONARY) return 0; in ZDICT_getDictID() 106 return MEM_readLE32((const char*)dictBuffer + 4); in ZDICT_getDictID() 112 …if (dictSize <= 8 || MEM_readLE32(dictBuffer) != ZSTD_MAGIC_DICTIONARY) return ERROR(dictionary_co… in ZDICT_getDictHeaderSize()
|
/external/zstd/tests/ |
D | fuzzer.c | 814 if (MEM_readLE32(compressedBuffer) != ZSTD_MAGICNUMBER) goto _output_error; in basicUnitTests() 819 if (MEM_readLE32(compressedBuffer) != ZSTD_MAGICNUMBER) goto _output_error; in basicUnitTests() 824 if (MEM_readLE32(compressedBuffer) != ZSTD_MAGICNUMBER) goto _output_error; in basicUnitTests() 829 if (MEM_readLE32(compressedBuffer) != ZSTD_MAGICNUMBER) goto _output_error; in basicUnitTests() 834 if (MEM_readLE32(compressedBuffer) != ZSTD_MAGICNUMBER) goto _output_error; in basicUnitTests() 2599 (MEM_readLE32(dictPtr) != 1 || MEM_readLE32(dictPtr + 4) != 4 || in basicUnitTests() 2600 MEM_readLE32(dictPtr + 8) != 8)) { in basicUnitTests()
|
D | fullbench.c | 173 U32 const lhc = MEM_readLE32(istart); in ZSTD_decodeLiteralsHeader()
|
/external/zstd/programs/ |
D | fileio.c | 2586 } else if (MEM_readLE32(buf) == LZ4_MAGICNUMBER) { in FIO_decompressFrames() 2976 { U32 const magicNumber = MEM_readLE32(headerBuffer); in FIO_analyzeFrames() 3028 U32 const frameSize = MEM_readLE32(headerBuffer + 4); in FIO_analyzeFrames()
|
/external/zstd/lib/compress/ |
D | zstd_compress.c | 4382 bs->rep[0] = MEM_readLE32(dictPtr+0); in ZSTD_loadCEntropy() 4383 bs->rep[1] = MEM_readLE32(dictPtr+4); in ZSTD_loadCEntropy() 4384 bs->rep[2] = MEM_readLE32(dictPtr+8); in ZSTD_loadCEntropy() 4429 assert(MEM_readLE32(dictPtr) == ZSTD_MAGIC_DICTIONARY); in ZSTD_loadZstdDictionary() 4431 dictID = params->fParams.noDictIDFlag ? 0 : MEM_readLE32(dictPtr + 4 /* skip magic number */ ); in ZSTD_loadZstdDictionary() 4469 if (MEM_readLE32(dict) != ZSTD_MAGIC_DICTIONARY) { in ZSTD_compress_insertDictionary()
|
D | zstd_compress_internal.h | 843 MEM_STATIC size_t ZSTD_hash3Ptr(const void* ptr, U32 h) { return ZSTD_hash3(MEM_readLE32(ptr), h); … in ZSTD_hash3Ptr()
|