Runtime  Version 1.0
PULP Kernel Library
 All Files Functions Typedefs Groups Pages

Functions

int __builtin_pulp_dotsp2 (v2s x, v2s y)
 Dot product between 2 vectors of 2 shorts. More...
 
int __builtin_pulp_dotspsc2 (v2s x, short int y)
 Dot product between 1 vectors of 2 shorts and a replicated short scalar. More...
 
int __builtin_pulp_dotsp4 (v4s x, v4s y)
 Dot product between 2 vectors of 4 bytes. More...
 
int __builtin_pulp_dotspsc4 (v4s x, signed char y)
 Dot product between a vector of 4 bytes and a replicated byte scalar. More...
 
unsigned int __builtin_pulp_dotup2 (v2u x, v2u y)
 Dot product between 2 vectors of 2 unsigned shorts. More...
 
unsigned int __builtin_pulp_dotupsc2 (v2u x, unsigned short int y)
 Dot product between 1 vector of 2 unsigned shorts and a replicated unsigned short scalar. More...
 
unsigned int __builtin_pulp_dotup4 (v4u x, v4u y)
 Dot product between 2 vectors of 4 unsigned bytes. More...
 
unsigned int __builtin_pulp_dotupsc4 (v4u x, unsigned char y)
 Dot product between 1 vector of 4 unsigned bytes and an unsigned scalar byte replicated 4 times. More...
 
int __builtin_pulp_dotusp2 (v2u x, v2s y)
 Dot product between a vector of 2 unsigned shorts and a vector of 2 signed shorts. More...
 
int __builtin_pulp_dotuspsc2 (v2u x, short int y)
 Dot product between a vector of 2 unsigned shorts and a signed short scalar replicated 2 times. More...
 
int __builtin_pulp_dotusp4 (v4u x, v4s y)
 Dot product between 1 vector of 4 unsigned bytes and 1 vector of 4 signed bytes. More...
 
int __builtin_pulp_dotuspsc4 (v4u x, signed char y)
 Dot product between 1 vector of 4 unsigned bytes and one scalar unsigned byte replicated 4 times. More...
 
int __builtin_pulp_sdotsp2 (v2s x, v2s y, int z)
 Dot products between 2 vectors of 2 shorts, accumulates result. More...
 
int __builtin_pulp_sdotspsc2 (v2s x, short int y, int z)
 Dot products between 1 vectors of 2 shorts and a replicated short scalar, accumulates result. More...
 
int __builtin_pulp_sdotsp4 (v4s x, v4s y, int z)
 Dot product between 2 vectors of 4 bytes, accumulates result. More...
 
int __builtin_pulp_sdotspsc4 (v4s x, char y, int z)
 Dot product between a vector of 4 bytes and a replicated byte scalar, accumulates the result. More...
 
unsigned int __builtin_pulp_sdotup2 (v2u x, v2u y, unsigned int z)
 Dot product between 2 vectors of 2 unsigned shorts, accumulates the result. More...
 
unsigned int __builtin_pulp_sdotupsc2 (v2u x, unsigned short int y, unsigned int z)
 Dot product between 1 vector of 2 unsigned shorts and a replicated unsigned short scalar, accumulates the result. More...
 
unsigned int __builtin_pulp_sdotup4 (v4u x, v4u y, unsigned int z)
 Dot product between 2 vectors of 4 unsigned bytes, accumulates the result. More...
 
unsigned int __builtin_pulp_sdotupsc4 (v4u x, unsigned short int y, unsigned int z)
 Dot product between 1 vector of 4 unsigned bytes and an unsigned scalar byte replicated 4 times, accumulates the result. More...
 
int __builtin_pulp_sdotusp2 (v2u x, v2s y, int z)
 Dot product between a vector of 2 unsigned shorts and a vector of 2 signed shorts, accumulates the result. More...
 
int __builtin_pulp_sdotuspsc2 (v2s x, short int y, int z)
 Dot product between a vector of 2 unsigned shorts and a signed short scalar replicated 2 times, accumulates the result. More...
 
