• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef Py_OPCODE_H
2 #define Py_OPCODE_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 
7 #include "opcode_ids.h"
8 
9 
10 #define NB_ADD                                   0
11 #define NB_AND                                   1
12 #define NB_FLOOR_DIVIDE                          2
13 #define NB_LSHIFT                                3
14 #define NB_MATRIX_MULTIPLY                       4
15 #define NB_MULTIPLY                              5
16 #define NB_REMAINDER                             6
17 #define NB_OR                                    7
18 #define NB_POWER                                 8
19 #define NB_RSHIFT                                9
20 #define NB_SUBTRACT                             10
21 #define NB_TRUE_DIVIDE                          11
22 #define NB_XOR                                  12
23 #define NB_INPLACE_ADD                          13
24 #define NB_INPLACE_AND                          14
25 #define NB_INPLACE_FLOOR_DIVIDE                 15
26 #define NB_INPLACE_LSHIFT                       16
27 #define NB_INPLACE_MATRIX_MULTIPLY              17
28 #define NB_INPLACE_MULTIPLY                     18
29 #define NB_INPLACE_REMAINDER                    19
30 #define NB_INPLACE_OR                           20
31 #define NB_INPLACE_POWER                        21
32 #define NB_INPLACE_RSHIFT                       22
33 #define NB_INPLACE_SUBTRACT                     23
34 #define NB_INPLACE_TRUE_DIVIDE                  24
35 #define NB_INPLACE_XOR                          25
36 
37 #define NB_OPARG_LAST                           25
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 #endif /* !Py_OPCODE_H */
43