Skip to content

RMS Kernels

Module: Statistics Functions / Power

More...

Functions

Name
void plp_rms_f32s_xpulpv2(const float restrict pSrc, uint32_t blockSize, float restrict pRes)
RMS value of a 32-bit float vector for XPULPV2 extension.
void plp_rms_i16s_rv32im(const int16_t restrict pSrc, uint32_t blockSize, int32_t restrict pRes)
RMS value of a 16-bit integer vector for RV32IM extension.
void plp_rms_i16s_xpulpv2(const int16_t restrict pSrc, uint32_t blockSize, int32_t restrict pRes)
RMS value of a 16-bit integer vector for XPULPV2 extension.
void plp_rms_i32s_rv32im(const int32_t restrict pSrc, uint32_t blockSize, int32_t restrict pRes)
RMS value of a 32-bit integer vector for RV32IM extension.
void plp_rms_i32s_xpulpv2(const int32_t restrict pSrc, uint32_t blockSize, int32_t restrict pRes)
RMS value of a 32-bit integer vector for XPULPV2 extension.
void plp_rms_i8s_rv32im(const int8_t restrict pSrc, uint32_t blockSize, int32_t restrict pRes)
RMS value of a 8-bit integer vector for RV32IM extension.
void plp_rms_i8s_xpulpv2(const int8_t restrict pSrc, uint32_t blockSize, int32_t restrict pRes)
RMS value of a 8-bit integer vector for XPULPV2 extension.
void plp_rms_q16s_rv32im(const int16_t restrict pSrc, uint32_t blockSize, uint32_t fracBits, int16_t restrict pRes)
RMS value of a 16-bit fixed point vector for RV32IM extension.
void plp_rms_q16s_xpulpv2(const int16_t restrict pSrc, uint32_t blockSize, uint32_t fracBits, int16_t restrict pRes)
RMS value of a 16-bit fixed point vector for XPULPV2 extension.
void plp_rms_q32s_rv32im(const int32_t restrict pSrc, uint32_t blockSize, uint32_t fracBits, int32_t restrict pRes)
RMS value of a 32-bit fixed point vector for RV32IM extension.
void plp_rms_q32s_xpulpv2(const int32_t restrict pSrc, uint32_t blockSize, uint32_t fracBits, int32_t restrict pRes)
RMS value of a 32-bit fixed point vector for XPULPV2 extension.
void plp_rms_q8s_rv32im(const int8_t restrict pSrc, uint32_t blockSize, uint32_t fracBits, int8_t restrict pRes)
RMS value of a 8-bit fixed point vector for RV32IM extension.
void plp_rms_q8s_xpulpv2(const int8_t restrict pSrc, uint32_t blockSize, uint32_t fracBits, int8_t restrict pRes)
RMS value of a 8-bit fixed point vector for XPULPV2 extension.

Detailed Description

Calculates the RMS value of the input vector. There are separate functions for floating point, integer, and fixed point 32- 16- 8-bit data types. For lower precision integers (16- and 8-bit), functions exploiting SIMD instructions are provided.

The naming scheme of the functions follows the following pattern (for example plp_dot_prod_i32s): _ _ _ , with

data type = {f, i, q} respectively for floats, integers, fixed points

precision = {32, 16, 8} bits

method = {s, p} respectively meaning single core or parallel multicore implementation.

isa extension = rv32im, xpulpv2, etc. of which rv32im is the most general one.

Functions Documentation

function plp_rms_f32s_xpulpv2

void plp_rms_f32s_xpulpv2(
    const float *__restrict__ pSrc,
    uint32_t blockSize,
    float *__restrict__ pRes
)

RMS value of a 32-bit float vector for XPULPV2 extension.

Parameters:

  • pSrc points to the input vector
  • blockSize number of samples in input vector
  • pRes RMS value returned here

Return: none

Kernel for Statisical standard deviation of a 32-bit float vector.

function plp_rms_i16s_rv32im

void plp_rms_i16s_rv32im(
    const int16_t *__restrict__ pSrc,
    uint32_t blockSize,
    int32_t *__restrict__ pRes
)

RMS value of a 16-bit integer vector for RV32IM extension.

Parameters:

  • pSrc points to the input vector
  • blockSize number of samples in input vector
  • pRes RMS value returned here

Return: none

function plp_rms_i16s_xpulpv2

void plp_rms_i16s_xpulpv2(
    const int16_t *__restrict__ pSrc,
    uint32_t blockSize,
    int32_t *__restrict__ pRes
)

RMS value of a 16-bit integer vector for XPULPV2 extension.

Parameters:

  • pSrc points to the input vector
  • blockSize number of samples in input vector
  • pRes RMS value returned here

Return: none

function plp_rms_i32s_rv32im