int __builtin_pulp_sdotusp4 (v4u x, v4s y, int z)
 Dot product between 1 vector of 4 unsigned bytes and 1 vector of 4 signed bytes, accumulates the result. More...
 
int __builtin_pulp_sdotuspsc4 (v4u x, short int y, int z)
 Dot product between 1 vector of 4 unsigned bytes and one scalar unsigned byte replicated 4 times, accumulates the result. More...
 

Description

Function Documentation

int __builtin_pulp_dotsp2 ( v2s  x,
v2s  y 
)

Dot product between 2 vectors of 2 shorts.

Returns: ((short)(x)[0]*(short)(y)[0] + (short)(x)[1]*(short)(y)[1])

Available macros:

    gap8_dotp2(x, y)
    __DOTP2(x, y)
Parameters
xA vector of 2 shorts
yA vector of 2 shorts

Referenced by __DOTP2(), and gap8_dotp2().

int __builtin_pulp_dotsp4 ( v4s  x,
v4s  y 
)

Dot product between 2 vectors of 4 bytes.

Returns: ((char)(x)[0]*(char)(y)[0] + (char)(x)[1]*(char)(y)[1] + (char)(x)[2]*(char)(y)[2] + (char)(x)[3]*(char)(y)[3])

Available macros:

    gap8_dotp4(x, y)
    __DOTP4(x, y)
Parameters
xA vector of 4 bytes
yA vector of 4 bytes

Referenced by __DOTP4(), and gap8_dotp4().

int __builtin_pulp_dotspsc2 ( v2s  x,
short int  y 
)

Dot product between 2 vectors of 2 shorts and a replicated short scalar.

Returns: ((short)(x)[0]*(short)(y) + (short)(x)[1]*(short)(y))

Available macros:

    gap8_dotpsc2(x, y)
    __DOTPSC2(x, y)
Parameters
xA vector of 2 shorts
yA short scalar, will be replicated 2 times

Referenced by __DOTPSC2(), and gap8_dotpsc2().

int __builtin_pulp_dotspsc4 ( v4s  x,
signed char  y 
)

Dot product between a vector of 4 bytes and a replicated byte scalar.

Returns: ((char)(x)[0]*(char)(y) + (char)(x)[1]*(char)(y) + (char)(x)[2]*(char)(y) + (char)(x)[3]*(char)(y))

Available macros:

    gap8_dotpsc4(x, y)
    __DOTPSC4(x, y)
Parameters
xa Vector of 4 bytes
yA byte scalar, will be replicated 4 times

Referenced by __DOTPSC4(), and gap8_dotpsc4().

unsigned int __builtin_pulp_dotup2 ( v2u  x,
v2u  y 
)

Dot product between 2 vectors of 2 unsigned shorts.

Returns: ((unsigned short)(x)[0]*(unsigned short)(y)[0] + (unsigned short)(x)[1]*(unsigned short)(y)[1])

Available macros:

    gap8_dotup2(x, y)
    __DOTPU2(x, y)
Parameters
xA vector of 2 unsigned shorts
yA vector of 2 unsigned shorts

Referenced by __DOTPU2(), and gap8_dotpu2().

unsigned int __builtin_pulp_dotup4 ( v4u  x,
v4u  y 
)

Dot product between 2 vectors of 4 unsigned bytes.

Returns: ((unsigned char)(x)[0]*(unsigned char)(y)[0] + (unsigned char)(x)[1]*(unsigned char)(y)[1] + (unsigned char)(x)[2]*(unsigned char)(y)[2] + (unsigned char)(x)[3]*(unsigned char)(y)[3])

Available macros:

    gap8_dotpu4(x, y)
    __DOTPU4(x, y)
Parameters
xA vector of 4 unsigned bytes
yAn unsigned byte scalar, will be replicated 4 times

Referenced by __DOTPU4(), and gap8_dotpu4().

unsigned int __builtin_pulp_dotupsc2 ( v2u  x,
unsigned short int  y 
)

Dot product between 1 vector of 2 unsigned shorts and a replicated unsigned short scalar.

