ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
vector.h File Reference

Go to the source code of this file.

Macros

#define JOIN_(a, b)
#define JOIN(a, b)
#define FN(name)
#define LANES   4
#define SET(n)
#define ADD(a, b)
#define SUB(a, b)
#define MUL(a, b)
#define DIV(a, n)
#define SHL(a, n)
#define SHR(a, n)
#define AND(a, b)
#define OR(a, b)
#define LT(a, b)
#define EQ(a, b)
#define BOTH(a, b)
#define SELECT(mask, a, b)
#define LOAD(p)
#define STORE(p, v)
#define BEGIN_BLOCK   size_t active = LANES
#define HAS_BLOCK   (count - i >= LANES)
#define ABS(v)
#define SQUARE(v)

Typedefs

ACDS Session Management Messages
typedef int32_t vec_t __attribute__((vector_size(4 *4)))
 SESSION_CREATED (PACKET_TYPE_ACIP_SESSION_CREATED) - Session created response.

Macro Definition Documentation

◆ ABS

#define ABS ( v)
Value:
SELECT(LT(v, SET(0)), SUB(SET(0), v), v)
#define SET(n)
Definition vector.h:57
#define SELECT(mask, a, b)
Definition vector.h:69
#define LT(a, b)
Definition vector.h:66
#define SUB(a, b)
Definition vector.h:59

Definition at line 75 of file vector.h.

◆ ADD

#define ADD ( a,
b )
Value:
((a) + (b))

Definition at line 58 of file vector.h.

Referenced by simd_halfblock_SIMD_CELL_ISA(), and simd_quantize_SIMD_CELL_ISA().

◆ AND

#define AND ( a,
b )
Value:
((a) & (b))

Definition at line 64 of file vector.h.

Referenced by simd_halfblock_SIMD_CELL_ISA(), and simd_quantize_SIMD_CELL_ISA().

◆ BEGIN_BLOCK

#define BEGIN_BLOCK   size_t active = LANES

◆ BOTH

#define BOTH ( a,
b )
Value:
((a) & (b))

Definition at line 68 of file vector.h.

Referenced by simd_halfblock_SIMD_CELL_ISA(), simd_lookup_SIMD_CELL_ISA(), and simd_run_SIMD_CELL_ISA().

◆ DIV

#define DIV ( a,
n )
Value:
((a) / SET(n))

Definition at line 61 of file vector.h.

Referenced by simd_quantize_SIMD_CELL_ISA().

◆ EQ

#define EQ ( a,
b )
Value:
((a) == (b))

Definition at line 67 of file vector.h.

Referenced by simd_halfblock_SIMD_CELL_ISA(), simd_quantize_SIMD_CELL_ISA(), and simd_run_SIMD_CELL_ISA().

◆ FN

#define FN ( name)
Value:
JOIN(name, SIMD_CELL_ISA)
#define JOIN(a, b)
Definition vector.h:5

Definition at line 6 of file vector.h.

◆ HAS_BLOCK

#define HAS_BLOCK   (count - i >= LANES)

◆ JOIN

#define JOIN ( a,
b )
Value:
JOIN_(a, b)
#define JOIN_(a, b)
Definition vector.h:4

Definition at line 5 of file vector.h.

◆ JOIN_

#define JOIN_ ( a,
b )
Value:
a##b

Definition at line 4 of file vector.h.

◆ LANES

#define LANES   4

◆ LOAD

#define LOAD ( p)

◆ LT

#define LT ( a,
b )
Value:
((a) < (b))

Definition at line 66 of file vector.h.

Referenced by simd_halfblock_SIMD_CELL_ISA(), simd_lookup_SIMD_CELL_ISA(), and simd_quantize_SIMD_CELL_ISA().

◆ MUL

#define MUL ( a,
b )
Value:
((a) * (b))

Definition at line 60 of file vector.h.

Referenced by simd_halfblock_SIMD_CELL_ISA(), and simd_quantize_SIMD_CELL_ISA().

◆ OR

#define OR ( a,
b )
Value:
((a) | (b))

Definition at line 65 of file vector.h.

Referenced by simd_pack_SIMD_CELL_ISA().

◆ SELECT

#define SELECT ( mask,
a,
b )
Value:
(((mask) & (a)) | (~(mask) & (b)))

Definition at line 69 of file vector.h.

Referenced by simd_halfblock_SIMD_CELL_ISA(), simd_lookup_SIMD_CELL_ISA(), and simd_quantize_SIMD_CELL_ISA().

◆ SET

#define SET ( n)

◆ SHL

#define SHL ( a,
n )
Value:
((a) << (n))

Definition at line 62 of file vector.h.

Referenced by simd_pack_SIMD_CELL_ISA().

◆ SHR

#define SHR ( a,
n )
Value:
((a) >> (n))

Definition at line 63 of file vector.h.

Referenced by simd_halfblock_SIMD_CELL_ISA(), and simd_quantize_SIMD_CELL_ISA().

◆ SQUARE

#define SQUARE ( v)
Value:
MUL(v, v)
#define MUL(a, b)
Definition vector.h:60

Definition at line 76 of file vector.h.

Referenced by simd_quantize_SIMD_CELL_ISA().

◆ STORE

#define STORE ( p,
v )

◆ SUB

#define SUB ( a,
b )
Value:
((a) - (b))

Definition at line 59 of file vector.h.

Referenced by simd_quantize_SIMD_CELL_ISA().