HomeSort by relevance Sort by last modified time
    Searched refs:crc (Results 1 - 25 of 667) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /device/google/contexthub/firmware/os/inc/
crc.h 1 #include <nanohub/crc.h>
2 #include <plat/crc.h>
  /device/google/contexthub/util/stm32_flash/
stm32f4_crc.c 29 static uint32_t crc32_word(uint32_t crc, uint32_t data)
31 crc = crc ^ data;
33 crc = (crc << 4) ^ crc_table[crc >> 28];
34 crc = (crc << 4) ^ crc_table[crc >> 28];
35 crc = (crc << 4) ^ crc_table[crc >> 28]
49 uint32_t crc = ~0; local
    [all...]
  /external/gptfdisk/
crc32.cc 34 unsigned long crc; local
37 crc = 0xFFFFFFFF;
40 crc = ((crc >> 8) & 0x00FFFFFF) ^ crc_tab[(crc ^ *block++) & 0xFF];
42 return (crc ^ 0xFFFFFFFF);
52 unsigned long crc, poly; local
58 crc = i;
61 if (crc & 1)
63 crc = (crc >> 1) ^ poly;
    [all...]
  /external/fio/crc/
crc16.h 2 * crc16.h - CRC-16 routine
4 * Implements the standard CRC-16:
22 static inline unsigned short crc16_byte(unsigned short crc,
25 return (crc >> 8) ^ crc16_table[(crc ^ data) & 0xff];
crc7.h 6 static inline unsigned char crc7_byte(unsigned char crc, unsigned char data)
8 return crc7_syndrome_table[(crc << 1) ^ data];
  /device/google/contexthub/firmware/os/platform/native/inc/plat/
crc.h 1 #include <nanohub/crc.h>
  /external/flac/libFLAC/include/private/
crc.h 38 /* 8 bit CRC generator, MSB shifted first
43 #define FLAC__CRC8_UPDATE(data, crc) (crc) = FLAC__crc8_table[(crc) ^ (data)];
44 void FLAC__crc8_update(const FLAC__byte data, FLAC__uint8 *crc);
45 void FLAC__crc8_update_block(const FLAC__byte *data, unsigned len, FLAC__uint8 *crc);
48 /* 16 bit CRC generator, MSB shifted first
54 #define FLAC__CRC16_UPDATE(data, crc) ((((crc)<<8) & 0xffff) ^ FLAC__crc16_table[((crc)>>8) ^ (data)]
    [all...]
  /external/vboot_reference/firmware/2lib/
2crc8.c 12 unsigned crc = 0; local
16 * Calculate CRC-8 directly. A table-based algorithm would be faster,
20 crc ^= (*data << 8);
22 if (crc & 0x8000)
23 crc ^= (0x1070 << 3);
24 crc <<= 1;
28 return (uint8_t)(crc >> 8);
  /external/vboot_reference/firmware/lib/
crc8.c 11 * Return CRC-8 of the data, using x^8 + x^2 + x + 1 polynomial. A table-based
17 unsigned crc = 0; local
21 crc ^= (*data << 8);
23 if (crc & 0x8000)
24 crc ^= (0x1070 << 3);
25 crc <<= 1;
29 return (uint8_t)(crc >> 8);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
CRC32Test.java 29 CRC32 crc = new CRC32(); local
30 assertEquals("Constructor of CRC32 failed", 0, crc.getValue());
38 CRC32 crc = new CRC32(); local
40 0, crc.getValue());
42 crc.reset();
43 crc.update(Integer.MAX_VALUE);
44 // System.out.print("value of crc " + crc.getValue());
45 // Ran JDK and discovered that the value of the CRC should be
48 4278190080L, crc.getValue())
76 CRC32 crc = new CRC32(); local
94 CRC32 crc = new CRC32(); local
125 CRC32 crc = new CRC32(); local
149 CRC32 crc = new CRC32(); local
    [all...]
  /external/lzma/C/
7zCrc.h 13 /* Call CrcGenerateTable one time before other CRC functions */
17 #define CRC_GET_DIGEST(crc) ((crc) ^ CRC_INIT_VAL)
18 #define CRC_UPDATE_BYTE(crc, b) (g_CrcTable[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))
20 UInt32 MY_FAST_CALL CrcUpdate(UInt32 crc, const void *data, size_t size);
XzCrc64.h 18 #define CRC64_GET_DIGEST(crc) ((crc) ^ CRC64_INIT_VAL)
19 #define CRC64_UPDATE_BYTE(crc, b) (g_Crc64Table[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))
21 UInt64 MY_FAST_CALL Crc64Update(UInt64 crc, const void *data, size_t size);
  /external/syslinux/gpxe/src/crypto/
crc32.c 28 * Calculate 32-bit little-endian CRC checksum
35 * protocol. To continue a CRC checksum over multiple calls, pass the
40 u32 crc = seed; local
46 crc ^= *src++;
48 mult = ( crc & 1 ) ? CRCPOLY : 0;
49 crc = ( crc >> 1 ) ^ mult;
53 return crc;
  /libcore/ojluni/src/main/java/java/util/zip/
CRC32.java 32 * A class that can be used to compute the CRC-32 of a data stream.
42 private int crc; field in class:CRC32
52 * Updates the CRC-32 checksum with the specified byte (the low
58 crc = update(crc, b);
62 * Updates the CRC-32 checksum with the specified array of bytes.
76 crc = updateBytes(crc, b, off, len);
80 * Updates the CRC-32 checksum with the specified array of bytes.
85 crc = updateBytes(crc, b, 0, b.length)
    [all...]
  /external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
crc.h 12 * crc.h
26 * This function returns a 32 bit CRC checksum of a bit stream
33 * - crc : checksum
42 uint32_t* crc);
  /external/xz-embedded/linux/lib/xz/
xz_crc32.c 14 * accelerated CRC instruction are 3-5 times as fast as this version,
49 XZ_EXTERN uint32_t xz_crc32(const uint8_t *buf, size_t size, uint32_t crc)
51 crc = ~crc;
54 crc = xz_crc32_table[*buf++ ^ (crc & 0xFF)] ^ (crc >> 8);
58 return ~crc;
xz_crc64.c 40 XZ_EXTERN uint64_t xz_crc64(const uint8_t *buf, size_t size, uint64_t crc)
42 crc = ~crc;
45 crc = xz_crc64_table[*buf++ ^ (crc & 0xFF)] ^ (crc >> 8);
49 return ~crc;
  /frameworks/av/media/libstagefright/codecs/mp3dec/src/
pvmp3_crc.cpp 46 uint32 *crc, memory location holding calculated crc value
47 uint32 crc_enabled flag to enable/disable crc checking
56 uint32 length, number of element upon the crc will be calculated
57 uint32 *crc, memory location holding calculated crc value
125 uint32 *crc,
132 calculate_crc(bits, neededBits, crc);
143 uint32 *crc)
150 carry = *crc & 0x8000
    [all...]
  /external/syslinux/core/fs/btrfs/
