NMSIS-NN  Version 1.2.0
NMSIS NN Software Library
SupportConversion

Functions

void riscv_q7_to_q15_with_offset (const int8_t *src, int16_t *dst, int32_t block_size, int16_t offset)
 Converts the elements from a s8 vector to a s16 vector with an added offset. More...
 

Detailed Description

Function Documentation

◆ riscv_q7_to_q15_with_offset()

void riscv_q7_to_q15_with_offset ( const int8_t *  src,
int16_t *  dst,
int32_t  block_size,
int16_t  offset 
)

Converts the elements from a s8 vector to a s16 vector with an added offset.

Parameters
[in]srcpointer to the s8 input vector
[out]dstpointer to the s16 output vector
[in]block_sizelength of the input vector
[in]offsets16 offset to be added to each input vector element.
Description:

Output elements are ordered. The equation used for the conversion process is:

 dst[n] = (int16_t) src[n] + offset;   0 <= n < block_size.