Compute Library
 19.11.1
repeat.h File Reference

Go to the source code of this file.

Macros

#define REPEAT_3_1(P_X, P_A, P_B, P_C)   P_X##_DEF(0, P_A, P_B, P_C)
 Macros that help in loop unrolling. More...
 
#define REPEAT_3_2(P_X, P_A, P_B, P_C)
 
#define REPEAT_3_3(P_X, P_A, P_B, P_C)
 
#define REPEAT_3_4(P_X, P_A, P_B, P_C)
 
#define REPEAT_3_5(P_X, P_A, P_B, P_C)
 
#define REPEAT_3_6(P_X, P_A, P_B, P_C)
 
#define REPEAT_3_7(P_X, P_A, P_B, P_C)
 
#define REPEAT_3_8(P_X, P_A, P_B, P_C)
 
#define REPEAT_3_9(P_X, P_A, P_B, P_C)
 
#define REPEAT_3_10(P_X, P_A, P_B, P_C)
 
#define REPEAT_3_11(P_X, P_A, P_B, P_C)
 
#define REPEAT_3_12(P_X, P_A, P_B, P_C)
 
#define REPEAT_3_13(P_X, P_A, P_B, P_C)
 
#define REPEAT_3_14(P_X, P_A, P_B, P_C)
 
#define REPEAT_3_15(P_X, P_A, P_B, P_C)
 
#define REPEAT_3_16(P_X, P_A, P_B, P_C)
 
#define REPEAT_DEF_3_N(P_NUM, P_OP, P_A, P_B, P_C)   REPEAT_3_##P_NUM(P_OP, P_A, P_B, P_C)
 
#define REPEAT_3_N(P_NUM, P_OP, P_A, P_B, P_C)   REPEAT_DEF_3_N(P_NUM, P_OP, P_A, P_B, P_C)
 
#define VAR_INIT_TO_CONST_DEF(ID, TYPE, VAR, VAL)   TYPE VAR##ID = VAL
 
#define REPEAT_VAR_INIT_TO_CONST(N, TYPE, VAR, VAL)   REPEAT_3_N(N, VAR_INIT_TO_CONST, TYPE, VAR, VAL)
 

Macro Definition Documentation

◆ REPEAT_3_1

#define REPEAT_3_1 (   P_X,
  P_A,
  P_B,
  P_C 
)    P_X##_DEF(0, P_A, P_B, P_C)

Macros that help in loop unrolling.

Definition at line 29 of file repeat.h.

◆ REPEAT_3_10

#define REPEAT_3_10 (   P_X,
  P_A,
  P_B,
  P_C 
)
Value:
P_X##_DEF(9, P_A, P_B, P_C); \
REPEAT_3_9(P_X, P_A, P_B, P_C)

Definition at line 54 of file repeat.h.

◆ REPEAT_3_11

#define REPEAT_3_11 (   P_X,
  P_A,
  P_B,
  P_C 
)
Value:
P_X##_DEF(A, P_A, P_B, P_C); \
REPEAT_3_10(P_X, P_A, P_B, P_C)

Definition at line 57 of file repeat.h.

◆ REPEAT_3_12

#define REPEAT_3_12 (   P_X,
  P_A,
  P_B,
  P_C 
)
Value:
P_X##_DEF(B, P_A, P_B, P_C); \
REPEAT_3_11(P_X, P_A, P_B, P_C)

Definition at line 60 of file repeat.h.

◆ REPEAT_3_13

#define REPEAT_3_13 (   P_X,
  P_A,
  P_B,
  P_C 
)
Value:
P_X##_DEF(C, P_A, P_B, P_C); \
REPEAT_3_12(P_X, P_A, P_B, P_C)

Definition at line 63 of file repeat.h.

◆ REPEAT_3_14

#define REPEAT_3_14 (   P_X,
  P_A,
  P_B,
  P_C 
)
Value:
P_X##_DEF(D, P_A, P_B, P_C); \
REPEAT_3_13(P_X, P_A, P_B, P_C)

Definition at line 66 of file repeat.h.

◆ REPEAT_3_15

