Skip to content

Sqrt Kernels

Module: Statistics Functions / Sqrt

Functions

Name
void plp_sqrt_f32s_rv32im(const float restrict pSrc, float restrict pRes)
Square root of a 32-bit floating point number for RV32IM.
void plp_sqrt_f32s_xpulpv2(const float restrict pSrc, float restrict pRes)
Square root of a 32-bit floating point number for XPULPV2 extension.
void plp_sqrt_q16s_rv32im(const int16_t restrict pSrc, const uint32_t fracBits, int16_t restrict pRes)
Square root of a 16-bit fixed point number for RV32IM extension.
void plp_sqrt_q16s_xpulpv2(const int16_t restrict pSrc, const uint32_t fracBits, int16_t restrict pRes)
Square root of a 16-bit fixed point number for XPULPV2 extension.
void plp_sqrt_q32s_rv32im(const int32_t restrict pSrc, const uint32_t fracBits, int32_t restrict pRes)
Square root of a 32-bit fixed point number for RV32IM extension.
void plp_sqrt_q32s_xpulpv2(const int32_t restrict pSrc, const uint32_t fracBits, int32_t restrict pRes)
Square root of a 32-bit fixed point number for XPULPV2 extension.

Functions Documentation

function plp_sqrt_f32s_rv32im

void plp_sqrt_f32s_rv32im(
    const float *__restrict__ pSrc,
    float *__restrict__ pRes
)

Square root of a 32-bit floating point number for RV32IM.

Parameters:

  • pSrc points to the input vector
  • pRes Square root returned here

Return: none

function plp_sqrt_f32s_xpulpv2

void plp_sqrt_f32s_xpulpv2(
    const float *__restrict__ pSrc,
    float *__restrict__ pRes
)

Square root of a 32-bit floating point number for XPULPV2 extension.

Parameters:

  • pSrc points to the input vector
  • pRes Square root returned here

Return: none

Kernel for square root of a 32-bit floating point number.

function plp_sqrt_q16s_rv32im

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

Square root of a 16-bit fixed point number for RV32IM extension.

Parameters:

  • pSrc points to the input vector
  • pRes Square root returned here

Return: none

Square root of a 16-bit fixed point number for XPULPV2 extension.

function plp_sqrt_q16s_xpulpv2

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

Square root of a 16-bit fixed point number for XPULPV2 extension.

Parameters:

  • pSrc points to the input vector
  • pRes Square root returned here

Return: none

function plp_sqrt_q32s_rv32im

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

Square root of a 32-bit fixed point number for RV32IM extension.

Parameters:

  • pSrc points to the input vector
  • pRes Square root returned here

Return: none

Square root of a 32-bit fixed point number for XPULPV2 extension.

function plp_sqrt_q32s_xpulpv2

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

Square root of a 32-bit fixed point number for XPULPV2 extension.

Parameters:

  • pSrc points to the input vector
  • pRes Square root returned here

Return: none


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