22 lines
376 B
C
22 lines
376 B
C
#include "ref.h"
|
|
|
|
void ref_vlog_f32(
|
|
const float32_t * pSrc,
|
|
float32_t * pDst,
|
|
uint32_t blockSize)
|
|
{
|
|
uint32_t blkCnt;
|
|
|
|
blkCnt = blockSize;
|
|
|
|
while (blkCnt > 0U)
|
|
{
|
|
/* C = log(A) */
|
|
|
|
/* Calculate log and store result in destination buffer. */
|
|
*pDst++ = logf(*pSrc++);
|
|
|
|
/* Decrement loop counter */
|
|
blkCnt--;
|
|
}
|
|
} |