Home
last modified time | relevance | path

Searched refs:CRC (Results 1 – 25 of 369) sorted by relevance

12345678910>>...15

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DCRC.cpp75 uint32_t llvm::crc32(uint32_t CRC, ArrayRef<uint8_t> Data) { in crc32() argument
76 CRC ^= 0xFFFFFFFFU; in crc32()
78 int TableIdx = (CRC ^ Byte) & 0xff; in crc32()
79 CRC = CRCTable[TableIdx] ^ (CRC >> 8); in crc32()
81 return CRC ^ 0xFFFFFFFFU; in crc32()
87 uint32_t llvm::crc32(uint32_t CRC, ArrayRef<uint8_t> Data) { in crc32() argument
93 CRC = ::crc32(CRC, (const Bytef *)Slice.data(), (uInt)Slice.size()); in crc32()
96 return CRC; in crc32()
104 CRC ^= 0xFFFFFFFFU; // Undo CRC-32 Init. in update()
105 CRC = crc32(CRC, Data); in update()
[all …]
DCrashRecoveryContext.cpp37 CrashRecoveryContext *CRC; member
44 CrashRecoveryContextImpl(CrashRecoveryContext *CRC) noexcept in CrashRecoveryContextImpl()
45 : CRC(CRC), Failed(false), SwitchedThread(false), ValidJumpBuffer(false) { in CrashRecoveryContextImpl()
74 if (CRC->DumpStackAndCleanupOnFailure) in HandleCrash()
77 CRC->RetCode = RetCode; in HandleCrash()
130 return CRCI->CRC; in GetCurrent()
457 CrashRecoveryContext *CRC; member
470 Info->Result = Info->CRC->RunSafely(Info->Fn); in RunSafelyOnThread_Dispatch()
480 if (CrashRecoveryContextImpl *CRC = (CrashRecoveryContextImpl *)Impl) in RunSafelyOnThread() local
481 CRC->setSwitchedThread(); in RunSafelyOnThread()
/external/llvm-project/llvm/lib/Support/
DCRC.cpp75 uint32_t llvm::crc32(uint32_t CRC, ArrayRef<uint8_t> Data) { in crc32() argument
76 CRC ^= 0xFFFFFFFFU; in crc32()
78 int TableIdx = (CRC ^ Byte) & 0xff; in crc32()
79 CRC = CRCTable[TableIdx] ^ (CRC >> 8); in crc32()
81 return CRC ^ 0xFFFFFFFFU; in crc32()
87 uint32_t llvm::crc32(uint32_t CRC, ArrayRef<uint8_t> Data) { in crc32() argument
93 CRC = ::crc32(CRC, (const Bytef *)Slice.data(), (uInt)Slice.size()); in crc32()
96 return CRC; in crc32()
104 CRC ^= 0xFFFFFFFFU; // Undo CRC-32 Init. in update()
105 CRC = crc32(CRC, Data); in update()
[all …]
DCrashRecoveryContext.cpp35 CrashRecoveryContext *CRC; member
42 CrashRecoveryContextImpl(CrashRecoveryContext *CRC) noexcept in CrashRecoveryContextImpl()
43 : CRC(CRC), Failed(false), SwitchedThread(false), ValidJumpBuffer(false) { in CrashRecoveryContextImpl()
72 if (CRC->DumpStackAndCleanupOnFailure) in HandleCrash()
75 CRC->RetCode = RetCode; in HandleCrash()
135 return CRCI->CRC; in GetCurrent()
484 CrashRecoveryContext *CRC; member
497 Info->Result = Info->CRC->RunSafely(Info->Fn); in RunSafelyOnThread_Dispatch()
507 if (CrashRecoveryContextImpl *CRC = (CrashRecoveryContextImpl *)Impl) in RunSafelyOnThread() local
508 CRC->setSwitchedThread(); in RunSafelyOnThread()
/external/llvm-project/llvm/unittests/Support/
DCrashRecoveryTest.cpp52 IncrementGlobalCleanup(CrashRecoveryContext *CRC) in IncrementGlobalCleanup()
53 : CrashRecoveryContextCleanup(CRC) {} in IncrementGlobalCleanup()
63 CrashRecoveryContext CRC; in TEST() local
64 CRC.registerCleanup(new IncrementGlobalCleanup(&CRC)); in TEST()
65 EXPECT_TRUE(CRC.RunSafely(noop)); in TEST()
71 CrashRecoveryContext CRC; in TEST() local
72 CRC.registerCleanup(new IncrementGlobalCleanup(&CRC)); in TEST()
73 EXPECT_FALSE(CRC.RunSafely(nullDeref)); in TEST()
88 CrashRecoveryContext CRC; in TEST() local
89 CRC.DumpStackAndCleanupOnFailure = true; in TEST()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsCondMov.td18 class CMov_I_I_FT<string opstr, RegisterOperand CRC, RegisterOperand DRC,
20 InstSE<(outs DRC:$rd), (ins DRC:$rs, CRC:$rt, DRC:$F),
26 class CMov_I_F_FT<string opstr, RegisterOperand CRC, RegisterOperand DRC,
28 InstSE<(outs DRC:$fd), (ins DRC:$fs, CRC:$rt, DRC:$F),
55 multiclass MovzPats0<RegisterClass CRC, RegisterClass DRC,
59 def : MipsPat<(select (i32 (setge CRC:$lhs, CRC:$rhs)), DRC:$T, DRC:$F),
60 (MOVZInst DRC:$T, (SLTOp CRC:$lhs, CRC:$rhs), DRC:$F)>;
61 def : MipsPat<(select (i32 (setuge CRC:$lhs, CRC:$rhs)), DRC:$T, DRC:$F),
62 (MOVZInst DRC:$T, (SLTuOp CRC:$lhs, CRC:$rhs), DRC:$F)>;
63 def : MipsPat<(select (i32 (setge CRC:$lhs, immSExt16:$rhs)), DRC:$T, DRC:$F),
[all …]
/external/llvm-project/llvm/lib/Target/Mips/
DMipsCondMov.td18 class CMov_I_I_FT<string opstr, RegisterOperand CRC, RegisterOperand DRC,
20 InstSE<(outs DRC:$rd), (ins DRC:$rs, CRC:$rt, DRC:$F),
26 class CMov_I_F_FT<string opstr, RegisterOperand CRC, RegisterOperand DRC,
28 InstSE<(outs DRC:$fd), (ins DRC:$fs, CRC:$rt, DRC:$F),
55 multiclass MovzPats0<RegisterClass CRC, RegisterClass DRC,
59 def : MipsPat<(select (i32 (setge CRC:$lhs, CRC:$rhs)), DRC:$T, DRC:$F),
60 (MOVZInst DRC:$T, (SLTOp CRC:$lhs, CRC:$rhs), DRC:$F)>;
61 def : MipsPat<(select (i32 (setuge CRC:$lhs, CRC:$rhs)), DRC:$T, DRC:$F),
62 (MOVZInst DRC:$T, (SLTuOp CRC:$lhs, CRC:$rhs), DRC:$F)>;
63 def : MipsPat<(select (i32 (setge CRC:$lhs, immSExt16:$rhs)), DRC:$T, DRC:$F),
[all …]
/external/llvm/lib/Target/Mips/
DMipsCondMov.td19 class CMov_I_I_FT<string opstr, RegisterOperand CRC, RegisterOperand DRC,
21 InstSE<(outs DRC:$rd), (ins DRC:$rs, CRC:$rt, DRC:$F),
27 class CMov_I_F_FT<string opstr, RegisterOperand CRC, RegisterOperand DRC,
29 InstSE<(outs DRC:$fd), (ins DRC:$fs, CRC:$rt, DRC:$F),
56 multiclass MovzPats0<RegisterClass CRC, RegisterClass DRC,
60 def : MipsPat<(select (i32 (setge CRC:$lhs, CRC:$rhs)), DRC:$T, DRC:$F),
61 (MOVZInst DRC:$T, (SLTOp CRC:$lhs, CRC:$rhs), DRC:$F)>;
62 def : MipsPat<(select (i32 (setuge CRC:$lhs, CRC:$rhs)), DRC:$T, DRC:$F),
63 (MOVZInst DRC:$T, (SLTuOp CRC:$lhs, CRC:$rhs), DRC:$F)>;
64 def : MipsPat<(select (i32 (setge CRC:$lhs, immSExt16:$rhs)), DRC:$T, DRC:$F),
[all …]
/external/llvm-project/clang/test/CodeGen/X86/
Dx86-crc-builtins.c6 unsigned int test__crc32b(unsigned int CRC, unsigned char V) { in test__crc32b() argument
9 return __crc32b(CRC, V); in test__crc32b()
12 unsigned int test__crc32w(unsigned int CRC, unsigned short V) { in test__crc32w() argument
15 return __crc32w(CRC, V); in test__crc32w()
18 unsigned int test__crc32d(unsigned int CRC, unsigned int V) { in test__crc32d() argument
21 return __crc32d(CRC, V); in test__crc32d()
25 unsigned long long test__crc32q(unsigned long long CRC, unsigned long long V) { in test__crc32q() argument
28 return __crc32q(CRC, V); in test__crc32q()
Dsse42-builtins.c99 unsigned int test_mm_crc32_u8(unsigned int CRC, unsigned char V) { in test_mm_crc32_u8() argument
102 return _mm_crc32_u8(CRC, V); in test_mm_crc32_u8()
105 unsigned int test_mm_crc32_u16(unsigned int CRC, unsigned short V) { in test_mm_crc32_u16() argument
108 return _mm_crc32_u16(CRC, V); in test_mm_crc32_u16()
111 unsigned int test_mm_crc32_u32(unsigned int CRC, unsigned int V) { in test_mm_crc32_u32() argument
114 return _mm_crc32_u32(CRC, V); in test_mm_crc32_u32()
118 unsigned long long test_mm_crc32_u64(unsigned long long CRC, unsigned long long V) { in test_mm_crc32_u64() argument
121 return _mm_crc32_u64(CRC, V); in test_mm_crc32_u64()
/external/scapy/scapy/contrib/
Dpnio_rtc.uts43 raw(Profisafe(config={'length': 7, 'CRC': 3})) == b'\0\0\0\0\0\0\0'
46 raw(Profisafe(load=b'AB', config={'length': 7, 'CRC': 3})) == b'AB\0\0\0\0\0'
49 raw(Profisafe(load=b'ABCDEF', config={'length': 7, 'CRC': 3})) == b'ABC\0\0\0\0'
52 p = Profisafe(b'ABC\x20\x12\x34\x56\x80\x01\x02', config={'length': 7, 'CRC': 3})
53 p == Profisafe(load=b'ABC', Control_Status=0x20, CRC=0x123456, config={'length': 7, 'CRC': 3}) / PN…
55 = Profisafe with a CRC-32
56 raw(Profisafe(load=b'ABC', Control_Status=0x33, CRC=0x12345678, config={'length': 8, 'CRC': 4})) ==…
59 p = Profisafe('AB', config={'length': 7, 'CRC': 3})
60 p == Profisafe(load=b'AB', Control_Status=0, CRC=0)
77 …Profisafe(load=b'\x05\x06', Control_Status=0x20, CRC=0x12345678, config={'length': 7, 'CRC': 4}) /…
[all …]
/external/clang/test/CodeGen/
Dsse42-builtins.c101 unsigned int test_mm_crc32_u8(unsigned int CRC, unsigned char V) { in test_mm_crc32_u8() argument
104 return _mm_crc32_u8(CRC, V); in test_mm_crc32_u8()
107 unsigned int test_mm_crc32_u16(unsigned int CRC, unsigned short V) { in test_mm_crc32_u16() argument
110 return _mm_crc32_u16(CRC, V); in test_mm_crc32_u16()
113 unsigned int test_mm_crc32_u32(unsigned int CRC, unsigned int V) { in test_mm_crc32_u32() argument
116 return _mm_crc32_u32(CRC, V); in test_mm_crc32_u32()
119 unsigned long long test_mm_crc32_u64(unsigned long long CRC, unsigned long long V) { in test_mm_crc32_u64() argument
122 return _mm_crc32_u64(CRC, V); in test_mm_crc32_u64()
/external/tensorflow/tensorflow/core/lib/hash/
Dcrc32c_test.cc24 TEST(CRC, StandardResults) { in TEST() argument
59 TEST(CRC, Values) { ASSERT_NE(Value("a", 1), Value("foo", 3)); } in TEST() argument
61 TEST(CRC, Extend) { in TEST() argument
65 TEST(CRC, Mask) { in TEST() argument
74 TEST(CRC, ValuesWithCord) { in TEST() argument
78 TEST(CRC, ExtendWithCord) { in TEST() argument
/external/llvm/lib/Support/
DCrashRecoveryContext.cpp33 CrashRecoveryContext *CRC; member
39 CrashRecoveryContextImpl(CrashRecoveryContext *CRC) : CRC(CRC), in CrashRecoveryContextImpl()
113 return CRCI->CRC; in GetCurrent()
355 CrashRecoveryContext *CRC; member
368 Info->Result = Info->CRC->RunSafely(Info->Fn); in RunSafelyOnThread_Dispatch()
375 if (CrashRecoveryContextImpl *CRC = (CrashRecoveryContextImpl *)Impl) in RunSafelyOnThread() local
376 CRC->setSwitchedThread(); in RunSafelyOnThread()
DJamCRC.cpp94 int TableIdx = (CRC ^ Byte) & 0xff; in update()
95 CRC = CRCTable[TableIdx] ^ (CRC >> 8); in update()
/external/llvm-project/llvm/include/llvm/Support/
DCRC.h26 uint32_t crc32(uint32_t CRC, ArrayRef<uint8_t> Data);
47 JamCRC(uint32_t Init = 0xFFFFFFFFU) : CRC(Init) {} in CRC() function
52 uint32_t getCRC() const { return CRC; } in getCRC()
55 uint32_t CRC;
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DCRC.h26 uint32_t crc32(uint32_t CRC, ArrayRef<uint8_t> Data);
47 JamCRC(uint32_t Init = 0xFFFFFFFFU) : CRC(Init) {} in CRC() function
52 uint32_t getCRC() const { return CRC; } in getCRC()
55 uint32_t CRC;
/external/lzma/CS/7zip/Common/
DCRC.cs5 class CRC class
9 static CRC() in CRC() method in SevenZip.CRC
44 CRC crc = new CRC(); in CalculateDigest()
/external/lzma/Java/SevenZip/
DLzmaBench.java116 public CRC CRC = new CRC(); field in LzmaBench.CrcOutStream
120 CRC.Init(); in Init()
124 return CRC.GetDigest(); in GetDigest()
128 CRC.Update(b); in write()
132 CRC.Update(b, off, len); in write()
136 CRC.UpdateByte(b); in write()
321 CRC crc = new CRC(); in LzmaBenchmark()
/external/llvm/include/llvm/Support/
DJamCRC.h37 JamCRC(uint32_t Init = 0xFFFFFFFFU) : CRC(Init) {} in CRC() function
42 uint32_t getCRC() const { return CRC; } in getCRC()
45 uint32_t CRC;
/external/lzma/CS/7zip/Compress/LzmaAlone/
DLzmaBench.cs122 public CRC CRC = new CRC(); field in SevenZip.LzmaBench.CrcOutStream
123 public void Init() { CRC.Init(); } in Init()
124 public UInt32 GetDigest() { return CRC.GetDigest(); } in GetDigest()
138 CRC.UpdateByte(b); in WriteByte()
142 CRC.Update(buffer, (uint)offset, (uint)count); in Write()
277 CRC crc = new CRC(); in LzmaBenchmark()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/bzip2/
DCRC.java26 class CRC { class
94 CRC() { in CRC() method in CRC
119 globalCrc = (globalCrc << 8) ^ CRC.crc32Table[temp]; in updateCRC()
/external/llvm-project/llvm/unittests/Analysis/
DLazyCallGraphTest.cpp622 LazyCallGraph::RefSCC &CRC = *CG.lookupRefSCC(C); in TEST() local
626 EXPECT_TRUE(ARC.isParentOf(CRC)); in TEST()
638 EXPECT_TRUE(DRC.isChildOf(CRC)); in TEST()
665 EXPECT_EQ(&CRC, CG.lookupRefSCC(C)); in TEST()
686 EXPECT_EQ(&CRC, CG.lookupRefSCC(C)); in TEST()
707 EXPECT_EQ(&CRC, CG.lookupRefSCC(C)); in TEST()
728 EXPECT_EQ(&CRC, CG.lookupRefSCC(C)); in TEST()
772 LazyCallGraph::RefSCC &CRC = *CG.lookupRefSCC(C1); in TEST() local
778 ASSERT_EQ(&CRC, CG.lookupRefSCC(C2)); in TEST()
779 ASSERT_EQ(&CRC, CG.lookupRefSCC(C3)); in TEST()
[all …]
/external/icu/icu4c/source/data/curr/
Dur_IN.txt6 CRC{
7 "CRC",
40 CRC{
/external/llvm/unittests/Analysis/
DLazyCallGraphTest.cpp493 LazyCallGraph::RefSCC &CRC = *CG.lookupRefSCC(C); in TEST() local
496 EXPECT_TRUE(ARC.isParentOf(CRC)); in TEST()
502 EXPECT_TRUE(DRC.isChildOf(CRC)); in TEST()
524 EXPECT_EQ(&CRC, CG.lookupRefSCC(C)); in TEST()
541 EXPECT_EQ(&CRC, CG.lookupRefSCC(C)); in TEST()
558 EXPECT_EQ(&CRC, CG.lookupRefSCC(C)); in TEST()
575 EXPECT_EQ(&CRC, CG.lookupRefSCC(C)); in TEST()
618 LazyCallGraph::RefSCC &CRC = *CG.lookupRefSCC(C1); in TEST() local
624 ASSERT_EQ(&CRC, CG.lookupRefSCC(C2)); in TEST()
625 ASSERT_EQ(&CRC, CG.lookupRefSCC(C3)); in TEST()
[all …]

12345678910>>...15