Home
last modified time | relevance | path

Searched refs:shiftReg (Results 1 – 1 of 1) sorted by relevance

/hal_nxp-latest/mcux/mcux-sdk/components/crc/
Dfsl_adapter_software_crc.c17 uint32_t shiftReg = crcConfig->crcSeed << ((4U - crcConfig->crcSize) << 3U); in HAL_CrcCompute() local
51 if ((shiftReg & 1UL << 31) != 0U) in HAL_CrcCompute()
56 shiftReg = (shiftReg << 1); in HAL_CrcCompute()
60 shiftReg ^= crcPoly; in HAL_CrcCompute()
65 shiftReg |= (1UL << (32U - crcBits)); in HAL_CrcCompute()
69 shiftReg &= ~(1UL << (32U - crcBits)); in HAL_CrcCompute()
74 shiftReg ^= crcXorOut; in HAL_CrcCompute()
78 computedCRC = (shiftReg >> (32U - crcBits)); in HAL_CrcCompute()
87 computedCRC |= ((shiftReg & j) != 0U) ? 1U : 0U; in HAL_CrcCompute()