/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;
|
/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/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),
|
/external/syslinux/com32/gplinclude/acpi/ |
H A D | rsdp.h | 28 uint8_t checksum; member in struct:__anon19226
|
H A D | structs.h | 39 uint8_t checksum; member in struct:__anon19235
|
/external/syslinux/gpxe/src/arch/i386/firmware/pcbios/ |
H A D | pnpbios.c | 47 uint8_t checksum; member in struct:pnp_bios 74 /* Read whole header and verify checksum */
|
/external/syslinux/gpxe/src/include/gpxe/ |
H A D | acpi.h | 28 uint8_t checksum; member in struct:acpi_description_header
|
/external/syslinux/memdisk/ |
H A D | acpi.h | 43 uint8_t checksum; member in struct:acpi_description_header
|
/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 | 57 // checksum digest 312 * - Use the first 8 octets of this hash as the checksum value. 317 * @return the CMS checksum. 337 * @param checksum the checksum. 342 byte[] checksum) 344 return Arrays.constantTimeAreEqual(calculateCMSKeyChecksum(key), checksum); 340 checkCMSKeyChecksum( byte[] key, byte[] checksum) argument
|
/external/pdfium/xfa/fxbarcode/ |
H A D | cbc_ean13.cpp | 40 int32_t checksum = static_cast<CBC_OnedEAN13Writer*>(m_pBCWriter.get()) local 42 byteString += checksum - 0 + '0';
|
H A D | cbc_ean8.cpp | 40 int32_t checksum = static_cast<CBC_OnedEAN8Writer*>(m_pBCWriter.get()) local 42 encodeContents += FX_WCHAR(checksum - 0 + '0');
|
H A D | cbc_onecode.cpp | 43 void CBC_OneCode::SetPrintChecksum(bool checksum) { argument 46 ->SetPrintChecksum(checksum);
|
H A D | cbc_upca.cpp | 40 int32_t checksum = pWriter->CalcChecksum(byteString); local 41 byteString += checksum - 0 + '0';
|
/external/skia/src/sfnt/ |
H A D | SkSFNTHeader.h | 58 SK_SFNT_ULONG checksum; member in struct:SkSFNTHeader::TableDirectoryEntry
|
/external/syslinux/com32/mboot/ |
H A D | mb_header.h | 41 uint32_t checksum; member in struct:multiboot_header
|
/external/syslinux/gpxe/src/core/ |
H A D | nvo.c | 36 * Calculate checksum over non-volatile stored options 86 uint8_t *checksum = data; local 90 /* Recalculate checksum */ 91 *checksum -= nvo_checksum ( nvo ); 121 /* Steal one byte for the checksum */ 125 /* If checksum fails, or options data starts with a zero, 130 DBGC ( nvo, "NVO %p has checksum %02x and initial byte %02x; "
|
/external/syslinux/gpxe/src/util/ |
H A D | makerom.pl | 133 sub checksum ($$) { subroutine 205 checksum(\$rom, $opts{'n'} ? $stubsize : $romsize); 222 checksum(\$rom, ord(substr($rom, 2, 1)) * 512);
|
H A D | modrom.pl | 131 sub checksum ($) { subroutine 199 &checksum(\$rom); 216 &checksum(\$rom);
|