/external/aac/libFDK/src/ |
H A D | FDK_crc.cpp | 98 * \brief This table defines precalculated lookup tables for crc polynom x^16 + x^15 + x^2 + x^0. 137 * \brief This table defines precalculated lookup tables for crc polynom x^16 + x^12 + x^5 + x^0. 209 /* crc polynom example: 308 * \brief Calculate crc bits. 310 * Calculate crc starting at current bitstream postion over nBits. 312 * \param pCrc Pointer to an outlying allocated crc info structure. 329 USHORT crc = *pCrc; /* get crc value */ local 334 tmp ^= ( (crc & crcMask) ? 1 : 0 ); 336 crc << 374 USHORT crc = *pCrc; /* get crc value */ local 409 USHORT crc = hCrcInfo->crcValue; local [all...] |
/external/aac/libMpegTPDec/src/ |
H A D | tpdec_adts.cpp | 98 void adtsRead_CrcInit(HANDLE_ADTS pAdts) /*!< pointer to adts crc info stucture */ 106 int mBits /*!< number of bits in crc region */ 118 HANDLE_ADTS pAdts, /*!< pointer to adts crc info stucture */ 120 int reg /*!< crc region */ 132 USHORT crc; local 137 crc = FDKcrcGetCRC(&pAdts->crcInfo); 138 if (crc != pAdts->crcReadValue)
|
/external/aac/libSBRenc/src/ |
H A D | env_bit.cpp | 104 * @brief updates crc data register 107 * This function updates the crc register 112 USHORT *crc, 121 flag = ((*crc) & crcMask) ? (1) : (0) ; 124 (*crc)<<=1; 125 if(flag) (*crc) ^= crcPoly; 226 calculate crc 110 crcAdvance(USHORT crcPoly, USHORT crcMask, USHORT *crc, ULONG bValue, INT bBits ) argument
|
/external/bluetooth/bluedroid/embdrv/sbc/decoder/include/ |
H A D | oi_codec_sbc.h | 143 OI_UINT8 crc; /**< Parity check byte used for error detection. */ member in struct:__anon1107
|
/external/bluetooth/bluedroid/embdrv/sbc/decoder/srce/ |
H A D | decoder-sbc.c | 241 OI_UINT8 crc; local 295 crc = OI_SBC_CalculateChecksum(&context->common.frameInfo, *frameData); 296 if (crc != context->common.frameInfo.crc) { 297 TRACE(("CRC Mismatch: calc=%02x read=%02x\n", crc, context->common.frameInfo.crc)); 338 OI_UINT8 crc; local 352 crc = OI_SBC_CalculateChecksum(&context->common.frameInfo, *frameData); 353 if (crc != context->common.frameInfo.crc) { [all...] |
H A D | framing.c | 113 OI_UINT crc; local 116 crc = crc8_wide[idx >> 1]; 118 crc &= 0xff; 120 crc >>= 8; 123 return crc; 128 OI_UINT crc; local 131 crc = crc8_wide[idx>>1]; 133 crc &= 0xff; 135 crc >>= 8; 138 return (oldcrc << 4) ^ crc; 149 crc_iterate(OI_UINT8 crc, OI_UINT8 next) argument 158 crc_iterate(OI_UINT8 crc, OI_UINT8 next) argument 171 OI_UINT8 crc = 0x0f; local [all...] |
/external/bluetooth/bluedroid/stack/l2cap/ |
H A D | l2c_fcr.c | 118 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 D | util.cc | 217 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/chromium_org/courgette/ |
H A D | crc.cc | 5 #include "courgette/crc.h" 20 uint32 crc; local 24 crc = crc32(0, buffer, size); 28 crc = CrcCalc(buffer, size); 31 return ~crc;
|
/external/chromium_org/media/formats/mp2t/ |
H A D | ts_section_psi.cc | 13 uint32 crc = 0xffffffffu; local 22 if ((data_msb_aligned ^ crc) & 0x80000000) { 23 crc <<= 1; 24 crc ^= kCrcPoly; 26 crc <<= 1; 34 return (crc == 0);
|
/external/chromium_org/net/disk_cache/simple/ |
H A D | simple_entry_impl.cc | 769 int32 crc = GetDataSize(i) == 0 ? crc32(0, Z_NULL, 0) : crc32s_[i]; local 770 crc32s_to_write->push_back(CRCRecord(i, true, crc)); 1121 // The crc was read in SimpleSynchronousEntry. 1192 // computed a crc of the entire file. We can check it now. If a cache 1198 // the crc as the most advanced reader progresses, and check it for 1516 // the crc of the data. When we write to an entry and close without having
|
H A D | simple_index_file.h | 169 uint32 crc; member in struct:disk_cache::SimpleIndexFile::PickleHeader
|
/external/chromium_org/rlz/lib/ |
H A D | crc32_unittest.cc | 18 int crc; member in struct:__anon10527 28 EXPECT_EQ(kData[i].crc, 37 int crc; member in struct:__anon10528 47 int crc; local 49 EXPECT_TRUE(rlz_lib::Crc32(kData[i].data, &crc)); 50 EXPECT_EQ(kData[i].crc, crc);
|
H A D | crc32_wrapper.cc | 19 bool Crc32(const char* text, int* crc) { argument 20 if (!crc) { 21 ASSERT_STRING("Crc32: crc is NULL."); 25 *crc = 0; 30 *crc = crc32(*crc, reinterpret_cast<const unsigned char*>(text + i), 1);
|
H A D | crc8.cc | 63 unsigned char crc = kInitial; local 65 crc = kCrcTable[(data[i] ^ crc) & 0xFFU]; 68 *check_sum = crc ^ kFinal;
|
H A D | crc8_unittest.cc | 17 // http://www.zorc.breitbandkatze.de/crc.html 31 unsigned char crc; local 36 crc = 0; 41 rlz_lib::Crc8::Generate(bytes, length, &crc); 42 EXPECT_TRUE(crc == data[i].external_crc); 43 rlz_lib::Crc8::Verify(bytes, length, crc, &matches); 48 rlz_lib::Crc8::Verify(bytes, length, crc, &matches);
|
/external/chromium_org/third_party/icu/source/tools/genrb/ |
H A D | wrtxml.cpp | 130 int32_t crc; local 141 /*build crc table*/ 154 crc = lastcrc; 156 temp1 = (uint32_t)crc>>8; 157 temp2 = crc_ta[(crc^*ptr) & 0xFF]; 158 crc = temp1^temp2; 161 return(crc); 791 uint32_t crc = 0xFFFFFFFF; local 870 crc = computeCRC(temp, len, crc); [all...] |
/external/chromium_org/third_party/leveldatabase/src/db/ |
H A D | db_bench.cc | 614 uint32_t crc = 0; local 616 crc = crc32c::Value(data.data(), size); 621 fprintf(stderr, "... crc=0x%x\r", static_cast<unsigned int>(crc));
|
H A D | log_test.cc | 157 // 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);
|
H A D | log_writer.cc | 85 // Compute the crc of the record type and the payload. 86 uint32_t crc = crc32c::Extend(type_crc_[t], ptr, n); local 87 crc = crc32c::Mask(crc); // Adjust for storage 88 EncodeFixed32(buf, crc);
|
/external/chromium_org/third_party/leveldatabase/src/table/ |
H A D | format.cc | 74 // Read the block contents as well as the type/crc footer. 89 // Check the crc of the type and the block contents 92 const uint32_t crc = crc32c::Unmask(DecodeFixed32(data + n + 1)); local 94 if (actual != crc) {
|
H A D | table_builder.cc | 143 // crc: uint32 185 uint32_t crc = crc32c::Value(block_contents.data(), block_contents.size()); local 186 crc = crc32c::Extend(crc, trailer, 1); // Extend crc to cover block type 187 EncodeFixed32(trailer+1, crc32c::Mask(crc));
|
/external/chromium_org/third_party/leveldatabase/src/util/ |
H A D | crc32c.cc | 286 uint32_t Extend(uint32_t crc, const char* buf, size_t size) { argument 289 uint32_t l = crc ^ 0xffffffffu;
|
H A D | crc32c.h | 26 // Return a masked representation of crc. 31 inline uint32_t Mask(uint32_t crc) { argument 33 return ((crc >> 15) | (crc << 17)) + kMaskDelta; 36 // Return the crc whose masked representation is masked_crc.
|
H A D | crc32c_test.cc | 60 uint32_t crc = Value("foo", 3); local 61 ASSERT_NE(crc, Mask(crc)); 62 ASSERT_NE(crc, Mask(Mask(crc))); 63 ASSERT_EQ(crc, Unmask(Mask(crc))); 64 ASSERT_EQ(crc, Unmask(Unmask(Mask(Mask(crc)))));
|