void plp_rms_i32s_rv32im(
    const int32_t *__restrict__ pSrc,
    uint32_t blockSize,
    int32_t *__restrict__ pRes
)

RMS value of a 32-bit integer vector for RV32IM extension.

Parameters:

  • pSrc points to the input vector
  • blockSize number of samples in input vector
  • pRes RMS value returned here

Return: none

function plp_rms_i32s_xpulpv2

void plp_rms_i32s_xpulpv2(
    const int32_t *__restrict__ pSrc,
    uint32_t blockSize,
    int32_t *__restrict__ pRes
)

RMS value of a 32-bit integer vector for XPULPV2 extension.

Parameters:

  • pSrc points to the input vector
  • blockSize number of samples in input vector
  • pRes RMS value returned here

Return: none

function plp_rms_i8s_rv32im

void plp_rms_i8s_rv32im(
    const int8_t *__restrict__ pSrc,
    uint32_t blockSize,
    int32_t *__restrict__ pRes
)

RMS value of a 8-bit integer vector for RV32IM extension.

Parameters:

  • pSrc points to the input vector
  • blockSize number of samples in input vector
  • pRes RMS value returned here

Return: none

function plp_rms_i8s_xpulpv2

void plp_rms_i8s_xpulpv2(
    const int8_t *__restrict__ pSrc,
    uint32_t blockSize,
    int32_t *__restrict__ pRes
)

RMS value of a 8-bit integer vector for XPULPV2 extension.

Parameters:

  • pSrc points to the input vector
  • blockSize number of samples in input vector
  • pRes RMS value returned here

Return: none

function plp_rms_q16s_rv32im

void plp_rms_q16s_rv32im(
    const int16_t *__restrict__ pSrc,
    uint32_t blockSize,
    uint32_t fracBits,
    int16_t *__restrict__ pRes
)

RMS value of a 16-bit fixed point vector for RV32IM extension.

Parameters:

  • pSrc points to the input vector
  • blockSize number of samples in input vector
  • pRes RMS value returned here

Return: none

Statisical standard deviation of a 16-bit fixed point vector for RV32IM extension.

function plp_rms_q16s_xpulpv2

void plp_rms_q16s_xpulpv2(
    const int16_t *__restrict__ pSrc,
    uint32_t blockSize,
    uint32_t fracBits,
    int16_t *__restrict__ pRes
)

RMS value of a 16-bit fixed point vector for XPULPV2 extension.

Parameters:

  • pSrc points to the input vector
  • blockSize number of samples in input vector
  • pRes RMS value returned here

Return: none

Statisical standard deviation of a 16-bit fixed point vector for XPULPV2 extension.

function plp_rms_q32s_rv32im

void plp_rms_q32s_rv32im(
    const int32_t *__restrict__ pSrc,
    uint32_t blockSize,
    uint32_t fracBits,
    int32_t *__restrict__ pRes
)

RMS value of a 32-bit fixed point vector for RV32IM extension.

Parameters:

  • pSrc points to the input vector
  • blockSize number of samples in input vector
  • pRes RMS value returned here

Return: none

Statisical standard deviation of a 32-bit fixed point vector for RV32IM extension.

function plp_rms_q32s_xpulpv2

void plp_rms_q32s_xpulpv2(
    const int32_t *__restrict__ pSrc,
    uint32_t blockSize,
    uint32_t fracBits,
    int32_t *__restrict__ pRes
)

RMS value of a 32-bit fixed point vector for XPULPV2 extension.

Parameters:

  • pSrc points to the input vector
  • blockSize number of samples in input vector
  • pRes RMS value returned here

Return: none

Statisical standard deviation of a 32-bit fixed point vector for XPULPV2 extension.

function plp_rms_q8s_rv32im

void plp_rms_q8s_rv32im(
    const int8_t *__restrict__ pSrc,
    uint32_t blockSize,
    uint32_t fracBits,
    int8_t *__restrict__ pRes
)

RMS value of a 8-bit fixed point vector for RV32IM extension.

Parameters:

  • pSrc points to the input vector
  • blockSize number of samples in input vector
  • pRes RMS value returned here

Return: none

Statisical standard deviation of a 8-bit fixed point vector for RV32IM extension.

function plp_rms_q8s_xpulpv2

void plp_rms_q8s_xpulpv2(
    const int8_t *__restrict__ pSrc,
    uint32_t blockSize,
    uint32_t fracBits,
    int8_t *__restrict__ pRes
)

RMS value of a 8-bit fixed point vector for XPULPV2 extension.

Parameters:

  • pSrc points to the input vector
  • blockSize number of samples in input vector
  • pRes RMS value returned here

Return: none

Statisical standard deviation of a 8-bit fixed point vector for XPULPV2 extension.


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