|
|
@ -33,32 +33,32 @@ |
|
|
|
|
|
|
|
#define _AXIS(A) (A##_AXIS) |
|
|
|
|
|
|
|
#define _XMIN_ 100 |
|
|
|
#define _YMIN_ 200 |
|
|
|
#define _ZMIN_ 300 |
|
|
|
#define _IMIN_ 500 |
|
|
|
#define _JMIN_ 600 |
|
|
|
#define _KMIN_ 700 |
|
|
|
#define _XMAX_ 101 |
|
|
|
#define _YMAX_ 201 |
|
|
|
#define _ZMAX_ 301 |
|
|
|
#define _IMAX_ 501 |
|
|
|
#define _JMAX_ 601 |
|
|
|
#define _KMAX_ 701 |
|
|
|
#define _XDIAG_ 102 |
|
|
|
#define _YDIAG_ 202 |
|
|
|
#define _ZDIAG_ 302 |
|
|
|
#define _IDIAG_ 502 |
|
|
|
#define _JDIAG_ 602 |
|
|
|
#define _KDIAG_ 702 |
|
|
|
#define _E0DIAG_ 400 |
|
|
|
#define _E1DIAG_ 401 |
|
|
|
#define _E2DIAG_ 402 |
|
|
|
#define _E3DIAG_ 403 |
|
|
|
#define _E4DIAG_ 404 |
|
|
|
#define _E5DIAG_ 405 |
|
|
|
#define _E6DIAG_ 406 |
|
|
|
#define _E7DIAG_ 407 |
|
|
|
#define _XMIN_ 0x11 |
|
|
|
#define _YMIN_ 0x12 |
|
|
|
#define _ZMIN_ 0x13 |
|
|
|
#define _IMIN_ 0x14 |
|
|
|
#define _JMIN_ 0x15 |
|
|
|
#define _KMIN_ 0x16 |
|
|
|
#define _XMAX_ 0x21 |
|
|
|
#define _YMAX_ 0x22 |
|
|
|
#define _ZMAX_ 0x23 |
|
|
|
#define _IMAX_ 0x24 |
|
|
|
#define _JMAX_ 0x25 |
|
|
|
#define _KMAX_ 0x26 |
|
|
|
#define _XDIAG_ 0x31 |
|
|
|
#define _YDIAG_ 0x32 |
|
|
|
#define _ZDIAG_ 0x33 |
|
|
|
#define _IDIAG_ 0x34 |
|
|
|
#define _JDIAG_ 0x35 |
|
|
|
#define _KDIAG_ 0x36 |
|
|
|
#define _E0DIAG_ 0xE0 |
|
|
|
#define _E1DIAG_ 0xE1 |
|
|
|
#define _E2DIAG_ 0xE2 |
|
|
|
#define _E3DIAG_ 0xE3 |
|
|
|
#define _E4DIAG_ 0xE4 |
|
|
|
#define _E5DIAG_ 0xE5 |
|
|
|
#define _E6DIAG_ 0xE6 |
|
|
|
#define _E7DIAG_ 0xE7 |
|
|
|
|
|
|
|
#define _FORCE_INLINE_ __attribute__((__always_inline__)) __inline__ |
|
|
|
#define FORCE_INLINE __attribute__((always_inline)) inline |
|
|
@ -251,6 +251,8 @@ |
|
|
|
memcpy(&a[0],&b[0],_MIN(sizeof(a),sizeof(b))); \ |
|
|
|
}while(0) |
|
|
|
|
|
|
|
#define CODE_11( A,B,C,D,E,F,G,H,I,J,K,...) A; B; C; D; E; F; G; H; I; J; K |
|
|
|
#define CODE_10( A,B,C,D,E,F,G,H,I,J,...) A; B; C; D; E; F; G; H; I; J |
|
|
|
#define CODE_9( A,B,C,D,E,F,G,H,I,...) A; B; C; D; E; F; G; H; I |
|
|
|
#define CODE_8( A,B,C,D,E,F,G,H,...) A; B; C; D; E; F; G; H |
|
|
|
#define CODE_7( A,B,C,D,E,F,G,...) A; B; C; D; E; F; G |
|
|
@ -286,6 +288,10 @@ |
|
|
|
#define GANG_N_1(N,K) _GANG_N(N,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K) |
|
|
|
|
|
|
|
// Macros for initializing arrays
|
|
|
|
#define LIST_20(A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,...) A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T |
|
|
|
#define LIST_19(A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,...) A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S |
|
|
|
#define LIST_18(A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,...) A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R |
|
|
|
#define LIST_17(A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,...) A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q |
|
|
|
#define LIST_16(A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,...) A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P |
|
|
|
#define LIST_15(A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,...) A,B,C,D,E,F,G,H,I,J,K,L,M,N,O |
|
|
|
#define LIST_14(A,B,C,D,E,F,G,H,I,J,K,L,M,N,...) A,B,C,D,E,F,G,H,I,J,K,L,M,N |
|
|
@ -502,6 +508,11 @@ |
|
|
|
#define INC_13 14 |
|
|
|
#define INC_14 15 |
|
|
|
#define INC_15 16 |
|
|
|
#define INC_16 17 |
|
|
|
#define INC_17 18 |
|
|
|
#define INC_18 19 |
|
|
|
#define INC_19 20 |
|
|
|
#define INC_20 21 |
|
|
|
#define INCREMENT_(n) INC_##n |
|
|
|
#define INCREMENT(n) INCREMENT_(n) |
|
|
|
|
|
|
|