PULP DSP  Version 1.0
Digital Signal Processing library for PULP processors (pulp-platform.org)
 All Classes Files Functions Groups Pages
Modules | Functions


 Vector Copy Kernels


void plp_copy_i32 (int32_t *__restrict__ pSrc, int32_t *__restrict__ pDst, uint32_t blockSize)
 Glue code for copying the elements of a 32-bit integer vector. More...

Detailed Description

Copies sample by sample from source vector to destination vector.

pDst[n] = pSrc[n];   0 <= n < blockSize.

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):

<pulp> _ <function name> _ <data type> <precision> <method> _ <isa extension>, with
data type = {f, i, q} respectively for floats, integers, fixed points
precision = {32, 16, 8} bits
method = {s, v, p} meaning single (or scalar, i.e. not using packed SIMD), vectorized (i.e. using SIMD instructions), and parallel (for multicore parallel computing), respectively.
isa extension = rv32im, xpulpv2, etc. of which rv32im is the most general one.

Function Documentation

void plp_copy_i32 ( int32_t *__restrict__  pSrc,
int32_t *__restrict__  pDst,
uint32_t  blockSize 

Glue code for copying the elements of a 32-bit integer vector.

[in]pSrcpoints to input vector
[out]pDstpoints to output vector
[in]blockSizenumber of samples in each vector