Skip to content

vector subtraction Kernels

Module: Basic Math Functions / vector subtraction

More...

Functions

Name
void plp_sub_f32s_xpulpv2(const float32_t * pSrcA, const float32_t * pSrcB, float32_t * pDst, uint32_t blockSize)
vector substraction for 32-bit floats on XpulpV2
void plp_sub_i16s_rv32im(const int16_t * pSrcA, const int16_t * pSrcB, int32_t * pDst, uint32_t blockSize)
vector substraction for 16-bit integers on RV32IM
void plp_sub_i16s_xpulpv2(const int16_t * pSrcA, const int16_t * pSrcB, int32_t * pDst, uint32_t blockSize)
vector substraction for 16-bit integers on XpulpV2
void plp_sub_i32s_rv32im(const int32_t * pSrcA, const int32_t * pSrcB, int32_t * pDst, uint32_t blockSize)
vector substraction for 32-bit integers on RV32IM
void plp_sub_i32s_xpulpv2(const int32_t * pSrcA, const int32_t * pSrcB, int32_t * pDst, uint32_t blockSize)
vector substraction for 32-bit integers on XpulpV2
void plp_sub_i8s_rv32im(const int8_t * pSrcA, const int8_t * pSrcB, int32_t * pDst, uint32_t blockSize)
vector substraction for 8-bit integers on RV32IM
void plp_sub_i8s_xpulpv2(const int8_t * pSrcA, const int8_t * pSrcB, int32_t * pDst, uint32_t blockSize)
vector substraction for 8-bit integers on XpulpV2

Detailed Description

Element-by-element subtraction of two vectors. pDst[n] = pSrcA[n] - pSrcB[n], 0 <= n < blockSize.

Functions Documentation

function plp_sub_f32s_xpulpv2

void plp_sub_f32s_xpulpv2(
    const float32_t * pSrcA,
    const float32_t * pSrcB,
    float32_t * pDst,
    uint32_t blockSize
)

vector substraction for 32-bit floats on XpulpV2

Parameters:

  • pSrcA points to the first input vector
  • pSrcB points to the second input vector
  • pDst points to the output vector
  • blockSize number of samples in each vector

Return: none

function plp_sub_i16s_rv32im

void plp_sub_i16s_rv32im(
    const int16_t * pSrcA,
    const int16_t * pSrcB,
    int32_t * pDst,
    uint32_t blockSize
)

vector substraction for 16-bit integers on RV32IM

Parameters:

  • pSrcA points to the first input vector
  • pSrcB points to the second input vector
  • pDst points to the output vector
  • blockSize number of samples in each vector

Return: none

function plp_sub_i16s_xpulpv2

void plp_sub_i16s_xpulpv2(
    const int16_t * pSrcA,
    const int16_t * pSrcB,
    int32_t * pDst,
    uint32_t blockSize
)

vector substraction for 16-bit integers on XpulpV2

Parameters:

  • pSrcA points to the first input vector
  • pSrcB points to the second input vector
  • pDst points to the output vector
  • blockSize number of samples in each vector

Return: none

function plp_sub_i32s_rv32im

void plp_sub_i32s_rv32im(
    const int32_t * pSrcA,
    const int32_t * pSrcB,
    int32_t * pDst,
    uint32_t blockSize
)

vector substraction for 32-bit integers on RV32IM

Parameters:

  • pSrcA points to the first input vector
  • pSrcB points to the second input vector
  • pDst points to the output vector
  • blockSize number of samples in each vector

Return: none

function plp_sub_i32s_xpulpv2

void plp_sub_i32s_xpulpv2(
    const int32_t * pSrcA,
    const int32_t * pSrcB,
    int32_t * pDst,
    uint32_t blockSize
)

vector substraction for 32-bit integers on XpulpV2

Parameters:

  • pSrcA points to the first input vector
  • pSrcB points to the second input vector
  • pDst points to the output vector
  • blockSize number of samples in each vector

Return: none

function plp_sub_i8s_rv32im

void plp_sub_i8s_rv32im(
    const int8_t * pSrcA,
    const int8_t * pSrcB,
    int32_t * pDst,
    uint32_t blockSize
)

vector substraction for 8-bit integers on RV32IM

Parameters:

  • pSrcA points to the first input vector
  • pSrcB points to the second input vector
  • pDst points to the output vector
  • blockSize number of samples in each vector

Return: none

function plp_sub_i8s_xpulpv2

void plp_sub_i8s_xpulpv2(
    const int8_t * pSrcA,
    const int8_t * pSrcB,
    int32_t * pDst,
    uint32_t blockSize
)

vector substraction for 8-bit integers on XpulpV2

Parameters:

  • pSrcA points to the first input vector
  • pSrcB points to the second input vector
  • 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