110 # define Nc *((gsm_signal (*) [17])(source + 8)) 111 # define bc *((gsm_signal (*) [17])(source + 9)) 112 # define Mc *((gsm_signal (*) [17])(source + 10)) 113 # define xmaxc *((gsm_signal (*) [17])(source + 11)) 122 LARc[0] = sr & 0x3f; sr >>= 6;
123 sr |= (
uword)*c++ << 2;
124 LARc[1] = sr & 0x3f; sr >>= 6;
125 sr |= (
uword)*c++ << 4;
126 LARc[2] = sr & 0x1f; sr >>= 5;
127 LARc[3] = sr & 0x1f; sr >>= 5;
128 sr |= (
uword)*c++ << 2;
129 LARc[4] = sr & 0xf; sr >>= 4;
130 LARc[5] = sr & 0xf; sr >>= 4;
131 sr |= (
uword)*c++ << 2;
132 LARc[6] = sr & 0x7; sr >>= 3;
133 LARc[7] = sr & 0x7; sr >>= 3;
134 sr |= (
uword)*c++ << 4;
135 Nc[0] = sr & 0x7f; sr >>= 7;
136 bc[0] = sr & 0x3; sr >>= 2;
137 Mc[0] = sr & 0x3; sr >>= 2;
138 sr |= (
uword)*c++ << 1;
139 xmaxc[0] = sr & 0x3f; sr >>= 6;
141 #define xmc (source + 12) 142 xmc[0] = sr & 0x7; sr >>= 3;
144 xmc[1] = sr & 0x7; sr >>= 3;
145 xmc[2] = sr & 0x7; sr >>= 3;
146 sr |= (
uword)*c++ << 2;
147 xmc[3] = sr & 0x7; sr >>= 3;
148 xmc[4] = sr & 0x7; sr >>= 3;
149 xmc[5] = sr & 0x7; sr >>= 3;
150 sr |= (
uword)*c++ << 1;
151 xmc[6] = sr & 0x7; sr >>= 3;
152 xmc[7] = sr & 0x7; sr >>= 3;
153 xmc[8] = sr & 0x7; sr >>= 3;
155 xmc[9] = sr & 0x7; sr >>= 3;
156 xmc[10] = sr & 0x7; sr >>= 3;
157 sr |= (
uword)*c++ << 2;
158 xmc[11] = sr & 0x7; sr >>= 3;
159 xmc[12] = sr & 0x7; sr >>= 3;
160 sr |= (
uword)*c++ << 4;
161 Nc[1] = sr & 0x7f; sr >>= 7;
162 bc[1] = sr & 0x3; sr >>= 2;
163 Mc[1] = sr & 0x3; sr >>= 2;
164 sr |= (
uword)*c++ << 1;
165 xmaxc[1] = sr & 0x3f; sr >>= 6;
167 #define xmc (source + 29 - 13) 168 xmc[13] = sr & 0x7; sr >>= 3;
170 xmc[14] = sr & 0x7; sr >>= 3;
171 xmc[15] = sr & 0x7; sr >>= 3;
172 sr |= (
uword)*c++ << 2;
173 xmc[16] = sr & 0x7; sr >>= 3;
174 xmc[17] = sr & 0x7; sr >>= 3;
175 xmc[18] = sr & 0x7; sr >>= 3;
176 sr |= (
uword)*c++ << 1;
177 xmc[19] = sr & 0x7; sr >>= 3;
178 xmc[20] = sr & 0x7; sr >>= 3;
179 xmc[21] = sr & 0x7; sr >>= 3;
181 xmc[22] = sr & 0x7; sr >>= 3;
182 xmc[23] = sr & 0x7; sr >>= 3;
183 sr |= (
uword)*c++ << 2;
184 xmc[24] = sr & 0x7; sr >>= 3;
185 xmc[25] = sr & 0x7; sr >>= 3;
186 sr |= (
uword)*c++ << 4;
187 Nc[2] = sr & 0x7f; sr >>= 7;
188 bc[2] = sr & 0x3; sr >>= 2;
189 Mc[2] = sr & 0x3; sr >>= 2;
190 sr |= (
uword)*c++ << 1;
191 xmaxc[2] = sr & 0x3f; sr >>= 6;
193 #define xmc (source + 46 - 26) 194 xmc[26] = sr & 0x7; sr >>= 3;
196 xmc[27] = sr & 0x7; sr >>= 3;
197 xmc[28] = sr & 0x7; sr >>= 3;
198 sr |= (
uword)*c++ << 2;
199 xmc[29] = sr & 0x7; sr >>= 3;
200 xmc[30] = sr & 0x7; sr >>= 3;
201 xmc[31] = sr & 0x7; sr >>= 3;
202 sr |= (
uword)*c++ << 1;
203 xmc[32] = sr & 0x7; sr >>= 3;
204 xmc[33] = sr & 0x7; sr >>= 3;
205 xmc[34] = sr & 0x7; sr >>= 3;
207 xmc[35] = sr & 0x7; sr >>= 3;
208 xmc[36] = sr & 0x7; sr >>= 3;
209 sr |= (
uword)*c++ << 2;
210 xmc[37] = sr & 0x7; sr >>= 3;
211 xmc[38] = sr & 0x7; sr >>= 3;
212 sr |= (
uword)*c++ << 4;
213 Nc[3] = sr & 0x7f; sr >>= 7;
214 bc[3] = sr & 0x3; sr >>= 2;
215 Mc[3] = sr & 0x3; sr >>= 2;
216 sr |= (
uword)*c++ << 1;
217 xmaxc[3] = sr & 0x3f; sr >>= 6;
219 #define xmc (source + 63 - 39) 221 xmc[39] = sr & 0x7; sr >>= 3;
223 xmc[40] = sr & 0x7; sr >>= 3;
224 xmc[41] = sr & 0x7; sr >>= 3;
225 sr |= (
uword)*c++ << 2;
226 xmc[42] = sr & 0x7; sr >>= 3;
227 xmc[43] = sr & 0x7; sr >>= 3;
228 xmc[44] = sr & 0x7; sr >>= 3;
229 sr |= (
uword)*c++ << 1;
230 xmc[45] = sr & 0x7; sr >>= 3;
231 xmc[46] = sr & 0x7; sr >>= 3;
232 xmc[47] = sr & 0x7; sr >>= 3;
234 xmc[48] = sr & 0x7; sr >>= 3;
235 xmc[49] = sr & 0x7; sr >>= 3;
236 sr |= (
uword)*c++ << 2;
237 xmc[50] = sr & 0x7; sr >>= 3;
238 xmc[51] = sr & 0x7; sr >>= 3;
244 sr |= (
uword)*c++ << 4;
245 LARc[0] = sr & 0x3f; sr >>= 6;
246 LARc[1] = sr & 0x3f; sr >>= 6;
248 LARc[2] = sr & 0x1f; sr >>= 5;
249 sr |= (
uword)*c++ << 3;
250 LARc[3] = sr & 0x1f; sr >>= 5;
251 LARc[4] = sr & 0xf; sr >>= 4;
252 sr |= (
uword)*c++ << 2;
253 LARc[5] = sr & 0xf; sr >>= 4;
254 LARc[6] = sr & 0x7; sr >>= 3;
255 LARc[7] = sr & 0x7; sr >>= 3;
257 Nc[0] = sr & 0x7f; sr >>= 7;
258 sr |= (
uword)*c++ << 1;
259 bc[0] = sr & 0x3; sr >>= 2;
260 Mc[0] = sr & 0x3; sr >>= 2;
261 sr |= (
uword)*c++ << 5;
262 xmaxc[0] = sr & 0x3f; sr >>= 6;
264 #define xmc (source + 12) 265 xmc[0] = sr & 0x7; sr >>= 3;
266 xmc[1] = sr & 0x7; sr >>= 3;
267 sr |= (
uword)*c++ << 1;
268 xmc[2] = sr & 0x7; sr >>= 3;
269 xmc[3] = sr & 0x7; sr >>= 3;
270 xmc[4] = sr & 0x7; sr >>= 3;
272 xmc[5] = sr & 0x7; sr >>= 3;
273 xmc[6] = sr & 0x7; sr >>= 3;
274 sr |= (
uword)*c++ << 2;
275 xmc[7] = sr & 0x7; sr >>= 3;
276 xmc[8] = sr & 0x7; sr >>= 3;
277 xmc[9] = sr & 0x7; sr >>= 3;
278 sr |= (
uword)*c++ << 1;
279 xmc[10] = sr & 0x7; sr >>= 3;
280 xmc[11] = sr & 0x7; sr >>= 3;
281 xmc[12] = sr & 0x7; sr >>= 3;
283 Nc[1] = sr & 0x7f; sr >>= 7;
284 sr |= (
uword)*c++ << 1;
285 bc[1] = sr & 0x3; sr >>= 2;
286 Mc[1] = sr & 0x3; sr >>= 2;
287 sr |= (
uword)*c++ << 5;
288 xmaxc[1] = sr & 0x3f; sr >>= 6;
290 #define xmc (source + 29 - 13) 291 xmc[13] = sr & 0x7; sr >>= 3;
292 xmc[14] = sr & 0x7; sr >>= 3;
293 sr |= (
uword)*c++ << 1;
294 xmc[15] = sr & 0x7; sr >>= 3;
295 xmc[16] = sr & 0x7; sr >>= 3;
296 xmc[17] = sr & 0x7; sr >>= 3;
298 xmc[18] = sr & 0x7; sr >>= 3;
299 xmc[19] = sr & 0x7; sr >>= 3;
300 sr |= (
uword)*c++ << 2;
301 xmc[20] = sr & 0x7; sr >>= 3;
302 xmc[21] = sr & 0x7; sr >>= 3;
303 xmc[22] = sr & 0x7; sr >>= 3;
304 sr |= (
uword)*c++ << 1;
305 xmc[23] = sr & 0x7; sr >>= 3;
306 xmc[24] = sr & 0x7; sr >>= 3;
307 xmc[25] = sr & 0x7; sr >>= 3;
309 Nc[2] = sr & 0x7f; sr >>= 7;
310 sr |= (
uword)*c++ << 1;
311 bc[2] = sr & 0x3; sr >>= 2;
312 Mc[2] = sr & 0x3; sr >>= 2;
313 sr |= (
uword)*c++ << 5;
314 xmaxc[2] = sr & 0x3f; sr >>= 6;
316 #define xmc (source + 46 - 26) 317 xmc[26] = sr & 0x7; sr >>= 3;
318 xmc[27] = sr & 0x7; sr >>= 3;
319 sr |= (
uword)*c++ << 1;
320 xmc[28] = sr & 0x7; sr >>= 3;
321 xmc[29] = sr & 0x7; sr >>= 3;
322 xmc[30] = sr & 0x7; sr >>= 3;
324 xmc[31] = sr & 0x7; sr >>= 3;
325 xmc[32] = sr & 0x7; sr >>= 3;
326 sr |= (
uword)*c++ << 2;
327 xmc[33] = sr & 0x7; sr >>= 3;
328 xmc[34] = sr & 0x7; sr >>= 3;
329 xmc[35] = sr & 0x7; sr >>= 3;
330 sr |= (
uword)*c++ << 1;
331 xmc[36] = sr & 0x7; sr >>= 3;
332 xmc[37] = sr & 0x7; sr >>= 3;
333 xmc[38] = sr & 0x7; sr >>= 3;
335 Nc[3] = sr & 0x7f; sr >>= 7;
336 sr |= (
uword)*c++ << 1;
337 bc[3] = sr & 0x3; sr >>= 2;
338 Mc[3] = sr & 0x3; sr >>= 2;
339 sr |= (
uword)*c++ << 5;
340 xmaxc[3] = sr & 0x3f; sr >>= 6;
342 #define xmc (source + 63 - 39) 344 xmc[39] = sr & 0x7; sr >>= 3;
345 xmc[40] = sr & 0x7; sr >>= 3;
346 sr |= (
uword)*c++ << 1;
347 xmc[41] = sr & 0x7; sr >>= 3;
348 xmc[42] = sr & 0x7; sr >>= 3;
349 xmc[43] = sr & 0x7; sr >>= 3;
351 xmc[44] = sr & 0x7; sr >>= 3;
352 xmc[45] = sr & 0x7; sr >>= 3;
353 sr |= (
uword)*c++ << 2;
354 xmc[46] = sr & 0x7; sr >>= 3;
355 xmc[47] = sr & 0x7; sr >>= 3;
356 xmc[48] = sr & 0x7; sr >>= 3;
357 sr |= (
uword)*c++ << 1;
358 xmc[49] = sr & 0x7; sr >>= 3;
359 xmc[50] = sr & 0x7; sr >>= 3;
360 xmc[51] = sr & 0x7; sr >>= 3;
368 | ((
LARc[0] >> 2) & 0xF);
369 *c++ = ((
LARc[0] & 0x3) << 6)
371 *c++ = ((
LARc[2] & 0x1F) << 3)
372 | ((
LARc[3] >> 2) & 0x7);
373 *c++ = ((
LARc[3] & 0x3) << 6)
374 | ((
LARc[4] & 0xF) << 2)
375 | ((
LARc[5] >> 2) & 0x3);
376 *c++ = ((
LARc[5] & 0x3) << 6)
377 | ((
LARc[6] & 0x7) << 3)
381 *c++ = ((
Nc[0] & 0x7F) << 1)
384 | ((
bc[0] >> 1) & 0x1);
385 *c++ = ((
bc[0] & 0x1) << 7)
388 | ((
Mc[0] & 0x3) << 5)
390 | ((
xmaxc[0] >> 1) & 0x1F);
391 *c++ = ((
xmaxc[0] & 0x1) << 7)
394 #define xmc (source + 12) 396 | ((
xmc[0] & 0x7) << 4)
397 | ((
xmc[1] & 0x7) << 1)
398 | ((
xmc[2] >> 2) & 0x1);
399 *c++ = ((
xmc[2] & 0x3) << 6)
400 | ((
xmc[3] & 0x7) << 3)
402 *c++ = ((
xmc[5] & 0x7) << 5)
403 | ((
xmc[6] & 0x7) << 2)
404 | ((
xmc[7] >> 1) & 0x3);
405 *c++ = ((
xmc[7] & 0x1) << 7)
406 | ((
xmc[8] & 0x7) << 4)
407 | ((
xmc[9] & 0x7) << 1)
408 | ((
xmc[10] >> 2) & 0x1);
409 *c++ = ((
xmc[10] & 0x3) << 6)
410 | ((
xmc[11] & 0x7) << 3)
414 *c++ = ((
Nc[1] & 0x7F) << 1)
417 | ((
bc[1] >> 1) & 0x1);
418 *c++ = ((
bc[1] & 0x1) << 7)
421 | ((
Mc[1] & 0x3) << 5)
424 | ((
xmaxc[1] >> 1) & 0x1F);
425 *c++ = ((
xmaxc[1] & 0x1) << 7)
428 #define xmc (source + 29 - 13) 430 | ((
xmc[13] & 0x7) << 4)
431 | ((
xmc[14] & 0x7) << 1)
432 | ((
xmc[15] >> 2) & 0x1);
433 *c++ = ((
xmc[15] & 0x3) << 6)
434 | ((
xmc[16] & 0x7) << 3)
436 *c++ = ((
xmc[18] & 0x7) << 5)
437 | ((
xmc[19] & 0x7) << 2)
438 | ((
xmc[20] >> 1) & 0x3);
439 *c++ = ((
xmc[20] & 0x1) << 7)
440 | ((
xmc[21] & 0x7) << 4)
441 | ((
xmc[22] & 0x7) << 1)
442 | ((
xmc[23] >> 2) & 0x1);
443 *c++ = ((
xmc[23] & 0x3) << 6)
444 | ((
xmc[24] & 0x7) << 3)
448 *c++ = ((
Nc[2] & 0x7F) << 1)
451 | ((
bc[2] >> 1) & 0x1);
452 *c++ = ((
bc[2] & 0x1) << 7)
455 | ((
Mc[2] & 0x3) << 5)
458 | ((
xmaxc[2] >> 1) & 0x1F);
459 *c++ = ((
xmaxc[2] & 0x1) << 7)
462 #define xmc (source + 46 - 26) 464 | ((
xmc[26] & 0x7) << 4)
465 | ((
xmc[27] & 0x7) << 1)
466 | ((
xmc[28] >> 2) & 0x1);
467 *c++ = ((
xmc[28] & 0x3) << 6)
468 | ((
xmc[29] & 0x7) << 3)
470 *c++ = ((
xmc[31] & 0x7) << 5)
471 | ((
xmc[32] & 0x7) << 2)
472 | ((
xmc[33] >> 1) & 0x3);
473 *c++ = ((
xmc[33] & 0x1) << 7)
474 | ((
xmc[34] & 0x7) << 4)
475 | ((
xmc[35] & 0x7) << 1)
476 | ((
xmc[36] >> 2) & 0x1);
477 *c++ = ((
xmc[36] & 0x3) << 6)
478 | ((
xmc[37] & 0x7) << 3)
482 *c++ = ((
Nc[3] & 0x7F) << 1)
485 | ((
bc[3] >> 1) & 0x1);
486 *c++ = ((
bc[3] & 0x1) << 7)
489 | ((
Mc[3] & 0x3) << 5)
492 | ((
xmaxc[3] >> 1) & 0x1F);
493 *c++ = ((
xmaxc[3] & 0x1) << 7)
496 #define xmc (source + 63 - 39) 498 | ((
xmc[39] & 0x7) << 4)
499 | ((
xmc[40] & 0x7) << 1)
500 | ((
xmc[41] >> 2) & 0x1);
501 *c++ = ((
xmc[41] & 0x3) << 6)
502 | ((
xmc[42] & 0x7) << 3)
504 *c++ = ((
xmc[44] & 0x7) << 5)
505 | ((
xmc[45] & 0x7) << 2)
506 | ((
xmc[46] >> 1) & 0x3);
507 *c++ = ((
xmc[46] & 0x1) << 7)
508 | ((
xmc[47] & 0x7) << 4)
509 | ((
xmc[48] & 0x7) << 1)
510 | ((
xmc[49] >> 2) & 0x1);
511 *c++ = ((
xmc[49] & 0x3) << 6)
512 | ((
xmc[50] & 0x7) << 3)
unsigned char frame_index
unsigned char frame_chain
void gsm_implode P3((s, source, c), gsm s, gsm_signal *source, gsm_byte *c)