Returns: ((unsigned short)(x)[0]*(unsigned short)(y) + (unsigned short)(x)[1]*(unsigned short)(y))

Available macros:

    gap8_dotpusc2(x, y)
    __DOTPUSC2(x, y)
Parameters
xA vector of 2 unsigned shorts
yAn unsigned short scalar, will be replicated 2 times

Referenced by __DOTPUSC2(), and gap8_dotpusc2().

unsigned int __builtin_pulp_dotupsc4 ( v4u  x,
unsigned char  y 
)

Dot product between 1 vector of 4 unsigned bytes and an unsigned scalar byte replicated 4 times.

Returns: ((unsigned char)(x)[0]*(unsigned char)(y) + (unsigned char)(x)[1]*(unsigned char)(y) + (unsigned char)(x)[2]*(unsigned char)(y) + (unsigned char)(x)[3]*(unsigned char)(y))

Available macros:

    gap8_dotpusc4(x, y)
    __DOTPUSC4(x, y)
Parameters
xA vector of 4 unsigned bytes
yAn unsigned byte scalar, will be replicated 4 times

Referenced by __DOTPUSC4(), and gap8_dotpusc4().

int __builtin_pulp_dotusp2 ( v2u  x,
v2s  y 
)

Dot product between a vector of 2 unsigned shorts and a vector of 2 signed shorts.

Returns: ((unsigned short)(x)[0]*(short)(y)[0] + (unsigned short)(x)[1]*(short)(y)[1])

Available macros:

    gap8_dotpus2(x, y)
    __DOTPUS2(x, y)
Parameters
xA vector of 2 unsigned shorts
yA vector of 2 signed shorts

Referenced by __DOTPUS2(), and gap8_dotpus2().

int __builtin_pulp_dotusp4 ( v4u  x,
v4s  y 
)

Dot product between 1 vector of 4 unsigned bytes and 1 vector of 4 signed bytes.

Returns: ((unsigned char)(x)[0]*(char)(y)[0] + (unsigned char)(x)[1]*(char)(y)[1] + (unsigned char)(x)[2]*(char)(y)[2] + (unsigned char)(x)[3]*(char)(y)[3])

Available macros:

    gap8_dotpus4(x, y)
    __DOTPUS4(x, y)
Parameters
xA vector of 4 unsigned bytes
yA vector of 4 signed bytes

Referenced by __DOTPUS4(), and gap8_dotpus4().

int __builtin_pulp_dotuspsc2 ( v2u  x,
short int  y 
)

Dot product between a vector of 2 unsigned shorts and a signed short scalar replicated 2 times.

Returns: ((unsigned short)(x)[0]*(short)(y) + (unsigned short)(x)[1]*(short)(y))

Available macros:

    gap8_dotpussc2(x, y)
    __DOTPUSSC2(x, y)
Parameters
xA vector of 2 unsigned shorts
yA short scalar, will be replicated 2 times

Referenced by __DOTPUSSC2(), and gap8_dotpussc2().

int __builtin_pulp_dotuspsc4 ( v4u  x,
signed char  y 
)

Dot product between 1 vector of 4 unsigned bytes and one scalar unsigned byte replicated 4 times.

Returns: ((unsigned char)(x)[0]*(char)(y) + (unsigned char)(x)[1]*(char)(y) + (unsigned char)(x)[2]*(char)(y) + (unsigned char)(x)[3]*(char)(y))

Available macros:

    gap8_dotpussc4(x, y)
    __DOTPUSSC4(x, y)
Parameters
xA vector of 4 unsigned bytes
yA signed byte scalar, will be replicated 4 times

Referenced by __DOTPUSSC4(), and gap8_dotpussc4().

int __builtin_pulp_sdotsp2 ( v2s  x,
v2s  y,
int  z 
)

Dot products between 2 vectors of 2 shorts, accumulates result.

Returns: z + ((x)[0]*(y)[0] + (x)[1]*(y)[1])

Available macros:

    gap8_sumdotp2(x, y, z)
    __SUMDOTP2(x, y, z)
