• Home
  • Raw
  • Download

Lines Matching refs:i

30 #define IMM_H(i)		((uintptr_t)(i)>>16)  argument
31 #define IMM_HA(i) (((uintptr_t)(i)>>16) + \ argument
32 (((uintptr_t)(i) & 0x8000) >> 15))
33 #define IMM_L(i) ((uintptr_t)(i) & 0xffff) argument
45 #define PPC_ADDI(d, a, i) EMIT(PPC_INST_ADDI | ___PPC_RT(d) | \ argument
46 ___PPC_RA(a) | IMM_L(i))
48 #define PPC_LI(r, i) PPC_ADDI(r, 0, i) argument
49 #define PPC_ADDIS(d, a, i) EMIT(PPC_INST_ADDIS | \ argument
50 ___PPC_RT(d) | ___PPC_RA(a) | IMM_L(i))
51 #define PPC_LIS(r, i) PPC_ADDIS(r, 0, i) argument
52 #define PPC_STD(r, base, i) EMIT(PPC_INST_STD | ___PPC_RS(r) | \ argument
53 ___PPC_RA(base) | ((i) & 0xfffc))
54 #define PPC_STDU(r, base, i) EMIT(PPC_INST_STDU | ___PPC_RS(r) | \ argument
55 ___PPC_RA(base) | ((i) & 0xfffc))
56 #define PPC_STW(r, base, i) EMIT(PPC_INST_STW | ___PPC_RS(r) | \ argument
57 ___PPC_RA(base) | IMM_L(i))
58 #define PPC_STWU(r, base, i) EMIT(PPC_INST_STWU | ___PPC_RS(r) | \ argument
59 ___PPC_RA(base) | IMM_L(i))
60 #define PPC_STH(r, base, i) EMIT(PPC_INST_STH | ___PPC_RS(r) | \ argument
61 ___PPC_RA(base) | IMM_L(i))
62 #define PPC_STB(r, base, i) EMIT(PPC_INST_STB | ___PPC_RS(r) | \ argument
63 ___PPC_RA(base) | IMM_L(i))
65 #define PPC_LBZ(r, base, i) EMIT(PPC_INST_LBZ | ___PPC_RT(r) | \ argument
66 ___PPC_RA(base) | IMM_L(i))
67 #define PPC_LD(r, base, i) EMIT(PPC_INST_LD | ___PPC_RT(r) | \ argument
68 ___PPC_RA(base) | IMM_L(i))
69 #define PPC_LWZ(r, base, i) EMIT(PPC_INST_LWZ | ___PPC_RT(r) | \ argument
70 ___PPC_RA(base) | IMM_L(i))
71 #define PPC_LHZ(r, base, i) EMIT(PPC_INST_LHZ | ___PPC_RT(r) | \ argument
72 ___PPC_RA(base) | IMM_L(i))
90 #define PPC_BPF_LL(r, base, i) do { PPC_LD(r, base, i); } while(0) argument
91 #define PPC_BPF_STL(r, base, i) do { PPC_STD(r, base, i); } while(0) argument
92 #define PPC_BPF_STLU(r, base, i) do { PPC_STDU(r, base, i); } while(0) argument
94 #define PPC_BPF_LL(r, base, i) do { PPC_LWZ(r, base, i); } while(0) argument
95 #define PPC_BPF_STL(r, base, i) do { PPC_STW(r, base, i); } while(0) argument
96 #define PPC_BPF_STLU(r, base, i) do { PPC_STWU(r, base, i); } while(0) argument
99 #define PPC_CMPWI(a, i) EMIT(PPC_INST_CMPWI | ___PPC_RA(a) | IMM_L(i)) argument
100 #define PPC_CMPDI(a, i) EMIT(PPC_INST_CMPDI | ___PPC_RA(a) | IMM_L(i)) argument
105 #define PPC_CMPLWI(a, i) EMIT(PPC_INST_CMPLWI | ___PPC_RA(a) | IMM_L(i)) argument
106 #define PPC_CMPLDI(a, i) EMIT(PPC_INST_CMPLDI | ___PPC_RA(a) | IMM_L(i)) argument
122 #define PPC_MULI(d, a, i) EMIT(PPC_INST_MULLI | ___PPC_RT(d) | \ argument
123 ___PPC_RA(a) | IMM_L(i))
130 #define PPC_ANDI(d, a, i) EMIT(PPC_INST_ANDI | ___PPC_RA(d) | \ argument
131 ___PPC_RS(a) | IMM_L(i))
137 #define PPC_ORI(d, a, i) EMIT(PPC_INST_ORI | ___PPC_RA(d) | \ argument
138 ___PPC_RS(a) | IMM_L(i))
139 #define PPC_ORIS(d, a, i) EMIT(PPC_INST_ORIS | ___PPC_RA(d) | \ argument
140 ___PPC_RS(a) | IMM_L(i))
143 #define PPC_XORI(d, a, i) EMIT(PPC_INST_XORI | ___PPC_RA(d) | \ argument
144 ___PPC_RS(a) | IMM_L(i))
145 #define PPC_XORIS(d, a, i) EMIT(PPC_INST_XORIS | ___PPC_RA(d) | \ argument
146 ___PPC_RS(a) | IMM_L(i))
159 #define PPC_SRADI(d, a, i) EMIT(PPC_INST_SRADI | ___PPC_RA(d) | \ argument
160 ___PPC_RS(a) | __PPC_SH(i) | \
161 (((i) & 0x20) >> 4))
162 #define PPC_RLWINM(d, a, i, mb, me) EMIT(PPC_INST_RLWINM | ___PPC_RA(d) | \ argument
163 ___PPC_RS(a) | __PPC_SH(i) | \
165 #define PPC_RLWIMI(d, a, i, mb, me) EMIT(PPC_INST_RLWIMI | ___PPC_RA(d) | \ argument
166 ___PPC_RS(a) | __PPC_SH(i) | \
168 #define PPC_RLDICL(d, a, i, mb) EMIT(PPC_INST_RLDICL | ___PPC_RA(d) | \ argument
169 ___PPC_RS(a) | __PPC_SH(i) | \
170 __PPC_MB64(mb) | (((i) & 0x20) >> 4))
171 #define PPC_RLDICR(d, a, i, me) EMIT(PPC_INST_RLDICR | ___PPC_RA(d) | \ argument
172 ___PPC_RS(a) | __PPC_SH(i) | \
173 __PPC_ME64(me) | (((i) & 0x20) >> 4))
176 #define PPC_SLWI(d, a, i) PPC_RLWINM(d, a, i, 0, 31-(i)) argument
178 #define PPC_SRWI(d, a, i) PPC_RLWINM(d, a, 32-(i), i, 31) argument
180 #define PPC_SLDI(d, a, i) PPC_RLDICR(d, a, i, 63-(i)) argument
182 #define PPC_SRDI(d, a, i) PPC_RLDICL(d, a, 64-(i), i) argument
195 #define PPC_LI32(d, i) do { \ argument
196 if ((int)(uintptr_t)(i) >= -32768 && \
197 (int)(uintptr_t)(i) < 32768) \
198 PPC_LI(d, i); \
200 PPC_LIS(d, IMM_H(i)); \
201 if (IMM_L(i)) \
202 PPC_ORI(d, d, IMM_L(i)); \
205 #define PPC_LI64(d, i) do { \ argument
206 if ((long)(i) >= -2147483648 && \
207 (long)(i) < 2147483648) \
208 PPC_LI32(d, i); \
210 if (!((uintptr_t)(i) & 0xffff800000000000ULL)) \
211 PPC_LI(d, ((uintptr_t)(i) >> 32) & 0xffff); \
213 PPC_LIS(d, ((uintptr_t)(i) >> 48)); \
214 if ((uintptr_t)(i) & 0x0000ffff00000000ULL) \
216 ((uintptr_t)(i) >> 32) & 0xffff); \
219 if ((uintptr_t)(i) & 0x00000000ffff0000ULL) \
221 ((uintptr_t)(i) >> 16) & 0xffff); \
222 if ((uintptr_t)(i) & 0x000000000000ffffULL) \
223 PPC_ORI(d, d, (uintptr_t)(i) & 0xffff); \
227 #define PPC_FUNC_ADDR(d,i) do { PPC_LI64(d, i); } while(0) argument
229 #define PPC_FUNC_ADDR(d,i) do { PPC_LI32(d, i); } while(0) argument