/external/pigweed/pw_checksum/ |
D | crc32_test.cc | 41 TEST(Crc32, Empty) { in TEST() argument 42 EXPECT_EQ(Crc32::Calculate(std::span<std::byte>()), PW_CHECKSUM_EMPTY_CRC32); in TEST() 45 TEST(Crc32, Buffer) { in TEST() argument 46 EXPECT_EQ(Crc32::Calculate(std::as_bytes(std::span(kBytes))), kBufferCrc); in TEST() 49 TEST(Crc32, String) { in TEST() argument 50 EXPECT_EQ(Crc32::Calculate(std::as_bytes(std::span(kString))), kStringCrc); in TEST() 54 Crc32 crc; in TEST() 62 Crc32 crc32; in TEST() 68 Crc32 crc32; in TEST() 75 Crc32 crc32; in TEST()
|
D | docs.rst | 38 .. cpp:function:: uint32_t Crc32(span<const std::byte> data) 45 uint32_t crc = Crc32(my_data); 47 .. cpp:function:: uint32_t Crc32(span<const std::byte> data, uint32_t previous_result) 54 uint32_t crc = Crc32(my_data); 55 crc = Crc32(more_data, crc);
|
/external/icing/icing/util/ |
D | crc32_test.cc | 49 Crc32 crc32_test{10}; in TEST() 50 Crc32 crc32_test_empty{}; in TEST() 63 Crc32 crc32_test(~foo_crc); in TEST() 68 Crc32 crc32_foobar{}; in TEST() 70 Crc32 crc32_foo_and_bar{}; in TEST() 83 Crc32 crc32_test{}; in TEST()
|
D | crc32.h | 31 class Crc32 { 34 Crc32() : crc_(0) {} in Crc32() function 36 explicit Crc32(uint32_t init_crc) : crc_(init_crc) {} in Crc32() function 38 inline bool operator==(const Crc32& other) const {
|
D | crc32.cc | 39 uint32_t Crc32::Get() const { return crc_; } in Get() 41 uint32_t Crc32::Append(const std::string_view str) { in Append() 46 libtextclassifier3::StatusOr<uint32_t> Crc32::UpdateWithXor( in UpdateWithXor()
|
/external/icing/icing/file/ |
D | file-backed-vector_test.cc | 107 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(0))); in TEST_F() 115 const Crc32 good_crc(good_crc_value); in TEST_F() 163 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(0))); in TEST_F() 175 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(0))); in TEST_F() 203 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(2620640643U))); in TEST_F() 212 ICING_ASSERT_OK_AND_ASSIGN(Crc32 incremental_crc, in TEST_F() 216 Crc32 full_crc; in TEST_F() 242 EXPECT_THAT(vector->ComputeChecksum(), IsOkAndHolds(Crc32(2620640643U))); in TEST_F() 251 ICING_ASSERT_OK_AND_ASSIGN(Crc32 incremental_crc, in TEST_F() 255 Crc32 full_crc; in TEST_F() [all …]
|
D | file-backed-proto-log.h | 144 Crc32 crc; in CalculateHeaderChecksum() 348 libtextclassifier3::StatusOr<Crc32> ComputeChecksum(); 384 static libtextclassifier3::StatusOr<Crc32> ComputeChecksum( 386 Crc32 initial_crc, int64_t start, int64_t end); 569 ICING_ASSIGN_OR_RETURN(Crc32 calculated_log_checksum, in InitializeExistingFile() 570 ComputeChecksum(filesystem, file_path, Crc32(), in InitializeExistingFile() 586 ComputeChecksum(filesystem, file_path, Crc32(), sizeof(Header), in InitializeExistingFile() 619 libtextclassifier3::StatusOr<Crc32> FileBackedProtoLog<ProtoT>::ComputeChecksum( in ComputeChecksum() 621 Crc32 initial_crc, int64_t start, int64_t end) { in ComputeChecksum() 624 Crc32 new_crc(initial_crc.Get()); in ComputeChecksum() [all …]
|
D | portable-file-backed-proto-log.h | 130 Crc32 crc; in CalculateHeaderChecksum() 467 libtextclassifier3::StatusOr<Crc32> ComputeChecksum(); 504 static libtextclassifier3::StatusOr<Crc32> ComputeChecksum( 506 Crc32 initial_crc, int64_t start, int64_t end); 748 Crc32 calculated_log_checksum, in InitializeExistingFile() 749 ComputeChecksum(filesystem, file_path, Crc32(), in InitializeExistingFile() 790 libtextclassifier3::StatusOr<Crc32> 793 Crc32 initial_crc, int64_t start, int64_t end) { in ComputeChecksum() 796 Crc32 new_crc(initial_crc.Get()); in ComputeChecksum() 1024 Crc32 crc(header_->GetLogChecksum()); in EraseProto() [all …]
|
D | file-backed-vector.h | 137 Crc32 crc; in CalculateHeaderChecksum() 262 libtextclassifier3::StatusOr<Crc32> ComputeChecksum(); 454 Crc32 vector_checksum; in InitializeExistingFile() 654 libtextclassifier3::StatusOr<Crc32> FileBackedVector<T>::ComputeChecksum() { in ComputeChecksum() 659 Crc32 cur_crc(header_->vector_checksum); in ComputeChecksum() 757 ICING_ASSIGN_OR_RETURN(Crc32 checksum, ComputeChecksum()); in PersistToDisk()
|
D | file-backed-proto.h | 170 Crc32 crc; in Read() 223 Crc32 crc; in Write()
|
/external/libtextclassifier/native/lang_id/common/math/ |
D | checksum.cc | 28 uint32 Crc32::GetInitialCrc32() { in GetInitialCrc32() 33 void Crc32::Update(const char *str, int len) { in Update()
|
D | checksum.h | 30 class Crc32 { 32 Crc32() : current_(GetInitialCrc32()) {} in Crc32() function
|
/external/icing/icing/schema/ |
D | schema-store.cc | 192 ICING_ASSIGN_OR_RETURN(Crc32 checksum, ComputeChecksum()); in InitializeDerivedFiles() 232 ICING_ASSIGN_OR_RETURN(Crc32 checksum, ComputeChecksum()); in RegenerateDerivedFiles() 250 libtextclassifier3::Status SchemaStore::UpdateHeader(const Crc32& checksum) { in UpdateHeader() 289 libtextclassifier3::StatusOr<Crc32> SchemaStore::ComputeChecksum() const { in ComputeChecksum() 290 Crc32 total_checksum; in ComputeChecksum() 296 Crc32 schema_checksum; in ComputeChecksum() 299 Crc32 schema_type_mapper_checksum = schema_type_mapper_->ComputeChecksum(); in ComputeChecksum() 452 ICING_ASSIGN_OR_RETURN(Crc32 checksum, ComputeChecksum()); in PersistToDisk()
|
D | schema-store.h | 235 libtextclassifier3::StatusOr<Crc32> ComputeChecksum() const; 280 libtextclassifier3::Status UpdateHeader(const Crc32& checksum);
|
/external/libchrome/base/metrics/ |
D | bucket_ranges.cc | 77 static uint32_t Crc32(uint32_t sum, HistogramBase::Sample value) { in Crc32() function 100 checksum = Crc32(checksum, ranges_[index]); in CalculateChecksum()
|
/external/pigweed/pw_checksum/public/pw_checksum/ |
D | crc32.h | 68 class Crc32 { 76 constexpr Crc32() : state_(kInitialValue) {} in Crc32() function
|
/external/icing/icing/store/ |
D | document-store.cc | 390 ICING_ASSIGN_OR_RETURN(Crc32 checksum, ComputeChecksum()); in InitializeExistingDerivedFiles() 524 ICING_ASSIGN_OR_RETURN(Crc32 checksum, ComputeChecksum()); in RegenerateDerivedFiles() 657 libtextclassifier3::StatusOr<Crc32> DocumentStore::ComputeChecksum() const { in ComputeChecksum() 658 Crc32 total_checksum; in ComputeChecksum() 668 Crc32 document_log_checksum = std::move(checksum_or).ValueOrDie(); in ComputeChecksum() 670 Crc32 document_key_mapper_checksum = document_key_mapper_->ComputeChecksum(); in ComputeChecksum() 680 Crc32 document_id_mapper_checksum = std::move(checksum_or).ValueOrDie(); in ComputeChecksum() 690 Crc32 score_cache_checksum = std::move(checksum_or).ValueOrDie(); in ComputeChecksum() 700 Crc32 filter_cache_checksum = std::move(checksum_or).ValueOrDie(); in ComputeChecksum() 702 Crc32 namespace_mapper_checksum = namespace_mapper_->ComputeChecksum(); in ComputeChecksum() [all …]
|
D | key-mapper.h | 126 Crc32 ComputeChecksum(); 310 Crc32 KeyMapper<T>::ComputeChecksum() { in ComputeChecksum() 311 return Crc32(trie_.UpdateCrc()); in ComputeChecksum()
|
/external/vboot_reference/firmware/lib/cgptlib/include/ |
D | crc32.h | 10 uint32_t Crc32(const void *buffer, uint32_t len);
|
/external/libtextclassifier/native/lang_id/common/flatbuffers/ |
D | model-utils.cc | 147 void UpdateCrc(mobile::Crc32 *crc, const flatbuffers::Vector<T> *s, in UpdateCrc() 171 mobile::Crc32 crc; in ComputeCrc2Checksum()
|
/external/vboot_reference/firmware/lib/cgptlib/ |
D | crc32.c | 102 uint32_t Crc32(const void *buffer, uint32_t len) in Crc32() function
|
D | cgptlib_internal.c | 60 crc32 = Crc32((const uint8_t *)h, h->size); in HeaderCrc() 168 crc32 = Crc32((const uint8_t *)entries, in CheckEntries() 417 header->entries_crc32 = Crc32(gpt->primary_entries, in GptModified()
|
/external/vboot_reference/tests/ |
D | crc32_test.c | 44 crc32 = Crc32(cases[i].vector, cases[i].len); in TestCrc32TestVectors()
|
/external/pigweed/pw_hdlc/public/pw_hdlc/internal/ |
D | encoder.h | 57 checksum::Crc32 fcs_;
|
/external/icing/icing/index/lite/ |
D | lite-index.cc | 192 Crc32 crc = ComputeChecksum(); in Initialize() 219 Crc32 LiteIndex::ComputeChecksum() { in ComputeChecksum() 231 Crc32 all_crc(header_->CalculateHeaderCrc()); in ComputeChecksum()
|