#define REPEAT_3_15 (   P_X,
  P_A,
  P_B,
  P_C 
)
Value:
P_X##_DEF(E, P_A, P_B, P_C); \
REPEAT_3_14(P_X, P_A, P_B, P_C)

Definition at line 69 of file repeat.h.

◆ REPEAT_3_16

#define REPEAT_3_16 (   P_X,
  P_A,
  P_B,
  P_C 
)
Value:
P_X##_DEF(F, P_A, P_B, P_C); \
REPEAT_3_15(P_X, P_A, P_B, P_C)

Definition at line 72 of file repeat.h.

◆ REPEAT_3_2

#define REPEAT_3_2 (   P_X,
  P_A,
  P_B,
  P_C 
)
Value:
P_X##_DEF(1, P_A, P_B, P_C); \
REPEAT_3_1(P_X, P_A, P_B, P_C)

Definition at line 30 of file repeat.h.

◆ REPEAT_3_3

#define REPEAT_3_3 (   P_X,
  P_A,
  P_B,
  P_C 
)
Value:
P_X##_DEF(2, P_A, P_B, P_C); \
REPEAT_3_2(P_X, P_A, P_B, P_C)

Definition at line 33 of file repeat.h.

◆ REPEAT_3_4

#define REPEAT_3_4 (   P_X,
  P_A,
  P_B,
  P_C 
)
Value:
P_X##_DEF(3, P_A, P_B, P_C); \
REPEAT_3_3(P_X, P_A, P_B, P_C)

Definition at line 36 of file repeat.h.

◆ REPEAT_3_5

#define REPEAT_3_5 (   P_X,
  P_A,
  P_B,
  P_C 
)
Value:
P_X##_DEF(4, P_A, P_B, P_C); \
REPEAT_3_4(P_X, P_A, P_B, P_C)

Definition at line 39 of file repeat.h.

◆ REPEAT_3_6

#define REPEAT_3_6 (   P_X,
  P_A,
  P_B,
  P_C 
)
Value:
P_X##_DEF(5, P_A, P_B, P_C); \
REPEAT_3_5(P_X, P_A, P_B, P_C)

Definition at line 42 of file repeat.h.

◆ REPEAT_3_7

#define REPEAT_3_7 (   P_X,
  P_A,
  P_B,
  P_C 
)
Value:
P_X##_DEF(6, P_A, P_B, P_C); \
REPEAT_3_6(P_X, P_A, P_B, P_C)

Definition at line 45 of file repeat.h.

◆ REPEAT_3_8

#define REPEAT_3_8 (   P_X,
  P_A,
  P_B,
  P_C 
)
Value:
P_X##_DEF(7, P_A, P_B, P_C); \
REPEAT_3_7(P_X, P_A, P_B, P_C)

Definition at line 48 of file repeat.h.

◆ REPEAT_3_9

#define REPEAT_3_9 (   P_X,
  P_A,
  P_B,
  P_C 
)
Value:
P_X##_DEF(8, P_A, P_B, P_C); \
REPEAT_3_8(P_X, P_A, P_B, P_C)

Definition at line 51 of file repeat.h.

◆ REPEAT_3_N

#define REPEAT_3_N (   P_NUM,
  P_OP,
  P_A,
  P_B,
  P_C 
)    REPEAT_DEF_3_N(P_NUM, P_OP, P_A, P_B, P_C)

Definition at line 77 of file repeat.h.

◆ REPEAT_DEF_3_N

#define REPEAT_DEF_3_N (   P_NUM,
  P_OP,
  P_A,
  P_B,
  P_C 
)    REPEAT_3_##P_NUM(P_OP, P_A, P_B, P_C)

Definition at line 76 of file repeat.h.

◆ REPEAT_VAR_INIT_TO_CONST

#define REPEAT_VAR_INIT_TO_CONST (   N,
  TYPE,
  VAR,
  VAL 
)    REPEAT_3_N(N, VAR_INIT_TO_CONST, TYPE, VAR, VAL)

Definition at line 81 of file repeat.h.

◆ VAR_INIT_TO_CONST_DEF

#define VAR_INIT_TO_CONST_DEF (   ID,
  TYPE,
  VAR,
  VAL 
)    TYPE VAR##ID = VAL

Definition at line 80 of file repeat.h.