Skip to content

Vector Negate Kernels

Module: Basic Math Functions / Vector Negate

More...

Functions

Name
void plp_negate_f32s_xpulpv2(const float32_t * pSrc, float32_t * pDst, uint32_t blockSize)
negate the elements of a vector for 32-bit floats on XpulpV2
void plp_negate_i16s_rv32im(const int16_t * pSrc, int16_t * pDst, uint32_t blockSize)
negate the elements of a vector for 16-bit integers on RV32IM
void plp_negate_i16s_xpulpv2(const int16_t * pSrc, int16_t * pDst, uint32_t blockSize)
negate the elements of a vector for 16-bit integers on XpulpV2
void plp_negate_i32s_rv32im(const int32_t * pSrc, int32_t * pDst, uint32_t blockSize)
negate the elements of a vector for 32-bit integers on RV32IM
void plp_negate_i32s_xpulpv2(const int32_t * pSrc, int32_t * pDst, uint32_t blockSize)
negate the elements of a vector for 32-bit integers on XpulpV2
void plp_negate_i8s_rv32im(const int8_t * pSrc, int8_t * pDst, uint32_t blockSize)
negate the elements of a vector for 8-bit integers on RV32IM
void plp_negate_i8s_xpulpv2(const int8_t * pSrc, int8_t * pDst, uint32_t blockSize)
negate the elements of a vector for 8-bit integers on XpulpV2

Detailed Description

Negates the elements of a vector. pDst[n] = -pSrc[n], 0 <= n < blockSize.

Functions Documentation

function plp_negate_f32s_xpulpv2

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

negate the elements of a vector for 32-bit floats on XpulpV2

Parameters:

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

Return: none

function plp_negate_i16s_rv32im

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

negate the elements of a vector for 16-bit integers on RV32IM

Parameters:

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

Return: none

function plp_negate_i16s_xpulpv2

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

negate the elements of a vector for 16-bit integers on XpulpV2

Parameters:

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

Return: none

function plp_negate_i32s_rv32im

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

negate the elements of a vector for 32-bit integers on RV32IM

Parameters:

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

Return: none

function plp_negate_i32s_xpulpv2

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

negate the elements of a vector for 32-bit integers on XpulpV2

Parameters:

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

Return: none

function plp_negate_i8s_rv32im

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

negate the elements of a vector for 8-bit integers on RV32IM

Parameters:

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

Return: none

function plp_negate_i8s_xpulpv2

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

negate the elements of a vector for 8-bit integers on XpulpV2

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