55 lines
962 B
C
55 lines
962 B
C
#include "ref.h"
|
|
|
|
void ref_not_u16(
|
|
const uint16_t * pSrc,
|
|
uint16_t * pDst,
|
|
uint32_t blockSize)
|
|
{
|
|
uint32_t blkCnt = blockSize; /* Loop counter */
|
|
blkCnt = blockSize;
|
|
|
|
while (blkCnt > 0U)
|
|
{
|
|
*pDst++ = ~(*pSrc++);
|
|
|
|
/* Decrement the loop counter */
|
|
blkCnt--;
|
|
}
|
|
}
|
|
|
|
void ref_not_u32(
|
|
const uint32_t * pSrc,
|
|
uint32_t * pDst,
|
|
uint32_t blockSize)
|
|
{
|
|
uint32_t blkCnt; /* Loop counter */
|
|
blkCnt = blockSize;
|
|
|
|
while (blkCnt > 0U)
|
|
{
|
|
*pDst++ = ~(*pSrc++);
|
|
|
|
/* Decrement the loop counter */
|
|
blkCnt--;
|
|
}
|
|
}
|
|
|
|
void ref_not_u8(
|
|
const uint8_t * pSrc,
|
|
uint8_t * pDst,
|
|
uint32_t blockSize)
|
|
{
|
|
uint32_t blkCnt; /* Loop counter */
|
|
blkCnt = blockSize;
|
|
|
|
while (blkCnt > 0U)
|
|
{
|
|
*pDst++ = ~(*pSrc++);
|
|
|
|
/* Decrement the loop counter */
|
|
blkCnt--;
|
|
}
|
|
}
|
|
|
|
|