Skip to content

Vector Negate

Module: Basic Math Functions

More...

Modules

Name
Vector Negate Kernels

Functions

Name
void plp_negate_f32(const float32_t * pSrc, float32_t * pDst, uint32_t blockSize)
Glue code of negate the elements of a vector for 32-bit floats.
void plp_negate_i16(const int16_t * pSrc, int16_t * pDst, uint32_t blockSize)
Glue code of negate the elements of a vector for 16-bit integers.
void plp_negate_i32(const int32_t * pSrc, int32_t * pDst, uint32_t blockSize)
Glue code of negate the elements of a vector for 32-bit integers.
void plp_negate_i8(const int8_t * pSrc, int8_t * pDst, uint32_t blockSize)
Glue code of negate the elements of a vector for 8-bit integers.

Detailed Description

This module contains the glue code for Vector Negate. The kernel codes (kernels) are in the Module Vector Negate Kernels. Negates the elements of a vector. pDst[n] = -pSrc[n], 0 <= n < blockSize.

Functions Documentation

function plp_negate_f32

void plp_negate_f32(
    const float32_t * pSrc,
    float32_t * pDst,
    uint32_t blockSize
)

Glue code of negate the elements of a vector for 32-bit floats.

Parameters:

  • pSrc points to input vector.
  • pDst points to output vector.
  • blockSize number of samples in each vector.

Return: none

function plp_negate_i16

void plp_negate_i16(
    const int16_t * pSrc,
    int16_t * pDst,
    uint32_t blockSize
)

Glue code of negate the elements of a vector for 16-bit integers.

Parameters:

  • pSrc points to input vector.
  • pDst points to output vector.
  • blockSize number of samples in each vector.

Return: none

function plp_negate_i32

void plp_negate_i32(
    const int32_t * pSrc,
    int32_t * pDst,
    uint32_t blockSize
)

Glue code of negate the elements of a vector for 32-bit integers.

Parameters:

  • pSrc points to input vector.
  • pDst points to output vector.
  • blockSize number of samples in each vector.

Return: none

function plp_negate_i8

void plp_negate_i8(
    const int8_t * pSrc,
    int8_t * pDst,
    uint32_t blockSize
)

Glue code of negate the elements of a vector for 8-bit integers.

Parameters:

  • pSrc points to input vector.
  • pDst points to output vector.
  • blockSize number of samples in each vector.

Return: none


Updated on 2023-03-01 at 16:16:32 +0000