Searched defs:crc (Results 76 - 100 of 159) sorted by relevance

1234567

/external/lzma/C/
H A DXzIn.c74 UInt32 crc; local
80 crc = CrcCalc(buf, size);
81 if (crc != GetUi32(buf + size))
H A DXzEnc.c35 static SRes WriteBytesAndCrc(ISeqOutStream *s, const void *buf, UInt32 size, UInt32 *crc) argument
37 *crc = CrcUpdate(*crc, buf, size);
43 UInt32 crc; local
48 crc = CrcCalc(header + XZ_SIG_SIZE, XZ_STREAM_FLAGS_SIZE);
49 SetUi32(header + XZ_SIG_SIZE + XZ_STREAM_FLAGS_SIZE, crc);
84 UInt32 crc = CRC_INIT_VAL; local
90 RINOK(WriteBytesAndCrc(s, buf, pos, &crc));
97 RINOK(WriteBytesAndCrc(s, buf, pos, &crc));
103 RINOK(WriteBytesAndCrc(s, buf, 4 - pos, &crc));
[all...]
/external/pdfium/core/src/fxcodec/fx_zlib/zlib_v128/
H A Dfx_zlib_crc32.c17 of the crc tables. Therefore, if you #define DYNAMIC_CRC_TABLE, you should
35 /* Definitions for doing the crc four data bytes at a time. */
49 /* Local functions for crc concatenation */
95 /* terms of polynomial defining this crc (except x^32): */
110 /* generate a crc for every 8-bit value */
119 /* generate crc for each value followed by one, two, and three zeros,
200 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8)
205 unsigned long crc,
204 crc32( unsigned long crc, const unsigned char FAR *buf, uInt len) argument
247 crc32_little( unsigned long crc, const unsigned char FAR *buf, unsigned len) argument
287 crc32_big( unsigned long crc, const unsigned char FAR *buf, unsigned len) argument
[all...]
/external/qemu/distrib/ext4_utils/src/
H A Dext4_utils.c83 void write_ext4_image(int fd, int gz, int sparse, int crc) argument
85 sparse_file_write(ext4_sparse_file, fd, gz, sparse, crc);
357 u16 crc; local
369 crc = ext4_crc16(~0, aux_info.sb->s_uuid, sizeof(aux_info.sb->s_uuid));
370 crc = ext4_crc16(crc, &i, sizeof(i));
371 crc = ext4_crc16(crc, &aux_info.bg_desc[i], offsetof(struct ext2_group_desc, bg_checksum));
372 aux_info.bg_desc[i].bg_checksum = crc;
/external/qemu/distrib/libsparse/src/
H A Dsparse.c153 bool crc)
160 out = output_file_open_fd(fd, s->block_size, s->len, gz, sparse, chunks, crc);
172 int sparse_file_callback(struct sparse_file *s, bool sparse, bool crc, argument
181 sparse, chunks, crc);
200 int64_t sparse_file_len(struct sparse_file *s, bool sparse, bool crc) argument
208 s->block_size, s->len, false, sparse, chunks, crc);
236 * skip chunk, and crc chunk.
152 sparse_file_write(struct sparse_file *s, int fd, bool gz, bool sparse, bool crc) argument
H A Dsparse_read.c261 verbose_error(s->verbose, -EINVAL, "crc block at %lld",
274 static int sparse_file_read_sparse(struct sparse_file *s, int fd, bool crc) argument
293 if (crc) {
406 int sparse_file_read(struct sparse_file *s, int fd, bool sparse, bool crc) argument
408 if (crc && !sparse) {
413 return sparse_file_read_sparse(s, fd, crc);
419 struct sparse_file *sparse_file_import(int fd, bool verbose, bool crc) argument
466 ret = sparse_file_read(s, fd, true, crc);
475 struct sparse_file *sparse_file_import_auto(int fd, bool crc) argument
481 s = sparse_file_import(fd, true, crc);
[all...]
/external/valgrind/main/none/tests/x86/
H A Dx86locked.c100 UInt crc = crcIn; local
102 UPDATE_CRC(crc, bytes[0]);
103 UPDATE_CRC(crc, bytes[1]);
104 UPDATE_CRC(crc, bytes[2]);
105 UPDATE_CRC(crc, bytes[3]);
110 UPDATE_CRC(crc, bytes[0]);
114 return crc;
117 static UInt crcFinalise ( UInt crc ) {
118 return ~crc;
127 // update the running crc
[all...]
/external/zlib/src/contrib/minizip/
H A Dunzip.h118 uLong crc; /* crc-32 4 bytes */ member in struct:unz_file_info64_s
139 uLong crc; /* crc-32 4 bytes */ member in struct:unz_file_info_s
/external/zlib/src/examples/
H A Dgun.c121 int check; /* true if checking crc and total */
122 unsigned long crc; member in struct:outd
137 me->crc = crc32(me->crc, buf, len);
460 if (flags & 2) { /* header crc */
469 outd.crc = crc32(0L, Z_NULL, 0);
483 if (NEXT() != (int)(outd.crc & 0xff) ||
484 NEXT() != (int)((outd.crc >> 8) & 0xff) ||
485 NEXT() != (int)((outd.crc >> 16) & 0xff) ||
486 NEXT() != (int)((outd.crc >> 2
[all...]
H A Dgzappend.c263 unsigned long crc, tot; local
295 crc = crc32(0L, Z_NULL, 0);
316 /* update crc and sliding window pointer */
317 crc = crc32(crc, window + have, DSIZE - have - strm->avail_out);
343 if (crc != read4(&gz))
344 bye("invalid compressed data--crc mismatch in ", name);
367 /* set up deflate stream with window, crc, total_in, and leftover bits */
371 strm->adler = crc;
/external/bluetooth/bluedroid/embdrv/sbc/decoder/include/
H A Doi_codec_sbc.h143 OI_UINT8 crc; /**< Parity check byte used for error detection. */ member in struct:__anon1107
/external/chromium_org/third_party/leveldatabase/src/db/
H A Dlog_test.cc157 // Compute crc of type/len/data
158 uint32_t crc = crc32c::Value(&dest_.contents_[header_offset+6], 1 + len); local
159 crc = crc32c::Mask(crc);
160 EncodeFixed32(&dest_.contents_[header_offset], crc);
/external/f2fs-tools/lib/
H A Dlibf2fs.c318 u_int32_t f2fs_cal_crc32(u_int32_t crc, void *buf, int len) argument
323 crc ^= *p++;
325 crc = (crc >> 1) ^ ((crc & 1) ? CRCPOLY_LE : 0);
327 return crc;
/external/flac/libFLAC/
H A Dbitwriter.c51 #include "private/crc.h"
234 FLAC__bool FLAC__bitwriter_get_write_crc16(FLAC__BitWriter *bw, FLAC__uint16 *crc) argument
244 *crc = (FLAC__uint16)FLAC__crc16(buffer, bytes);
249 FLAC__bool FLAC__bitwriter_get_write_crc8(FLAC__BitWriter *bw, FLAC__byte *crc) argument
259 *crc = FLAC__crc8(buffer, bytes);
/external/libnfc-nxp/src/
H A DphLlcNfc_Frame.c1756 uint16_t crc = 0; local
1759 crc = 0x6363; /* ITU-V.41 */
1761 crc = 0xFFFF; /* ISO/IEC 13239 (formerly ISO/IEC 3309) */
1767 phLlcNfc_H_UpdateCrc(crc_byte, &crc);
1772 crc = ~crc; /* ISO/IEC 13239 (formerly ISO/IEC 3309) */
1775 *pCrc1 = (uint8_t) (crc & 0xFF);
1776 *pCrc2 = (uint8_t) ((crc >> 8) & 0xFF);
/external/lzma/xz-embedded/
H A Dxz_dec_stream.c53 uint64_t crc; member in struct:xz_dec
56 uint32_t crc; member in struct:xz_dec
256 s->crc = xz_crc32(b->out + s->out_start,
257 b->out_pos - s->out_start, s->crc);
260 s->crc = xz_crc64(b->out + s->out_start,
261 b->out_pos - s->out_start, s->crc);
303 s->crc = xz_crc32(b->in + s->in_start, in_used, s->crc);
362 * of s->crc. s->pos must be zero when starting to validate the first byte.
372 if (((s->crc >>
[all...]
/external/oprofile/libutil++/
H A Dbfd_support.cpp48 bool separate_debug_file_exists(string & name, unsigned long const crc, argument
75 return crc == file_crc;
/external/srec/portable/src/
H A Dpmemory.c100 unsigned int crc; member in struct:MemMapEntry_t
177 unsigned int crc = ~pcrcComputeString(key); local
178 int initialIdx = (int)(crc % MAX_MEM_TAG);
189 gMemoryMap[idx].crc = crc;
199 if (gMemoryMap[idx].crc == crc &&
466 unsigned int crc; local
494 crc = ~pcrcComputeString(e->tag);
495 if (crc !
[all...]
/external/valgrind/main/none/tests/amd64/
H A Damd64locked.c100 UInt crc = crcIn; local
102 UPDATE_CRC(crc, bytes[0]);
103 UPDATE_CRC(crc, bytes[1]);
104 UPDATE_CRC(crc, bytes[2]);
105 UPDATE_CRC(crc, bytes[3]);
110 UPDATE_CRC(crc, bytes[0]);
114 return crc;
117 static UInt crcFinalise ( UInt crc ) {
118 return ~crc;
127 // update the running crc
[all...]
/external/bluetooth/bluedroid/stack/l2cap/
H A Dl2c_fcr.c118 register unsigned short crc = icrc; local
124 crc = ((crc >> 8) & 0xff) ^ crctab[(crc & 0xff) ^ *cp++];
127 return(crc);
/external/chromium_org/chrome/test/chromedriver/
H A Dutil.cc217 if (!stream.ReadUInt32(&zip->crc)) {
218 *error_msg = "invalid crc";
264 if (!stream.ReadUInt32(&zip->crc)) {
265 *error_msg = "invalid crc";
304 stream.WriteUInt32(crc);
322 stream.WriteUInt32(crc);
358 uint32 crc; member in struct:__anon5980::ZipEntry
/external/dnsmasq/src/
H A Dforward.c19 static struct frec *lookup_frec(unsigned short id, unsigned int crc);
22 unsigned int crc);
23 static unsigned short get_id(int force, unsigned short force_id, unsigned int crc);
211 unsigned int crc = questions_crc(header, plen, daemon->namebuff); local
219 else if (forward || (forward = lookup_frec_by_sender(ntohs(header->id), udpaddr, crc)))
253 forward->new_id = get_id(is_sign, forward->orig_id, crc);
255 forward->crc = crc;
805 unsigned int crc = questions_crc(header, (unsigned int)size, daemon->namebuff); local
873 /* If the crc o
1038 lookup_frec(unsigned short id, unsigned int crc) argument
1050 lookup_frec_by_sender(unsigned short id, union mysockaddr *addr, unsigned int crc) argument
1086 get_id(int force, unsigned short force_id, unsigned int crc) argument
[all...]
/external/elfutils/0.153/libdwfl/
H A Ddwfl_module_getdwarf.c231 find_debuglink (Elf *elf, GElf_Word *crc) argument
264 .d_buf = crc,
265 .d_size = sizeof *crc,
271 .d_buf = rawdata->d_buf + rawdata->d_size - sizeof *crc,
272 .d_size = sizeof *crc,
/external/f2fs-tools/fsck/
H A Dfsck.c913 u_int32_t crc = 0; local
926 crc = f2fs_cal_crc32(F2FS_SUPER_MAGIC, ckp, CHECKSUM_OFFSET);
928 cpu_to_le32(crc);
/external/fio/
H A Dverify.c17 #include "crc/md5.h"
18 #include "crc/crc64.h"
19 #include "crc/crc32.h"
20 #include "crc/crc32c.h"
21 #include "crc/crc16.h"
22 #include "crc/crc7.h"
23 #include "crc/sha256.h"
24 #include "crc/sha512.h"
25 #include "crc/sha1.h"
26 #include "crc/xxhas
715 uint32_t crc; local
[all...]

Completed in 1600 milliseconds

1234567