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

Functions

q31_t tpt_dot_prod_u8xq15 (uint8_t *aInDataA, q15_t *aInDataB, uint32_t aCount)
 Dot production of U8xQ15 vectors. More...
 

Function Documentation

◆ tpt_dot_prod_u8xq15()

q31_t tpt_dot_prod_u8xq15 ( uint8_t *  aInDataA,
q15_t aInDataB,
uint32_t  aCount 
)

Dot production of U8xQ15 vectors.

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

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