FFmpeg
Macros
loongson_intrinsics.h File Reference

Go to the source code of this file.

Macros

#define LOONGSON_INTRINSICS_H
 
#define LSOM_VERSION_MAJOR   1
 MAJOR version: Macro usage changes. More...
 
#define LSOM_VERSION_MINOR   1
 
#define LSOM_VERSION_MICRO   0
 
#define DUP2_ARG1(_INS, _IN0, _IN1, _OUT0, _OUT1)
 
#define DUP2_ARG2(_INS, _IN0, _IN1, _IN2, _IN3, _OUT0, _OUT1)
 
#define DUP2_ARG3(_INS, _IN0, _IN1, _IN2, _IN3, _IN4, _IN5, _OUT0, _OUT1)
 
#define DUP4_ARG1(_INS, _IN0, _IN1, _IN2, _IN3, _OUT0, _OUT1, _OUT2, _OUT3)
 
#define DUP4_ARG2(_INS, _IN0, _IN1, _IN2, _IN3, _IN4, _IN5, _IN6, _IN7, _OUT0, _OUT1, _OUT2, _OUT3)
 
#define DUP4_ARG3(_INS, _IN0, _IN1, _IN2, _IN3, _IN4, _IN5, _IN6, _IN7, _IN8, _IN9, _IN10, _IN11, _OUT0, _OUT1, _OUT2, _OUT3)
 
#define VECT_PRINT(RTYPE, element_num, in0, enter)
 

Macro Definition Documentation

◆ LOONGSON_INTRINSICS_H

#define LOONGSON_INTRINSICS_H

Definition at line 41 of file loongson_intrinsics.h.

◆ LSOM_VERSION_MAJOR

#define LSOM_VERSION_MAJOR   1

MAJOR version: Macro usage changes.

MINOR version: Add new functions, or bug fixes. MICRO version: Comment changes or implementation changes.

Definition at line 48 of file loongson_intrinsics.h.

◆ LSOM_VERSION_MINOR

#define LSOM_VERSION_MINOR   1

Definition at line 49 of file loongson_intrinsics.h.

◆ LSOM_VERSION_MICRO

#define LSOM_VERSION_MICRO   0

Definition at line 50 of file loongson_intrinsics.h.

◆ DUP2_ARG1

#define DUP2_ARG1 (   _INS,
  _IN0,
  _IN1,
  _OUT0,
  _OUT1 
)
Value:
{ \
_OUT0 = _INS(_IN0); \
_OUT1 = _INS(_IN1); \
}

Definition at line 52 of file loongson_intrinsics.h.

◆ DUP2_ARG2

#define DUP2_ARG2 (   _INS,
  _IN0,
  _IN1,
  _IN2,
  _IN3,
  _OUT0,
  _OUT1 
)
Value:
{ \
_OUT0 = _INS(_IN0, _IN1); \
_OUT1 = _INS(_IN2, _IN3); \
}

Definition at line 58 of file loongson_intrinsics.h.

◆ DUP2_ARG3

#define DUP2_ARG3 (   _INS,
  _IN0,
  _IN1,
  _IN2,
  _IN3,
  _IN4,
  _IN5,
  _OUT0,
  _OUT1 
)
Value:
{ \
_OUT0 = _INS(_IN0, _IN1, _IN2); \
_OUT1 = _INS(_IN3, _IN4, _IN5); \
}

Definition at line 64 of file loongson_intrinsics.h.

◆ DUP4_ARG1

#define DUP4_ARG1 (   _INS,
  _IN0,
  _IN1,
  _IN2,
  _IN3,
  _OUT0,
  _OUT1,
  _OUT2,
  _OUT3 
)
Value:
{ \
DUP2_ARG1(_INS, _IN0, _IN1, _OUT0, _OUT1); \
DUP2_ARG1(_INS, _IN2, _IN3, _OUT2, _OUT3); \
}

Definition at line 70 of file loongson_intrinsics.h.

◆ DUP4_ARG2

#define DUP4_ARG2 (   _INS,
  _IN0,
  _IN1,
  _IN2,
  _IN3,
  _IN4,
  _IN5,
  _IN6,
  _IN7,
  _OUT0,
  _OUT1,
  _OUT2,
  _OUT3 
)
Value:
{ \
DUP2_ARG2(_INS, _IN0, _IN1, _IN2, _IN3, _OUT0, _OUT1); \
DUP2_ARG2(_INS, _IN4, _IN5, _IN6, _IN7, _OUT2, _OUT3); \
}

Definition at line 76 of file loongson_intrinsics.h.

◆ DUP4_ARG3

#define DUP4_ARG3 (   _INS,
  _IN0,
  _IN1,
  _IN2,
  _IN3,
  _IN4,
  _IN5,
  _IN6,
  _IN7,
  _IN8,
  _IN9,
  _IN10,
  _IN11,
  _OUT0,
  _OUT1,
  _OUT2,
  _OUT3 
)
Value:
{ \
DUP2_ARG3(_INS, _IN0, _IN1, _IN2, _IN3, _IN4, _IN5, _OUT0, _OUT1); \
DUP2_ARG3(_INS, _IN6, _IN7, _IN8, _IN9, _IN10, _IN11, _OUT2, _OUT3); \
}

Definition at line 83 of file loongson_intrinsics.h.

◆ VECT_PRINT

#define VECT_PRINT (   RTYPE,
  element_num,
  in0,
  enter 
)
Value:
{ \
RTYPE _tmp0 = (RTYPE)in0; \
int _i = 0; \
if (enter) printf("\nVP:"); \
for (_i = 0; _i < element_num; _i++) printf("%d,", _tmp0[_i]); \
}

Definition at line 1939 of file loongson_intrinsics.h.

printf
printf("static const uint8_t my_array[100] = {\n")