LIBML  Version 3.2.4
LIBML DSP Software Library
Functions
tpt_dot_prod_u8.c File Reference
#include "tpt_math.h"
Include dependency graph for tpt_dot_prod_u8.c:

Functions

uint32_t tpt_dot_prod_u8 (uint8_t *aInDataA, uint8_t *aInDataB, uint32_t aCount)
 Dot production of U8 vectors. More...
 

Function Documentation

◆ tpt_dot_prod_u8()

uint32_t tpt_dot_prod_u8 ( uint8_t *  aInDataA,
uint8_t *  aInDataB,
uint32_t  aCount 
)

Dot production of U8 vectors.

Parameters
aInDataAPoints to the U8 format input vector.
aInDataBPoints to the U8 format input vector.
aCountSize of the vectors.
Returns
uint32_t dot product of two input vectors.

The output of multiplications is in 0.16 format and then added to an accumulator in 16.16 format. The return result is in 16.16 format.When the size of the vectors less than (2^15)-1, there is no risk to overflow.