/external/libchrome/base/metrics/ |
H A D | bucket_ranges_unittest.cc | 22 EXPECT_EQ(0u, ranges.checksum()); 67 EXPECT_EQ(289217253u, ranges.checksum()); 73 EXPECT_EQ(2843835776u, ranges.checksum()); 81 uint32_t checksum = i; local 84 if (checksum & 1) 85 checksum = kReversedPolynomial ^ (checksum >> 1); 87 checksum >>= 1; 89 EXPECT_EQ(kCrcTable[i], checksum);
|
H A D | bucket_ranges.h | 43 uint32_t checksum() const { return checksum_; } function in class:base::BucketRanges 44 void set_checksum(uint32_t checksum) { checksum_ = checksum; } argument
|
H A D | bucket_ranges.cc | 119 // Seed checksum. 120 uint32_t checksum = static_cast<uint32_t>(ranges_.size()); local 123 checksum = Crc32(checksum, ranges_[index]); 124 return checksum;
|
H A D | histogram_unittest.cc | 425 uint32_t checksum; local 426 EXPECT_TRUE(iter.ReadUInt32(&checksum)); 427 EXPECT_EQ(histogram->bucket_ranges()->checksum(), checksum);
|
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/data/ |
H A D | CRC64.java | 15 * CRC64 checksum calculator based on the polynom specified in ISO 3309. The 45 * Calculates the CRC64 checksum for the given data array. 48 * data to calculate checksum for 49 * @return checksum value 51 public static long checksum(final byte[] data) { method in class:CRC64
|
/external/libnfc-nci/src/adaptation/ |
H A D | CrcChecksum.cpp | 69 ** Description Compute a checksum on a buffer of data. 71 ** Returns 2-byte checksum. 92 ** Description Detect any corruption in a file by computing a checksum. 105 unsigned short checksum = 0; local 107 size_t actualReadCrc = read (fileStream, &checksum, sizeof(checksum)); 118 if ((actualReadCrc == sizeof(checksum)) && (data.size() > 0)) 121 if (checksum == crcChecksumCompute ((const unsigned char*) data.data(), data.size())) 124 ALOGE ("%s: checksum mismatch", __FUNCTION__);
|
H A D | libmain.c | 106 unsigned short checksum = 0; local 107 size_t actualReadCrc = read (fileStream, &checksum, sizeof(checksum)); 167 unsigned short checksum = crcChecksumCompute (pBuffer, nbytes); local 168 size_t actualWrittenCrc = write (fileStream, &checksum, sizeof(checksum)); 171 if ((actualWrittenData == nbytes) && (actualWrittenCrc == sizeof(checksum)))
|
/external/rmi4utils/rmi4update/ |
H A D | firmware_image.cpp | 30 unsigned long checksum = 0xFFFFFFFF; local 31 unsigned long lsw = checksum & 0xFFFF; 32 unsigned long msw = checksum >> 16; 41 checksum = msw << 16 | lsw; 43 return checksum; 82 fprintf(stderr, "Firmware image checksum verification failed, saw 0x%08lX, calculated 0x%08lX\n",
|
/external/sfntly/cpp/src/sfntly/table/ |
H A D | header.cc | 44 Header::Header(int32_t tag, int64_t checksum, int32_t offset, int32_t length) argument 50 checksum_(checksum),
|
H A D | header.h | 33 Header(int32_t tag, int64_t checksum, int32_t offset, int32_t length); 61 // Get the checksum for the table as recorded in the table record header. 62 int64_t checksum() { return checksum_; } function in class:sfntly::Header 64 // Is the checksum valid. The checksum will not be valid if the table was 66 // Note that this does *NOT* check the validity of the checksum against 67 // the calculated checksum for the table data.
|
/external/android-clat/ |
H A D | ipv4.c | 21 #include "checksum.h" 30 * checksum - pseudo-header checksum 35 uint32_t checksum, size_t len) { 47 return icmp_to_icmp6(out, pos, icmp, checksum, payload, payload_size); 103 * UDP include parts of the IP header in the checksum. Set the length to zero because we don't 109 /* Calculate the pseudo-header checksum. 110 * Technically, the length that is used in the pseudo-header checksum is the transport layer 112 * translation does not change the transport layer length, the checksum is unaffected. 34 icmp_packet(clat_packet out, clat_packet_index pos, const struct icmphdr *icmp, uint32_t checksum, size_t len) argument
|
H A D | checksum.c | 16 * checksum.c - ipv4/ipv6 checksum calculation 26 #include "checksum.h" 29 * adds data to a checksum 30 * current - the current checksum (or 0 to start a new checksum) 31 * data - the data to add to the checksum 35 uint32_t checksum = current; local 40 checksum += *data_16; 45 checksum 131 ip_checksum_adjust(uint16_t checksum, uint32_t old_hdr_sum, uint32_t new_hdr_sum) argument [all...] |
/external/guava/guava/src/com/google/common/hash/ |
H A D | ChecksumHashFunction.java | 59 * Hasher that updates a checksum. 63 private final Checksum checksum; field in class:ChecksumHashFunction.ChecksumHasher 65 private ChecksumHasher(Checksum checksum) { argument 66 this.checksum = checkNotNull(checksum); 71 checksum.update(b); 76 checksum.update(bytes, off, len); 81 long value = checksum.getValue();
|
/external/zopfli/src/zopfli/ |
H A D | zlib_container.c | 28 /* Calculates the adler32 checksum of the data */ 54 unsigned checksum = adler32(in, (unsigned)insize); local 68 ZOPFLI_APPEND_DATA((checksum >> 24) % 256, out, outsize); 69 ZOPFLI_APPEND_DATA((checksum >> 16) % 256, out, outsize); 70 ZOPFLI_APPEND_DATA((checksum >> 8) % 256, out, outsize); 71 ZOPFLI_APPEND_DATA(checksum % 256, out, outsize);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/ |
H A D | DESedeWrapEngine.java | 54 // checksum digest 309 * - Use the first 8 octets of this hash as the checksum value. 314 * @return the CMS checksum. 334 * @param checksum the checksum. 339 byte[] checksum) 341 return Arrays.constantTimeAreEqual(calculateCMSKeyChecksum(key), checksum); 337 checkCMSKeyChecksum( byte[] key, byte[] checksum) argument
|
/external/libnfc-nci/halimpl/bcm2079x/adaptation/ |
H A D | NonVolatileStore.cpp | 80 unsigned short checksum = 0; local 81 size_t actualReadCrc = read (fileStream, &checksum, sizeof(checksum)); 139 unsigned short checksum = crcChecksumCompute (p_buf, nbytes); local 140 size_t actualWrittenCrc = write (fileStream, &checksum, sizeof(checksum)); 143 if ((actualWrittenData == nbytes) && (actualWrittenCrc == sizeof(checksum)))
|
/external/skia/src/sfnt/ |
H A D | SkSFNTHeader.h | 58 SK_SFNT_ULONG checksum; member in struct:SkSFNTHeader::TableDirectoryEntry
|
/external/tcpdump/ |
H A D | checksum.c | 127 /* precompute checksum tables */ 136 * Creates the OSI Fletcher checksum. See 8473-1, Appendix C, section C.3. 137 * The checksum field of the passed PDU does not need to be reset to zero. 148 uint16_t checksum; local 156 * Ignore the contents of the checksum field. 187 checksum = ((x << 8) | y); 189 return checksum;
|
/external/valgrind/coregrind/m_syswrap/ |
H A D | syswrap-amd64-solaris.c | 228 /* Calculate a checksum. */ 231 ULong checksum; local 238 checksum = ML_(fletcher64)((UInt*)&buf, sizeof(buf) / sizeof(UInt)); 239 VKI_UC_GUEST_RFLAGS_CHECKSUM(uc) = checksum; 436 ULong checksum; local 443 checksum = ML_(fletcher64)((UInt*)&buf, 445 if (checksum == VKI_UC_GUEST_RFLAGS_CHECKSUM(uc)) {
|
/external/vboot_reference/firmware/lib/include/ |
H A D | vboot_audio_private.h | 21 uint32_t checksum; /* crc32 over count & all notes */ member in struct:VbDevMusic
|
/external/webrtc/webrtc/modules/utility/source/ |
H A D | file_player_unittests.cc | 61 rtc::Md5Digest checksum; local 67 checksum.Update(out, num_samples * sizeof(out[0])); 75 checksum.Finish(checksum_result, rtc::Md5Digest::kSize));
|
/external/curl/src/ |
H A D | tool_metalink.h | 80 metalink_checksum *checksum; member in struct:metalinkfile 135 * Check checksum of file denoted by filename. 137 * This function returns 1 if the checksum matches or one of the 145 * No checksum in Metalink supported, hash algorithm not available, or 146 * Metalink does not contain checksum.
|
/external/kernel-headers/original/uapi/linux/ |
H A D | cycx_cfm.h | 80 * @checksum - info + image 89 unsigned short checksum; member in struct:cycx_firmware
|
H A D | romfs_fs.h | 28 __be32 checksum; member in struct:romfs_super_block 38 __be32 checksum; member in struct:romfs_inode
|
/external/opencv3/3rdparty/include/ffmpeg_/libavformat/ |
H A D | avio.h | 99 unsigned long checksum; member in struct:AVIOContext 101 unsigned long (*update_checksum)(unsigned long checksum, const uint8_t *buf, unsigned int size);
|