vector offset
Module: Basic Math Functions
Modules
Name |
---|
vector offset Kernels |
Functions
Name | |
---|---|
void | plp_offset_f32(const float32_t * pSrc, float32_t offset, float32_t * pDst, uint32_t blockSize) Glue code of add a constant offset to a vector for 32-bit floats. |
void | plp_offset_i16(const int16_t * pSrc, int16_t offset, int16_t * pDst, uint32_t blockSize) Glue code of add a constant offset to a vector for 16-bit integers. |
void | plp_offset_i32(const int32_t * pSrc, int32_t offset, int32_t * pDst, uint32_t blockSize) Glue code of add a constant offset to a vector for 32-bit integers. |
void | plp_offset_i8(const int8_t * pSrc, int8_t offset, int8_t * pDst, uint32_t blockSize) Glue code of add a constant offset to a vector for 8-bit integers. |
Detailed Description
This module contains the glue code for vector offset. The kernel codes (kernels) are in the Module vector offset Kernels. Adds a constant offset to each element of a vector. pDst[n] = pSrc[n] + offset, 0 <= n < blockSize.
Functions Documentation
function plp_offset_f32
void plp_offset_f32(
const float32_t * pSrc,
float32_t offset,
float32_t * pDst,
uint32_t blockSize
)
Glue code of add a constant offset to a vector for 32-bit floats.
Parameters:
- pSrc points to the input vector
- offset is the offset to be added
- pDst points to the output vector
- blockSize number of samples in each vector
Return: none
function plp_offset_i16
void plp_offset_i16(
const int16_t * pSrc,
int16_t offset,
int16_t * pDst,
uint32_t blockSize
)
Glue code of add a constant offset to a vector for 16-bit integers.
Parameters:
- pSrc points to the input vector
- offset is the offset to be added
- pDst points to the output vector
- blockSize number of samples in each vector
Return: none
function plp_offset_i32
void plp_offset_i32(
const int32_t * pSrc,
int32_t offset,
int32_t * pDst,
uint32_t blockSize
)
Glue code of add a constant offset to a vector for 32-bit integers.
Parameters:
- pSrc points to the input vector
- offset is the offset to be added
- pDst points to the output vector
- blockSize number of samples in each vector
Return: none
function plp_offset_i8
void plp_offset_i8(
const int8_t * pSrc,
int8_t offset,
int8_t * pDst,
uint32_t blockSize
)
Glue code of add a constant offset to a vector for 8-bit integers.
Parameters:
- pSrc points to the input vector
- offset is the offset to be added
- pDst points to the output vector
- blockSize number of samples in each vector
Return: none
Updated on 2023-03-01 at 16:16:32 +0000