Parameters
xA vector of 2 shorts
yA vector of 2 shorts
zThe accumulator

Referenced by __SUMDOTP2(), and gap8_sumdotp2().

int __builtin_pulp_sdotsp4 ( v4s  x,
v4s  y,
int  z 
)

Dot product between 2 vectors of 4 bytes, accumulates result.

Returns: z + ((char)(x)[0]*(char)(y)[0] + (char)(x)[1]*(char)(y)[1] + (char)(x)[2]*(char)(y)[2] + (char)(x)[3]*(char)(y)[3])

Available macros:

    gap8_sumdotp4(x, y, z)
    __SUMDOTP4(x, y, z)
Parameters
xA vector of 4 bytes
yA vector of 4 bytes
zThe accumulator

Referenced by __SUMDOTP4(), and gap8_sumdotp4().

int __builtin_pulp_sdotspsc2 ( v2s  x,
short int  y,
int  z 
)

Dot products between 2 vectors of 2 shorts and a replicated short scalar, accumulates result.

Returns: z + ((x)[0]*(y) + (x)[1]*(y))

Available macros:

    gap8_sumdotpsc2(x, y, z)
    __SUMDOTPSC2(x, y, z)
Parameters
xA vector of 2 shorts
yA short scalar, will be replicated 2 times
zThe accumulator

Referenced by __SUMDOTPSC2(), and gap8_sumdotpsc2().

int __builtin_pulp_sdotspsc4 ( v4s  x,
char  y,
int  z 
)

Dot product between a vector of 4 bytes and a replicated byte scalar, accumulates the result.

Returns: z + ((char)(x)[0]*(char)(y) + (char)(x)[1]*(char)(y) + (char)(x)[2]*(char)(y) + (char)(x)[3]*(char)(y))

Available macros:

    gap8_sumdotpsc4(x, y, z)
    __SUMDOTPSC4(x, y, z)
Parameters
xA vector of 4 bytes
yA byte scalar, will be replicated 4 times
zThe accumulator

Referenced by __SUMDOTPSC4(), and gap8_sumdotpsc4().

unsigned int __builtin_pulp_sdotup2 ( v2u  x,
v2u  y,
unsigned int  z 
)

Dot product between 2 vectors of 2 unsigned shorts, accumulates the result.

Returns: z + ((unsigned short)(x)[0]*(unsigned short)(y)[0] + (unsigned short)(x)[1]*(unsigned short)(y)[1])

Available macros:

    gap8_sumdotup2(x, y, z)
    __SUMDOTPU2(x, y, z)
Parameters
xA vector of 2 unsigned shorts
yA vector of 2 unsigned shorts
zThe accumulator

Referenced by __SUMDOTPU2(), and gap8_sumdotpu2().

unsigned int __builtin_pulp_sdotup4 ( v4u  x,
v4u  y,
unsigned int  z 
)

Dot product between 2 vectors of 4 unsigned bytes, accumulates the result.

Returns: z + ((unsigned char)(x)[0]*(unsigned char)(y)[0] + (unsigned char)(x)[1]*(unsigned char)(y)[1] + (unsigned char)(x)[2]*(unsigned char)(y)[2] + (unsigned char)(x)[3]*(unsigned char)(y)[3])

Available macros:

    gap8_sumdotpu4(x, y, z) 
    __SUMDOTPU4(x, y, z)
Parameters
xA vector of 4 unsigned bytes
yA vector of 4 unsigned bytes
zThe accumulator

Referenced by __SUMDOTPU4(), and gap8_sumdotpu4().

unsigned int __builtin_pulp_sdotupsc2 ( v2u  x,
unsigned short int  y,
unsigned int  z 
)

Dot product between 1 vector of 2 unsigned shorts and a replicated unsigned short scalar, accumulates the result.

Returns: z + ((unsigned short)(x)[0]*(unsigned short)(y) + (unsigned short)(x)[1]*(unsigned short)(y))

