Searched refs:CRC (Results 1 - 22 of 22) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DCRC.h1 //===-- llvm/Support/CRC.h - Cyclic Redundancy Check-------------*- C++ -*-===//
9 // This file contains implementations of CRC functions.
21 // Compute the CRC-32 of Data.
24 // Compute the running CRC-32 of Data, with CRC being the previous value of the
26 uint32_t crc32(uint32_t CRC, ArrayRef<uint8_t> Data);
30 // We will use the "Rocksoft^tm Model CRC Algorithm" to describe the properties
31 // of this CRC:
38 // Check : 340BC6D9 (result of CRC for "123456789")
40 // In other words, this is the same as CRC
55 uint32_t CRC; member in class:llvm::JamCRC
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/
H A DCRC.cpp1 //===--- CRC.cpp - Cyclic Redundancy Check implementation -----------------===//
9 // This file contains implementations of CRC functions.
15 // See also Ross N. Williams "A Painless Guide to CRC Error Detection
21 #include "llvm/Support/CRC.h"
75 uint32_t llvm::crc32(uint32_t CRC, ArrayRef<uint8_t> Data) { argument
76 CRC ^= 0xFFFFFFFFU;
78 int TableIdx = (CRC ^ Byte) & 0xff;
79 CRC = CRCTable[TableIdx] ^ (CRC >> 8);
81 return CRC
[all...]
H A DCrashRecoveryContext.cpp37 CrashRecoveryContext *CRC; member in struct:__anon3783::CrashRecoveryContextImpl
44 CrashRecoveryContextImpl(CrashRecoveryContext *CRC) noexcept
45 : CRC(CRC), Failed(false), SwitchedThread(false), ValidJumpBuffer(false) {
74 if (CRC->DumpStackAndCleanupOnFailure)
77 CRC->RetCode = RetCode;
130 return CRCI->CRC;
457 CrashRecoveryContext *CRC; member in struct:__anon3784::RunSafelyOnThreadInfo
470 Info->Result = Info->CRC->RunSafely(Info->Fn);
480 if (CrashRecoveryContextImpl *CRC
[all...]
H A DProcess.cpp94 if (CrashRecoveryContext *CRC = CrashRecoveryContext::GetCurrent())
95 CRC->HandleExit(RetCode);
/freebsd-13-stable/contrib/llvm-project/clang/lib/Basic/
H A DStack.cpp69 llvm::CrashRecoveryContext CRC; local
70 CRC.RunSafelyOnThread([&] {
/freebsd-13-stable/sys/geom/raid/
H A Dmd_ddf.h41 uint32_t CRC; member in struct:ddf_header
92 uint32_t CRC; member in struct:ddf_cd_record
166 uint32_t CRC; member in struct:ddf_pd_record
211 uint32_t CRC; member in struct:ddf_vd_record
223 uint32_t CRC; member in struct:ddf_vdc_record
280 uint32_t CRC; member in struct:ddf_vuc_record
293 uint32_t CRC; member in struct:ddf_sa_record
310 uint32_t CRC; member in struct:ddf_pdd_record
331 uint32_t CRC; member in struct:ddf_bbm_log
342 uint32_t CRC; member in struct:ddf_vendor_log
[all...]
H A Dmd_ddf.c1078 val = GET32(meta, hdr->CRC);
1079 SET32(meta, hdr->CRC, 0xffffffff);
1082 G_RAID_DEBUG(1, "DDF CRC mismatch on %s", pp->name);
1119 val = GET32(meta, hdr->CRC);
1120 SET32(meta, hdr->CRC, 0xffffffff);
1290 SET32(meta, hdr->CRC, 0xffffffff);
1291 SET32(meta, hdr->CRC, crc32(meta->hdr, ss));
1306 SET32(meta, cdr->CRC, 0xffffffff);
1307 SET32(meta, cdr->CRC, crc32(meta->cdr, size));
1314 SET32(meta, pdr->CRC,
[all...]
/freebsd-13-stable/usr.bin/cksum/
H A Dcrc32.c25 #define CRC(crc, ch) (crc = (crc >> 8) ^ crctab[(crc ^ (ch)) & 0xff]) macro
112 CRC(lcrc, *p) ;
113 CRC(crc32_total, *p) ;
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DModelInjector.cpp98 llvm::CrashRecoveryContext CRC; local
100 CRC.RunSafelyOnThread([&]() { Instance.ExecuteAction(parseModelFile); },
/freebsd-13-stable/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DPDBFileBuilder.cpp23 #include "llvm/Support/CRC.h"
175 JamCRC CRC(0);
176 CRC.update(arrayRefFromStringRef(IS.Content->getBuffer()));
188 Entry.CRC = CRC.getCRC();
H A DNativeEnumInjectedSources.cpp45 uint32_t getCrc32() const override { return Entry.CRC; }
/freebsd-13-stable/contrib/llvm-project/clang/lib/Driver/
H A DJob.cpp392 llvm::CrashRecoveryContext CRC; local
393 CRC.DumpStackAndCleanupOnFailure = true;
400 if (!CRC.RunSafely([&]() { R = D.CC1Main(Argv); })) {
402 return CRC.RetCode;
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DRawTypes.h334 support::ulittle32_t CRC; // CRC of the original file contents. member in struct:llvm::SrcHeaderBlockEntry
/freebsd-13-stable/contrib/llvm-project/clang/lib/Basic/Targets/
H A DARM.h73 unsigned CRC : 1;
H A DARM.cpp425 CRC = 0;
474 CRC = 1;
643 if (CRC)
/freebsd-13-stable/sys/dev/ocs_fc/
H A Docs_utils.c1242 * @brief Calculate the T10 PI CRC guard value for a block.
1246 * @param crc Previously-calculated CRC, or 0 for a new block.
1248 * @return Returns the calculated CRC, which may be passed back in for partial blocks.
2194 /* CRC LOOKUP TABLE */
2196 /* The following CRC lookup table was generated automagically */
2197 /* by the Rocksoft^tm Model CRC Algorithm Table Generation */
2204 /* For more information on the Rocksoft^tm Model CRC Algorithm, */
2205 /* see the document titled "A Painless Guide to CRC Error */
2258 /* End of CRC Lookup Table */
2262 * @brief Calculate the T10 PI CRC guar
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Demangle/
H A DMicrosoftDemangle.cpp1277 StringView CRC; local
1313 // CRC 32 (always 8 characters plus a terminator)
1317 CRC = MangledName.substr(0, CrcEndPos);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/MC/
H A DWinCOFFObjectWriter.cpp35 #include "llvm/Support/CRC.h"
602 // because it needs to compute a CRC.
607 // to CRC the data before we dump it into the object file.
615 // Calculate our CRC with an initial value of '0', this is not how
634 uint32_t CRC = writeSectionContents(Asm, Layout, MCSec); local
636 // Update the section definition auxiliary symbol to record the CRC.
641 SecDef.Aux.SectionDefinition.CheckSum = CRC;
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/
H A DCompilerInstance.cpp1164 llvm::CrashRecoveryContext CRC; local
1165 CRC.RunSafelyOnThread(
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/ELF/
H A DObject.cpp1056 Elf_Word *CRC = local
1058 *CRC = Sec.CRC32;
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A Dllvm-pdbutil.cpp952 uint32_t CRC = IS->getCrc32(); local
968 WithColor(Printer, PDB_ColorItem::LiteralValue).get() << CRC;
/freebsd-13-stable/lib/clang/libllvm/
H A DMakefile880 SRCS_MIN+= Support/CRC.cpp

Completed in 354 milliseconds