crc32c.h 14 * This is the CRC-32C table
26 * crc using table.
29 static inline u32 crc32c_le(u32 crc, const char *data, size_t length)
32 crc = crc32c_table[(u8)(crc ^ *data++)] ^ (crc >> 8);
34 return crc;
  /device/google/contexthub/lib/nanohub/
softcrc.c 18 #include <nanohub/crc.h>
20 /* this implements crc32 as crc.h defines it. It is not a normal CRC by any measure, so be careful with it */
30 static uint32_t crcOneWord(uint32_t crc, uint32_t data, int cnt)
34 crc = crc ^ data;
36 crc = (crc << 4) ^ crctab[crc >> 28];
38 return crc;
    [all...]
  /external/toybox/toys/posix/
cksum.c 23 -N Do not include length in CRC calculation (or output)
42 static unsigned cksum_be(unsigned crc, unsigned char c)
44 return (crc<<8)^TT.crc_table[(crc>>24)^c];
47 static unsigned cksum_le(unsigned crc, unsigned char c)
49 return TT.crc_table[(crc^c)&0xff] ^ (crc>>8);
54 unsigned crc = (toys.optflags & FLAG_P) ? 0xffffffff : 0; local
56 unsigned (*cksum)(unsigned crc, unsigned char c);
60 // CRC the dat
    [all...]
  /external/e2fsprogs/lib/ext2fs/
crc16.h 2 * crc16.h - CRC-16 routine
4 * Implements the standard CRC-16:
20 * unsigned int for holding the CRC value to avoid this.
24 extern crc16_t ext2fs_crc16(crc16_t crc, const void *buffer, unsigned int len);
  /hardware/nxp/nfc/halimpl/utils/
sparse_crc32.h 22 uint32_t sparse_crc32(uint32_t crc, const void* buf, int size);
  /device/google/contexthub/firmware/os/platform/stm32/
crc.c 19 #include <nanohub/crc.h>
40 static uint32_t revCrc32Word(uint32_t crc, uint32_t data, uint32_t cnt)
45 crc = (crc >> 4) ^ mRevCrcTab[crc & 0x0F];
47 return crc ^ data;
52 uint32_t crc32(const void *buf, size_t size, uint32_t crc)
61 if (mCrcRegs->DR == crc)
63 else if (crc == CRC_INIT)
66 mCrcRegs->DR = revCrc32Word(crc, mCrcRegs->DR, 8)
    [all...]
  /prebuilts/go/darwin-x86/src/hash/crc32/
crc32_generic.go 28 crc := uint32(i)
30 if crc&1 == 1 {
31 crc = (crc >> 1) ^ poly
33 crc >>= 1
36 t[i] = crc
40 // simpleUpdate uses the simple algorithm to update the CRC, given a table that
42 func simpleUpdate(crc uint32, tab *Table, p []byte) uint32 {
43 crc = ^crc
    [all...]

Completed in 454 milliseconds

1 2 3 4 5 6 7 8 91011>>