Available macros:

    gap8_sumdotpusc2(x, y, z)
    __SUMDOTPUSC2(x, y, z)
Parameters
xA vector of 2 unsigned shorts
yAn unsigned short scalar, will be replicated 2 times
zThe accumulator

Referenced by __SUMDOTPUSC2(), and gap8_sumdotpusc2().

unsigned int __builtin_pulp_sdotupsc4 ( v4u  x,
unsigned short int  y,
unsigned int  z 
)

Dot product between 1 vector of 4 unsigned bytes and an unsigned scalar byte replicated 4 times, accumulates the result.

Returns: z + ((unsigned char)(x)[0]*(unsigned char)(y) + (unsigned char)(x)[1]*(unsigned char)(y) + (unsigned char)(x)[2]*(unsigned char)(y) + (unsigned char)(x)[3]*(unsigned char)(y))

Available macros:

    gap8_sumdotpusc4(x, y, z)
    __SUMDOTPUSC4(x, y, z)
Parameters
xA vector of 4 unsigned bytes
yAn unsigned scalar byte, will be replicated 4 times
zThe accumulator

Referenced by __SUMDOTPUSC4(), and gap8_sumdotpusc4().

int __builtin_pulp_sdotusp2 ( v2u  x,
v2s  y,
int  z 
)

Dot product between a vector of 2 unsigned shorts and a vector of 2 signed shorts, accumulates the result.

Returns: z + ((unsigned short)(x)[0]*(short)(y)[0] + (unsigned short)(x)[1]*(short)(y)[1])

Available macros:

    gap8_sumdotpus2(x, y, z)
    __SUMDOTPUS2(x, y, z)
Parameters
xA vector of 2 unsigned shorts
yA vector of 2 signed shorts
zThe accumulator

Referenced by __SUMDOTPUS2(), and gap8_sumdotpus2().

int __builtin_pulp_sdotusp4 ( v4u  x,
v4s  y,
int  z 
)

Dot product between 1 vector of 4 unsigned bytes and 1 vector of 4 signed bytes, accumulates the result.

Returns: z + ((unsigned char)(x)[0]*(char)(y)[0] + (unsigned char)(x)[1]*(char)(y)[1] + (unsigned char)(x)[2]*(char)(y)[2] + (unsigned char)(x)[3]*(char)(y)[3])

Available macros:

    gap8_sumdotpus4(x, y, z) 
    __SUMDOTPUS4(x, y, z)
Parameters
xA vector of 4 unsigned bytes
yA vector of 4 signed bytes
zThe accumulator

Referenced by __SUMDOTPUS4(), and gap8_sumdotpus4().

int __builtin_pulp_sdotuspsc2 ( v2s  x,
short int  y,
int  z 
)

Dot product between a vector of 2 unsigned shorts and a signed short scalar replicated 2 times, accumulates the result.

Returns: z + ((unsigned short)(x)[0]*(short)(y) + (unsigned short)(x)[1]*(short)(y))

Available macros:

    gap8_sumdotpussc2(x, y, z)
    __SUMDOTPUSSC2(x, y, z)
Parameters
xA vector of 2 unsigned shorts
yA signed scalar short, will be replicated 2 times
zThe accumulator

Referenced by __SUMDOTPUSSC2(), and gap8_sumdotpussc2().

int __builtin_pulp_sdotuspsc4 ( v4u  x,
short int  y,
int  z 
)

Dot product between 1 vector of 4 unsigned bytes and one scalar unsigned byte replicated 4 times, accumulates the result.

Returns: z + ((unsigned char)(x)[0]*(char)(y) + (unsigned char)(x)[1]*(char)(y) + (unsigned char)(x)[2]*(char)(y) + (unsigned char)(x)[3]*(char)(y))

Available macros:

    gap8_sumdotpussc4(x, y, z) 
    __SUMDOTPUSSC4(x, y, z)
Parameters
xA vector of 4 unsigned bytes
yA signed scalar byte, will be replicated 4 times
zThe accumulator

Referenced by __SUMDOTPUSSC4(), and gap8_sumdotpussc4().