Home
last modified time | relevance | path

Searched refs:Crc (Results 1 – 25 of 27) sorted by relevance

12

/external/rust/crates/flate2/src/
Dcrc.rs12 pub struct Crc { struct
23 crc: Crc, argument
26 impl Crc { implementation
28 pub fn new() -> Crc { in new()
29 Crc { in new()
59 pub fn combine(&mut self, additional_crc: &Crc) { in combine() argument
70 crc: Crc::new(), in new()
77 pub fn crc(&self) -> &Crc { in crc() argument
128 crc: Crc,
133 pub fn crc(&self) -> &Crc { in crc() argument
[all …]
Dlib.rs110 pub use crate::crc::{Crc, CrcReader, CrcWriter};
/external/llvm-project/compiler-rt/lib/scudo/
Dscudo_crc32.h88 inline u32 computeSoftwareCRC32(u32 Crc, uptr Data) { in computeSoftwareCRC32() argument
90 Crc = CRC32Table[(Crc ^ Data) & 0xff] ^ (Crc >> 8); in computeSoftwareCRC32()
93 return Crc; in computeSoftwareCRC32()
96 SANITIZER_WEAK_ATTRIBUTE u32 computeHardwareCRC32(u32 Crc, uptr Data);
Dscudo_allocator.cpp47 inline u32 computeCRC32(u32 Crc, uptr Value, uptr *Array, uptr ArraySize) { in computeCRC32() argument
53 Crc = CRC32_INTRINSIC(Crc, Value); in computeCRC32()
55 Crc = CRC32_INTRINSIC(Crc, Array[i]); in computeCRC32()
56 return Crc; in computeCRC32()
59 Crc = computeHardwareCRC32(Crc, Value); in computeCRC32()
61 Crc = computeHardwareCRC32(Crc, Array[i]); in computeCRC32()
62 return Crc; in computeCRC32()
64 Crc = computeSoftwareCRC32(Crc, Value); in computeCRC32()
66 Crc = computeSoftwareCRC32(Crc, Array[i]); in computeCRC32()
67 return Crc; in computeCRC32()
[all …]
Dscudo_crc32.cpp19 u32 computeHardwareCRC32(u32 Crc, uptr Data) { in computeHardwareCRC32() argument
20 return CRC32_INTRINSIC(Crc, Data); in computeHardwareCRC32()
/external/llvm-project/compiler-rt/lib/scudo/standalone/
Dchunk.h29 u32 Crc = static_cast<u32>(CRC32_INTRINSIC(Seed, Value)); in computeChecksum() local
31 Crc = static_cast<u32>(CRC32_INTRINSIC(Crc, Array[I])); in computeChecksum()
32 return static_cast<u16>(Crc ^ (Crc >> 16)); in computeChecksum()
35 u32 Crc = computeHardwareCRC32(Seed, Value); in computeChecksum()
37 Crc = computeHardwareCRC32(Crc, Array[I]); in computeChecksum()
38 return static_cast<u16>(Crc ^ (Crc >> 16)); in computeChecksum()
Dcrc32_hw.cpp14 u32 computeHardwareCRC32(u32 Crc, uptr Data) { in computeHardwareCRC32() argument
15 return static_cast<u32>(CRC32_INTRINSIC(Crc, Data)); in computeHardwareCRC32()
Dchecksum.h50 WEAK u32 computeHardwareCRC32(u32 Crc, uptr Data);
/external/scudo/standalone/
Dchunk.h29 u32 Crc = static_cast<u32>(CRC32_INTRINSIC(Seed, Value)); in computeChecksum() local
31 Crc = static_cast<u32>(CRC32_INTRINSIC(Crc, Array[I])); in computeChecksum()
32 return static_cast<u16>(Crc ^ (Crc >> 16)); in computeChecksum()
35 u32 Crc = computeHardwareCRC32(Seed, Value); in computeChecksum()
37 Crc = computeHardwareCRC32(Crc, Array[I]); in computeChecksum()
38 return static_cast<u16>(Crc ^ (Crc >> 16)); in computeChecksum()
Dcrc32_hw.cpp14 u32 computeHardwareCRC32(u32 Crc, uptr Data) { in computeHardwareCRC32() argument
15 return static_cast<u32>(CRC32_INTRINSIC(Crc, Data)); in computeHardwareCRC32()
Dchecksum.h50 WEAK u32 computeHardwareCRC32(u32 Crc, uptr Data);
/external/scudo/standalone/tests/
Dchecksum_test.cpp25 scudo::u32 Crc = Seed; in computeHardwareChecksum() local
27 Crc = scudo::computeHardwareCRC32(Crc, Array[I]); in computeHardwareChecksum()
28 return static_cast<scudo::u16>((Crc & 0xffff) ^ (Crc >> 16)); in computeHardwareChecksum()
/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/
Dchecksum_test.cpp25 scudo::u32 Crc = Seed; in computeHardwareChecksum() local
27 Crc = scudo::computeHardwareCRC32(Crc, Array[I]); in computeHardwareChecksum()
28 return static_cast<scudo::u16>((Crc & 0xffff) ^ (Crc >> 16)); in computeHardwareChecksum()
/external/llvm-project/llvm/lib/DebugInfo/PDB/DIA/
DDIAInjectedSource.cpp22 DWORD Crc; in getCrc32() local
23 return (S_OK == SourceFile->get_crc(&Crc)) ? Crc : 0; in getCrc32()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/DIA/
DDIAInjectedSource.cpp22 DWORD Crc; in getCrc32() local
23 return (S_OK == SourceFile->get_crc(&Crc)) ? Crc : 0; in getCrc32()
/external/compiler-rt/lib/scudo/
Dscudo_allocator.cpp102 u64 Crc = _mm_crc32_u64(Cookie, reinterpret_cast<uptr>(this)); in Checksum() local
107 Crc = _mm_crc32_u64(Crc, HeaderHolder[0] & 0xffffffffffff0000ULL); in Checksum()
108 Crc = _mm_crc32_u64(Crc, HeaderHolder[1]); in Checksum()
109 return static_cast<u16>(Crc); in Checksum()
/external/rust/crates/flate2/src/gz/
Dwrite.rs12 use crate::crc::{Crc, CrcWriter};
41 crc: Crc,
49 crc: Crc::new(), in gz_encoder()
/external/lzma/CPP/7zip/Archive/7z/
D7zItem.h172 UInt32 Crc; member
D7zExtract.cpp130 return CloseFile_and_SetResult((!_calcCrc || fi.Crc == CRC_GET_DIGEST(_crc)) ? in CloseFile()
D7zHandler.cpp585 case kpidCRC: if (item.CrcDefined) PropVarEm_Set_UInt32(value, item.Crc); break; in GetProperty()
D7zIn.cpp1387 file.Crc = 0; in ReadHeader()
1396 file.Crc = digests.Vals[sizeIndex]; in ReadHeader()
D7zOut.cpp565 digests.Vals.Add(file.Crc); in WriteHeader()
D7zUpdate.cpp1242 if (!_calcCrc || fi.Crc == CRC_GET_DIGEST(_crc)) in CloseFile()
2423 file.Crc = inStreamSpec->CRCs[subIndex]; in Update()
/external/lzma/CPP/7zip/UI/Common/
DBench.cpp308 UInt32 Crc; member in CBenchmarkOutStream
313 Crc = CRC_INIT_VAL; in Init()
336 Crc = CrcUpdate(Crc, data, curSize); in Write()
355 UInt32 Crc; member in CCrcOutStream
359 void Init() { Crc = CRC_INIT_VAL; } in Init()
366 Crc = CrcUpdate(Crc, data, size); in Write()
1013 UInt32 crcNew = CRC_GET_DIGEST(outStreamSpec->Crc); in Encode()
1129 if (crcOutStreamSpec->CalcCrc && CRC_GET_DIGEST(crcOutStreamSpec->Crc) != crc) in Decode()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp924 SDValue Crc(Data.getNode(), 1); in LowerINTRINSIC_WO_CHAIN() local
925 SDValue Results[] = { Crc, Data }; in LowerINTRINSIC_WO_CHAIN()

12