]> git.wh0rd.org - ICEs.git/blame - bfin-3510/gsm0610_decode.i.0
initial import
[ICEs.git] / bfin-3510 / gsm0610_decode.i.0
CommitLineData
45516216 1# 1 "../../spandsp-0.0.4/src/gsm0610_decode.c"
2# 1 "/DEVEL/embedded/blackfin-sources/uclinux-dist/user/eworldcom-stuff/spandsp/build/src//"
3# 1 "<built-in>"
4# 1 "<command line>"
5# 1 "../../spandsp-0.0.4/src/gsm0610_decode.c"
6# 34 "../../spandsp-0.0.4/src/gsm0610_decode.c"
7# 1 "./config.h" 1
8# 35 "../../spandsp-0.0.4/src/gsm0610_decode.c" 2
9
10
11# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/assert.h" 1 3 4
12# 32 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/assert.h" 3 4
13# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/features.h" 1 3 4
14# 35 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/features.h" 3 4
15# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/uClibc_config.h" 1 3 4
16# 36 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/features.h" 2 3 4
17
18# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/uClibc_arch_features.h" 1 3 4
19# 38 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/features.h" 2 3 4
20# 356 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/features.h" 3 4
21# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/cdefs.h" 1 3 4
22# 357 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/features.h" 2 3 4
23# 33 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/assert.h" 2 3 4
24# 38 "../../spandsp-0.0.4/src/gsm0610_decode.c" 2
25# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/inttypes.h" 1 3 4
26# 28 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/inttypes.h" 3 4
27# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdint.h" 1 3 4
28# 30 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdint.h" 3 4
29# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/wordsize.h" 1 3 4
30# 31 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdint.h" 2 3 4
31# 39 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdint.h" 3 4
32typedef signed char int8_t;
33typedef short int int16_t;
34typedef int int32_t;
35
36
37
38__extension__
39typedef long long int int64_t;
40
41
42
43
44typedef unsigned char uint8_t;
45typedef unsigned short int uint16_t;
46
47typedef unsigned int uint32_t;
48
49
50
51
52
53__extension__
54typedef unsigned long long int uint64_t;
55
56
57
58
59
60
61typedef signed char int_least8_t;
62typedef short int int_least16_t;
63typedef int int_least32_t;
64
65
66
67__extension__
68typedef long long int int_least64_t;
69
70
71
72typedef unsigned char uint_least8_t;
73typedef unsigned short int uint_least16_t;
74typedef unsigned int uint_least32_t;
75
76
77
78__extension__
79typedef unsigned long long int uint_least64_t;
80
81
82
83
84
85
86typedef signed char int_fast8_t;
87
88
89
90
91
92typedef int int_fast16_t;
93typedef int int_fast32_t;
94__extension__
95typedef long long int int_fast64_t;
96
97
98
99typedef unsigned char uint_fast8_t;
100
101
102
103
104
105typedef unsigned int uint_fast16_t;
106typedef unsigned int uint_fast32_t;
107__extension__
108typedef unsigned long long int uint_fast64_t;
109# 128 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdint.h" 3 4
110typedef int intptr_t;
111
112
113typedef unsigned int uintptr_t;
114# 140 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdint.h" 3 4
115__extension__
116typedef long long int intmax_t;
117__extension__
118typedef unsigned long long int uintmax_t;
119# 29 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/inttypes.h" 2 3 4
120# 276 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/inttypes.h" 3 4
121
122# 290 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/inttypes.h" 3 4
123typedef struct
124 {
125 long long int quot;
126 long long int rem;
127 } imaxdiv_t;
128
129
130
131
132
133extern intmax_t imaxabs (intmax_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
134
135
136extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom)
137 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
138
139
140extern intmax_t strtoimax (__const char *__restrict __nptr,
141 char **__restrict __endptr, int __base) __attribute__ ((__nothrow__));
142
143
144extern uintmax_t strtoumax (__const char *__restrict __nptr,
145 char ** __restrict __endptr, int __base) __attribute__ ((__nothrow__));
146# 326 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/inttypes.h" 3 4
147
148# 39 "../../spandsp-0.0.4/src/gsm0610_decode.c" 2
149
150# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/tgmath.h" 1 3 4
151# 27 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/tgmath.h" 3 4
152# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/math.h" 1 3 4
153# 30 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/math.h" 3 4
154
155
156
157
158# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/huge_val.h" 1 3 4
159# 35 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/math.h" 2 3 4
160
161# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/huge_valf.h" 1 3 4
162# 37 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/math.h" 2 3 4
163# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/huge_vall.h" 1 3 4
164# 38 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/math.h" 2 3 4
165
166
167# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/inf.h" 1 3 4
168# 41 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/math.h" 2 3 4
169
170
171# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/nan.h" 1 3 4
172# 44 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/math.h" 2 3 4
173
174
175
176# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/mathdef.h" 1 3 4
177# 28 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/mathdef.h" 3 4
178typedef double float_t;
179
180typedef double double_t;
181# 48 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/math.h" 2 3 4
182# 71 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/math.h" 3 4
183# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/mathcalls.h" 1 3 4
184# 53 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/mathcalls.h" 3 4
185
186
187extern double acos (double __x) __attribute__ ((__nothrow__)); extern double __acos (double __x) __attribute__ ((__nothrow__));
188
189extern double asin (double __x) __attribute__ ((__nothrow__)); extern double __asin (double __x) __attribute__ ((__nothrow__));
190
191extern double atan (double __x) __attribute__ ((__nothrow__)); extern double __atan (double __x) __attribute__ ((__nothrow__));
192
193extern double atan2 (double __y, double __x) __attribute__ ((__nothrow__)); extern double __atan2 (double __y, double __x) __attribute__ ((__nothrow__));
194
195
196extern double cos (double __x) __attribute__ ((__nothrow__)); extern double __cos (double __x) __attribute__ ((__nothrow__));
197
198extern double sin (double __x) __attribute__ ((__nothrow__)); extern double __sin (double __x) __attribute__ ((__nothrow__));
199
200extern double tan (double __x) __attribute__ ((__nothrow__)); extern double __tan (double __x) __attribute__ ((__nothrow__));
201
202
203
204
205extern double cosh (double __x) __attribute__ ((__nothrow__)); extern double __cosh (double __x) __attribute__ ((__nothrow__));
206
207extern double sinh (double __x) __attribute__ ((__nothrow__)); extern double __sinh (double __x) __attribute__ ((__nothrow__));
208
209extern double tanh (double __x) __attribute__ ((__nothrow__)); extern double __tanh (double __x) __attribute__ ((__nothrow__));
210
211# 87 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/mathcalls.h" 3 4
212
213
214extern double acosh (double __x) __attribute__ ((__nothrow__)); extern double __acosh (double __x) __attribute__ ((__nothrow__));
215
216extern double asinh (double __x) __attribute__ ((__nothrow__)); extern double __asinh (double __x) __attribute__ ((__nothrow__));
217
218extern double atanh (double __x) __attribute__ ((__nothrow__)); extern double __atanh (double __x) __attribute__ ((__nothrow__));
219
220
221
222
223
224
225
226extern double exp (double __x) __attribute__ ((__nothrow__)); extern double __exp (double __x) __attribute__ ((__nothrow__));
227
228
229extern double frexp (double __x, int *__exponent) __attribute__ ((__nothrow__)); extern double __frexp (double __x, int *__exponent) __attribute__ ((__nothrow__));
230
231
232extern double ldexp (double __x, int __exponent) __attribute__ ((__nothrow__)); extern double __ldexp (double __x, int __exponent) __attribute__ ((__nothrow__));
233
234
235extern double log (double __x) __attribute__ ((__nothrow__)); extern double __log (double __x) __attribute__ ((__nothrow__));
236
237
238extern double log10 (double __x) __attribute__ ((__nothrow__)); extern double __log10 (double __x) __attribute__ ((__nothrow__));
239
240
241extern double modf (double __x, double *__iptr) __attribute__ ((__nothrow__)); extern double __modf (double __x, double *__iptr) __attribute__ ((__nothrow__));
242
243# 127 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/mathcalls.h" 3 4
244
245
246extern double expm1 (double __x) __attribute__ ((__nothrow__)); extern double __expm1 (double __x) __attribute__ ((__nothrow__));
247
248
249extern double log1p (double __x) __attribute__ ((__nothrow__)); extern double __log1p (double __x) __attribute__ ((__nothrow__));
250
251
252extern double logb (double __x) __attribute__ ((__nothrow__)); extern double __logb (double __x) __attribute__ ((__nothrow__));
253
254
255
256
257
258
259extern double exp2 (double __x) __attribute__ ((__nothrow__)); extern double __exp2 (double __x) __attribute__ ((__nothrow__));
260
261
262extern double log2 (double __x) __attribute__ ((__nothrow__)); extern double __log2 (double __x) __attribute__ ((__nothrow__));
263
264
265
266
267
268
269
270
271extern double pow (double __x, double __y) __attribute__ ((__nothrow__)); extern double __pow (double __x, double __y) __attribute__ ((__nothrow__));
272
273
274extern double sqrt (double __x) __attribute__ ((__nothrow__)); extern double __sqrt (double __x) __attribute__ ((__nothrow__));
275
276
277
278
279
280extern double hypot (double __x, double __y) __attribute__ ((__nothrow__)); extern double __hypot (double __x, double __y) __attribute__ ((__nothrow__));
281
282
283
284
285
286
287extern double cbrt (double __x) __attribute__ ((__nothrow__)); extern double __cbrt (double __x) __attribute__ ((__nothrow__));
288
289
290
291
292
293
294
295
296extern double ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
297
298
299extern double fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
300
301
302extern double floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
303
304
305extern double fmod (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmod (double __x, double __y) __attribute__ ((__nothrow__));
306
307
308
309
310extern int __isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
311
312
313extern int __finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
314
315
316
317
318
319extern int isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
320
321
322extern int finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
323
324
325extern double drem (double __x, double __y) __attribute__ ((__nothrow__)); extern double __drem (double __x, double __y) __attribute__ ((__nothrow__));
326
327
328
329extern double significand (double __x) __attribute__ ((__nothrow__)); extern double __significand (double __x) __attribute__ ((__nothrow__));
330
331
332
333
334
335extern double copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
336
337
338
339
340
341
342extern double nan (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nan (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
343
344
345
346
347
348extern int __isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
349
350
351
352extern int isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
353
354
355extern double j0 (double) __attribute__ ((__nothrow__)); extern double __j0 (double) __attribute__ ((__nothrow__));
356extern double j1 (double) __attribute__ ((__nothrow__)); extern double __j1 (double) __attribute__ ((__nothrow__));
357extern double jn (int, double) __attribute__ ((__nothrow__)); extern double __jn (int, double) __attribute__ ((__nothrow__));
358extern double y0 (double) __attribute__ ((__nothrow__)); extern double __y0 (double) __attribute__ ((__nothrow__));
359extern double y1 (double) __attribute__ ((__nothrow__)); extern double __y1 (double) __attribute__ ((__nothrow__));
360extern double yn (int, double) __attribute__ ((__nothrow__)); extern double __yn (int, double) __attribute__ ((__nothrow__));
361
362
363
364
365
366
367extern double erf (double) __attribute__ ((__nothrow__)); extern double __erf (double) __attribute__ ((__nothrow__));
368extern double erfc (double) __attribute__ ((__nothrow__)); extern double __erfc (double) __attribute__ ((__nothrow__));
369extern double lgamma (double) __attribute__ ((__nothrow__)); extern double __lgamma (double) __attribute__ ((__nothrow__));
370
371
372
373
374
375
376extern double tgamma (double) __attribute__ ((__nothrow__)); extern double __tgamma (double) __attribute__ ((__nothrow__));
377
378
379
380
381
382extern double gamma (double) __attribute__ ((__nothrow__)); extern double __gamma (double) __attribute__ ((__nothrow__));
383
384
385
386
387
388
389extern double lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__)); extern double __lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__));
390
391
392
393
394
395
396
397extern double rint (double __x) __attribute__ ((__nothrow__)); extern double __rint (double __x) __attribute__ ((__nothrow__));
398
399
400extern double nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
401
402extern double nexttoward (double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nexttoward (double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
403
404
405
406extern double remainder (double __x, double __y) __attribute__ ((__nothrow__)); extern double __remainder (double __x, double __y) __attribute__ ((__nothrow__));
407
408
409
410extern double scalbn (double __x, int __n) __attribute__ ((__nothrow__)); extern double __scalbn (double __x, int __n) __attribute__ ((__nothrow__));
411
412
413
414extern int ilogb (double __x) __attribute__ ((__nothrow__)); extern int __ilogb (double __x) __attribute__ ((__nothrow__));
415
416
417
418
419extern double scalbln (double __x, long int __n) __attribute__ ((__nothrow__)); extern double __scalbln (double __x, long int __n) __attribute__ ((__nothrow__));
420
421
422
423extern double nearbyint (double __x) __attribute__ ((__nothrow__)); extern double __nearbyint (double __x) __attribute__ ((__nothrow__));
424
425
426
427extern double round (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __round (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
428
429
430
431extern double trunc (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __trunc (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
432
433
434
435
436extern double remquo (double __x, double __y, int *__quo) __attribute__ ((__nothrow__)); extern double __remquo (double __x, double __y, int *__quo) __attribute__ ((__nothrow__));
437
438
439
440
441
442
443extern long int lrint (double __x) __attribute__ ((__nothrow__)); extern long int __lrint (double __x) __attribute__ ((__nothrow__));
444extern long long int llrint (double __x) __attribute__ ((__nothrow__)); extern long long int __llrint (double __x) __attribute__ ((__nothrow__));
445
446
447
448extern long int lround (double __x) __attribute__ ((__nothrow__)); extern long int __lround (double __x) __attribute__ ((__nothrow__));
449extern long long int llround (double __x) __attribute__ ((__nothrow__)); extern long long int __llround (double __x) __attribute__ ((__nothrow__));
450
451
452
453extern double fdim (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fdim (double __x, double __y) __attribute__ ((__nothrow__));
454
455
456extern double fmax (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmax (double __x, double __y) __attribute__ ((__nothrow__));
457
458
459extern double fmin (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmin (double __x, double __y) __attribute__ ((__nothrow__));
460
461
462
463extern int __fpclassify (double __value) __attribute__ ((__nothrow__))
464 __attribute__ ((__const__));
465
466
467extern int __signbit (double __value) __attribute__ ((__nothrow__))
468 __attribute__ ((__const__));
469
470
471
472extern double fma (double __x, double __y, double __z) __attribute__ ((__nothrow__)); extern double __fma (double __x, double __y, double __z) __attribute__ ((__nothrow__));
473
474
475
476
477
478
479
480
481extern double scalb (double __x, double __n) __attribute__ ((__nothrow__)); extern double __scalb (double __x, double __n) __attribute__ ((__nothrow__));
482# 72 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/math.h" 2 3 4
483# 94 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/math.h" 3 4
484# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/mathcalls.h" 1 3 4
485# 53 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/mathcalls.h" 3 4
486
487
488extern float acosf (float __x) __attribute__ ((__nothrow__)); extern float __acosf (float __x) __attribute__ ((__nothrow__));
489
490extern float asinf (float __x) __attribute__ ((__nothrow__)); extern float __asinf (float __x) __attribute__ ((__nothrow__));
491
492extern float atanf (float __x) __attribute__ ((__nothrow__)); extern float __atanf (float __x) __attribute__ ((__nothrow__));
493
494extern float atan2f (float __y, float __x) __attribute__ ((__nothrow__)); extern float __atan2f (float __y, float __x) __attribute__ ((__nothrow__));
495
496
497extern float cosf (float __x) __attribute__ ((__nothrow__)); extern float __cosf (float __x) __attribute__ ((__nothrow__));
498
499extern float sinf (float __x) __attribute__ ((__nothrow__)); extern float __sinf (float __x) __attribute__ ((__nothrow__));
500
501extern float tanf (float __x) __attribute__ ((__nothrow__)); extern float __tanf (float __x) __attribute__ ((__nothrow__));
502
503
504
505
506extern float coshf (float __x) __attribute__ ((__nothrow__)); extern float __coshf (float __x) __attribute__ ((__nothrow__));
507
508extern float sinhf (float __x) __attribute__ ((__nothrow__)); extern float __sinhf (float __x) __attribute__ ((__nothrow__));
509
510extern float tanhf (float __x) __attribute__ ((__nothrow__)); extern float __tanhf (float __x) __attribute__ ((__nothrow__));
511
512# 87 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/mathcalls.h" 3 4
513
514
515extern float acoshf (float __x) __attribute__ ((__nothrow__)); extern float __acoshf (float __x) __attribute__ ((__nothrow__));
516
517extern float asinhf (float __x) __attribute__ ((__nothrow__)); extern float __asinhf (float __x) __attribute__ ((__nothrow__));
518
519extern float atanhf (float __x) __attribute__ ((__nothrow__)); extern float __atanhf (float __x) __attribute__ ((__nothrow__));
520
521
522
523
524
525
526
527extern float expf (float __x) __attribute__ ((__nothrow__)); extern float __expf (float __x) __attribute__ ((__nothrow__));
528
529
530extern float frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__)); extern float __frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__));
531
532
533extern float ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__)); extern float __ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__));
534
535
536extern float logf (float __x) __attribute__ ((__nothrow__)); extern float __logf (float __x) __attribute__ ((__nothrow__));
537
538
539extern float log10f (float __x) __attribute__ ((__nothrow__)); extern float __log10f (float __x) __attribute__ ((__nothrow__));
540
541
542extern float modff (float __x, float *__iptr) __attribute__ ((__nothrow__)); extern float __modff (float __x, float *__iptr) __attribute__ ((__nothrow__));
543
544# 127 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/mathcalls.h" 3 4
545
546
547extern float expm1f (float __x) __attribute__ ((__nothrow__)); extern float __expm1f (float __x) __attribute__ ((__nothrow__));
548
549
550extern float log1pf (float __x) __attribute__ ((__nothrow__)); extern float __log1pf (float __x) __attribute__ ((__nothrow__));
551
552
553extern float logbf (float __x) __attribute__ ((__nothrow__)); extern float __logbf (float __x) __attribute__ ((__nothrow__));
554
555
556
557
558
559
560extern float exp2f (float __x) __attribute__ ((__nothrow__)); extern float __exp2f (float __x) __attribute__ ((__nothrow__));
561
562
563extern float log2f (float __x) __attribute__ ((__nothrow__)); extern float __log2f (float __x) __attribute__ ((__nothrow__));
564
565
566
567
568
569
570
571
572extern float powf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __powf (float __x, float __y) __attribute__ ((__nothrow__));
573
574
575extern float sqrtf (float __x) __attribute__ ((__nothrow__)); extern float __sqrtf (float __x) __attribute__ ((__nothrow__));
576
577
578
579
580
581extern float hypotf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __hypotf (float __x, float __y) __attribute__ ((__nothrow__));
582
583
584
585
586
587
588extern float cbrtf (float __x) __attribute__ ((__nothrow__)); extern float __cbrtf (float __x) __attribute__ ((__nothrow__));
589
590
591
592
593
594
595
596
597extern float ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
598
599
600extern float fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
601
602
603extern float floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
604
605
606extern float fmodf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fmodf (float __x, float __y) __attribute__ ((__nothrow__));
607
608
609
610
611extern int __isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
612
613
614extern int __finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
615
616
617
618
619
620extern int isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
621
622
623extern int finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
624
625
626extern float dremf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __dremf (float __x, float __y) __attribute__ ((__nothrow__));
627
628
629
630extern float significandf (float __x) __attribute__ ((__nothrow__)); extern float __significandf (float __x) __attribute__ ((__nothrow__));
631
632
633
634
635
636extern float copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
637
638
639
640
641
642
643extern float nanf (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nanf (__const char *__tagb) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
644
645
646
647
648
649extern int __isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
650
651
652
653extern int isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
654
655
656extern float j0f (float) __attribute__ ((__nothrow__)); extern float __j0f (float) __attribute__ ((__nothrow__));
657extern float j1f (float) __attribute__ ((__nothrow__)); extern float __j1f (float) __attribute__ ((__nothrow__));
658extern float jnf (int, float) __attribute__ ((__nothrow__)); extern float __jnf (int, float) __attribute__ ((__nothrow__));
659extern float y0f (float) __attribute__ ((__nothrow__)); extern float __y0f (float) __attribute__ ((__nothrow__));
660extern float y1f (float) __attribute__ ((__nothrow__)); extern float __y1f (float) __attribute__ ((__nothrow__));
661extern float ynf (int, float) __attribute__ ((__nothrow__)); extern float __ynf (int, float) __attribute__ ((__nothrow__));
662
663
664
665
666
667
668extern float erff (float) __attribute__ ((__nothrow__)); extern float __erff (float) __attribute__ ((__nothrow__));
669extern float erfcf (float) __attribute__ ((__nothrow__)); extern float __erfcf (float) __attribute__ ((__nothrow__));
670extern float lgammaf (float) __attribute__ ((__nothrow__)); extern float __lgammaf (float) __attribute__ ((__nothrow__));
671
672
673
674
675
676
677extern float tgammaf (float) __attribute__ ((__nothrow__)); extern float __tgammaf (float) __attribute__ ((__nothrow__));
678
679
680
681
682
683extern float gammaf (float) __attribute__ ((__nothrow__)); extern float __gammaf (float) __attribute__ ((__nothrow__));
684
685
686
687
688
689
690extern float lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__)); extern float __lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__));
691
692
693
694
695
696
697
698extern float rintf (float __x) __attribute__ ((__nothrow__)); extern float __rintf (float __x) __attribute__ ((__nothrow__));
699
700
701extern float nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
702
703extern float nexttowardf (float __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nexttowardf (float __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
704
705
706
707extern float remainderf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __remainderf (float __x, float __y) __attribute__ ((__nothrow__));
708
709
710
711extern float scalbnf (float __x, int __n) __attribute__ ((__nothrow__)); extern float __scalbnf (float __x, int __n) __attribute__ ((__nothrow__));
712
713
714
715extern int ilogbf (float __x) __attribute__ ((__nothrow__)); extern int __ilogbf (float __x) __attribute__ ((__nothrow__));
716
717
718
719
720extern float scalblnf (float __x, long int __n) __attribute__ ((__nothrow__)); extern float __scalblnf (float __x, long int __n) __attribute__ ((__nothrow__));
721
722
723
724extern float nearbyintf (float __x) __attribute__ ((__nothrow__)); extern float __nearbyintf (float __x) __attribute__ ((__nothrow__));
725
726
727
728extern float roundf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __roundf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
729
730
731
732extern float truncf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __truncf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
733
734
735
736
737extern float remquof (float __x, float __y, int *__quo) __attribute__ ((__nothrow__)); extern float __remquof (float __x, float __y, int *__quo) __attribute__ ((__nothrow__));
738
739
740
741
742
743
744extern long int lrintf (float __x) __attribute__ ((__nothrow__)); extern long int __lrintf (float __x) __attribute__ ((__nothrow__));
745extern long long int llrintf (float __x) __attribute__ ((__nothrow__)); extern long long int __llrintf (float __x) __attribute__ ((__nothrow__));
746
747
748
749extern long int lroundf (float __x) __attribute__ ((__nothrow__)); extern long int __lroundf (float __x) __attribute__ ((__nothrow__));
750extern long long int llroundf (float __x) __attribute__ ((__nothrow__)); extern long long int __llroundf (float __x) __attribute__ ((__nothrow__));
751
752
753
754extern float fdimf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fdimf (float __x, float __y) __attribute__ ((__nothrow__));
755
756
757extern float fmaxf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fmaxf (float __x, float __y) __attribute__ ((__nothrow__));
758
759
760extern float fminf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fminf (float __x, float __y) __attribute__ ((__nothrow__));
761
762
763
764extern int __fpclassifyf (float __value) __attribute__ ((__nothrow__))
765 __attribute__ ((__const__));
766
767
768extern int __signbitf (float __value) __attribute__ ((__nothrow__))
769 __attribute__ ((__const__));
770
771
772
773extern float fmaf (float __x, float __y, float __z) __attribute__ ((__nothrow__)); extern float __fmaf (float __x, float __y, float __z) __attribute__ ((__nothrow__));
774
775
776
777
778
779
780
781
782extern float scalbf (float __x, float __n) __attribute__ ((__nothrow__)); extern float __scalbf (float __x, float __n) __attribute__ ((__nothrow__));
783# 95 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/math.h" 2 3 4
784# 157 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/math.h" 3 4
785extern int signgam;
786# 198 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/math.h" 3 4
787enum
788 {
789 FP_NAN,
790
791 FP_INFINITE,
792
793 FP_ZERO,
794
795 FP_SUBNORMAL,
796
797 FP_NORMAL
798
799 };
800# 284 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/math.h" 3 4
801typedef enum
802{
803 _IEEE_ = -1,
804 _SVID_,
805 _XOPEN_,
806 _POSIX_,
807 _ISOC_
808} _LIB_VERSION_TYPE;
809
810
811
812
813extern _LIB_VERSION_TYPE _LIB_VERSION;
814# 309 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/math.h" 3 4
815struct exception
816
817 {
818 int type;
819 char *name;
820 double arg1;
821 double arg2;
822 double retval;
823 };
824
825
826
827
828extern int matherr (struct exception *__exc);
829# 465 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/math.h" 3 4
830
831# 28 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/tgmath.h" 2 3 4
832# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/complex.h" 1 3 4
833# 29 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/complex.h" 3 4
834# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/mathdef.h" 1 3 4
835# 30 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/complex.h" 2 3 4
836
837
838# 67 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/complex.h" 3 4
839# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/cmathcalls.h" 1 3 4
840# 54 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/cmathcalls.h" 3 4
841extern double _Complex cacos (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __cacos (double _Complex __z) __attribute__ ((__nothrow__));
842
843extern double _Complex casin (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __casin (double _Complex __z) __attribute__ ((__nothrow__));
844
845extern double _Complex catan (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __catan (double _Complex __z) __attribute__ ((__nothrow__));
846
847
848extern double _Complex ccos (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __ccos (double _Complex __z) __attribute__ ((__nothrow__));
849
850extern double _Complex csin (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __csin (double _Complex __z) __attribute__ ((__nothrow__));
851
852extern double _Complex ctan (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __ctan (double _Complex __z) __attribute__ ((__nothrow__));
853
854
855
856
857
858extern double _Complex cacosh (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __cacosh (double _Complex __z) __attribute__ ((__nothrow__));
859
860extern double _Complex casinh (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __casinh (double _Complex __z) __attribute__ ((__nothrow__));
861
862extern double _Complex catanh (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __catanh (double _Complex __z) __attribute__ ((__nothrow__));
863
864
865extern double _Complex ccosh (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __ccosh (double _Complex __z) __attribute__ ((__nothrow__));
866
867extern double _Complex csinh (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __csinh (double _Complex __z) __attribute__ ((__nothrow__));
868
869extern double _Complex ctanh (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __ctanh (double _Complex __z) __attribute__ ((__nothrow__));
870
871
872
873
874
875extern double _Complex cexp (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __cexp (double _Complex __z) __attribute__ ((__nothrow__));
876
877
878extern double _Complex clog (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __clog (double _Complex __z) __attribute__ ((__nothrow__));
879# 102 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/cmathcalls.h" 3 4
880extern double _Complex cpow (double _Complex __x, double _Complex __y) __attribute__ ((__nothrow__)); extern double _Complex __cpow (double _Complex __x, double _Complex __y) __attribute__ ((__nothrow__));
881
882
883extern double _Complex csqrt (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __csqrt (double _Complex __z) __attribute__ ((__nothrow__));
884
885
886
887
888
889extern double cabs (double _Complex __z) __attribute__ ((__nothrow__)); extern double __cabs (double _Complex __z) __attribute__ ((__nothrow__));
890
891
892extern double carg (double _Complex __z) __attribute__ ((__nothrow__)); extern double __carg (double _Complex __z) __attribute__ ((__nothrow__));
893
894
895extern double _Complex conj (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __conj (double _Complex __z) __attribute__ ((__nothrow__));
896
897
898extern double _Complex cproj (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __cproj (double _Complex __z) __attribute__ ((__nothrow__));
899
900
901
902
903
904extern double cimag (double _Complex __z) __attribute__ ((__nothrow__)); extern double __cimag (double _Complex __z) __attribute__ ((__nothrow__));
905
906
907extern double creal (double _Complex __z) __attribute__ ((__nothrow__)); extern double __creal (double _Complex __z) __attribute__ ((__nothrow__));
908# 68 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/complex.h" 2 3 4
909# 81 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/complex.h" 3 4
910# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/cmathcalls.h" 1 3 4
911# 54 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/cmathcalls.h" 3 4
912extern float _Complex cacosf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __cacosf (float _Complex __z) __attribute__ ((__nothrow__));
913
914extern float _Complex casinf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __casinf (float _Complex __z) __attribute__ ((__nothrow__));
915
916extern float _Complex catanf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __catanf (float _Complex __z) __attribute__ ((__nothrow__));
917
918
919extern float _Complex ccosf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __ccosf (float _Complex __z) __attribute__ ((__nothrow__));
920
921extern float _Complex csinf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __csinf (float _Complex __z) __attribute__ ((__nothrow__));
922
923extern float _Complex ctanf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __ctanf (float _Complex __z) __attribute__ ((__nothrow__));
924
925
926
927
928
929extern float _Complex cacoshf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __cacoshf (float _Complex __z) __attribute__ ((__nothrow__));
930
931extern float _Complex casinhf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __casinhf (float _Complex __z) __attribute__ ((__nothrow__));
932
933extern float _Complex catanhf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __catanhf (float _Complex __z) __attribute__ ((__nothrow__));
934
935
936extern float _Complex ccoshf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __ccoshf (float _Complex __z) __attribute__ ((__nothrow__));
937
938extern float _Complex csinhf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __csinhf (float _Complex __z) __attribute__ ((__nothrow__));
939
940extern float _Complex ctanhf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __ctanhf (float _Complex __z) __attribute__ ((__nothrow__));
941
942
943
944
945
946extern float _Complex cexpf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __cexpf (float _Complex __z) __attribute__ ((__nothrow__));
947
948
949extern float _Complex clogf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __clogf (float _Complex __z) __attribute__ ((__nothrow__));
950# 102 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/cmathcalls.h" 3 4
951extern float _Complex cpowf (float _Complex __x, float _Complex __y) __attribute__ ((__nothrow__)); extern float _Complex __cpowf (float _Complex __x, float _Complex __y) __attribute__ ((__nothrow__));
952
953
954extern float _Complex csqrtf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __csqrtf (float _Complex __z) __attribute__ ((__nothrow__));
955
956
957
958
959
960extern float cabsf (float _Complex __z) __attribute__ ((__nothrow__)); extern float __cabsf (float _Complex __z) __attribute__ ((__nothrow__));
961
962
963extern float cargf (float _Complex __z) __attribute__ ((__nothrow__)); extern float __cargf (float _Complex __z) __attribute__ ((__nothrow__));
964
965
966extern float _Complex conjf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __conjf (float _Complex __z) __attribute__ ((__nothrow__));
967
968
969extern float _Complex cprojf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __cprojf (float _Complex __z) __attribute__ ((__nothrow__));
970
971
972
973
974
975extern float cimagf (float _Complex __z) __attribute__ ((__nothrow__)); extern float __cimagf (float _Complex __z) __attribute__ ((__nothrow__));
976
977
978extern float crealf (float _Complex __z) __attribute__ ((__nothrow__)); extern float __crealf (float _Complex __z) __attribute__ ((__nothrow__));
979# 82 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/complex.h" 2 3 4
980# 97 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/complex.h" 3 4
981# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/cmathcalls.h" 1 3 4
982# 54 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/cmathcalls.h" 3 4
983extern long double _Complex cacosl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __cacosl (long double _Complex __z) __attribute__ ((__nothrow__));
984
985extern long double _Complex casinl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __casinl (long double _Complex __z) __attribute__ ((__nothrow__));
986
987extern long double _Complex catanl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __catanl (long double _Complex __z) __attribute__ ((__nothrow__));
988
989
990extern long double _Complex ccosl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __ccosl (long double _Complex __z) __attribute__ ((__nothrow__));
991
992extern long double _Complex csinl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __csinl (long double _Complex __z) __attribute__ ((__nothrow__));
993
994extern long double _Complex ctanl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __ctanl (long double _Complex __z) __attribute__ ((__nothrow__));
995
996
997
998
999
1000extern long double _Complex cacoshl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __cacoshl (long double _Complex __z) __attribute__ ((__nothrow__));
1001
1002extern long double _Complex casinhl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __casinhl (long double _Complex __z) __attribute__ ((__nothrow__));
1003
1004extern long double _Complex catanhl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __catanhl (long double _Complex __z) __attribute__ ((__nothrow__));
1005
1006
1007extern long double _Complex ccoshl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __ccoshl (long double _Complex __z) __attribute__ ((__nothrow__));
1008
1009extern long double _Complex csinhl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __csinhl (long double _Complex __z) __attribute__ ((__nothrow__));
1010
1011extern long double _Complex ctanhl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __ctanhl (long double _Complex __z) __attribute__ ((__nothrow__));
1012
1013
1014
1015
1016
1017extern long double _Complex cexpl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __cexpl (long double _Complex __z) __attribute__ ((__nothrow__));
1018
1019
1020extern long double _Complex clogl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __clogl (long double _Complex __z) __attribute__ ((__nothrow__));
1021# 102 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/cmathcalls.h" 3 4
1022extern long double _Complex cpowl (long double _Complex __x, long double _Complex __y) __attribute__ ((__nothrow__)); extern long double _Complex __cpowl (long double _Complex __x, long double _Complex __y) __attribute__ ((__nothrow__));
1023
1024
1025extern long double _Complex csqrtl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __csqrtl (long double _Complex __z) __attribute__ ((__nothrow__));
1026
1027
1028
1029
1030
1031extern long double cabsl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double __cabsl (long double _Complex __z) __attribute__ ((__nothrow__));
1032
1033
1034extern long double cargl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double __cargl (long double _Complex __z) __attribute__ ((__nothrow__));
1035
1036
1037extern long double _Complex conjl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __conjl (long double _Complex __z) __attribute__ ((__nothrow__));
1038
1039
1040extern long double _Complex cprojl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __cprojl (long double _Complex __z) __attribute__ ((__nothrow__));
1041
1042
1043
1044
1045
1046extern long double cimagl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double __cimagl (long double _Complex __z) __attribute__ ((__nothrow__));
1047
1048
1049extern long double creall (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double __creall (long double _Complex __z) __attribute__ ((__nothrow__));
1050# 98 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/complex.h" 2 3 4
1051
1052
1053
1054
1055
1056
1057
1058
1059# 29 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/tgmath.h" 2 3 4
1060# 41 "../../spandsp-0.0.4/src/gsm0610_decode.c" 2
1061
1062
1063
1064
1065# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 1 3 4
1066# 35 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 3 4
1067# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/include/stddef.h" 1 3 4
1068# 214 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/include/stddef.h" 3 4
1069typedef long unsigned int size_t;
1070# 36 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 2 3 4
1071
1072
1073# 98 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 3 4
1074
1075
1076typedef struct
1077 {
1078 int quot;
1079 int rem;
1080 } div_t;
1081
1082
1083
1084typedef struct
1085 {
1086 long int quot;
1087 long int rem;
1088 } ldiv_t;
1089
1090
1091
1092
1093
1094
1095
1096__extension__ typedef struct
1097 {
1098 long long int quot;
1099 long long int rem;
1100 } lldiv_t;
1101
1102
1103# 151 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 3 4
1104
1105
1106
1107extern double atof (__const char *__nptr)
1108 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
1109
1110
1111extern int atoi (__const char *__nptr)
1112 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
1113
1114extern long int atol (__const char *__nptr)
1115 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
1116
1117
1118
1119
1120
1121__extension__ extern long long int atoll (__const char *__nptr)
1122 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
1123
1124
1125
1126
1127
1128
1129extern double strtod (__const char *__restrict __nptr,
1130 char **__restrict __endptr)
1131 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1132
1133
1134
1135
1136
1137extern float strtof (__const char *__restrict __nptr,
1138 char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1139
1140extern long double strtold (__const char *__restrict __nptr,
1141 char **__restrict __endptr)
1142 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1143
1144
1145
1146
1147
1148
1149extern long int strtol (__const char *__restrict __nptr,
1150 char **__restrict __endptr, int __base)
1151 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1152
1153extern unsigned long int strtoul (__const char *__restrict __nptr,
1154 char **__restrict __endptr, int __base)
1155 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1156
1157
1158
1159
1160__extension__
1161extern long long int strtoq (__const char *__restrict __nptr,
1162 char **__restrict __endptr, int __base)
1163 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1164
1165__extension__
1166extern unsigned long long int strtouq (__const char *__restrict __nptr,
1167 char **__restrict __endptr, int __base)
1168 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1169
1170
1171
1172
1173
1174__extension__
1175extern long long int strtoll (__const char *__restrict __nptr,
1176 char **__restrict __endptr, int __base)
1177 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1178
1179__extension__
1180extern unsigned long long int strtoull (__const char *__restrict __nptr,
1181 char **__restrict __endptr, int __base)
1182 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1183
1184# 297 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 3 4
1185extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ;
1186
1187
1188extern long int a64l (__const char *__s)
1189 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
1190
1191
1192
1193
1194# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/types.h" 1 3 4
1195# 29 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/types.h" 3 4
1196
1197
1198# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/types.h" 1 3 4
1199# 28 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/types.h" 3 4
1200# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/wordsize.h" 1 3 4
1201# 29 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/types.h" 2 3 4
1202
1203
1204# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/include/stddef.h" 1 3 4
1205# 32 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/types.h" 2 3 4
1206# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/kernel_types.h" 1 3 4
1207# 10 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/kernel_types.h" 3 4
1208typedef unsigned short __kernel_dev_t;
1209typedef unsigned long __kernel_ino_t;
1210typedef unsigned short __kernel_mode_t;
1211typedef unsigned short __kernel_nlink_t;
1212typedef long __kernel_off_t;
1213typedef int __kernel_pid_t;
1214typedef unsigned int __kernel_ipc_pid_t;
1215typedef unsigned int __kernel_uid_t;
1216typedef unsigned int __kernel_gid_t;
1217typedef unsigned int __kernel_size_t;
1218typedef int __kernel_ssize_t;
1219typedef int __kernel_ptrdiff_t;
1220typedef long __kernel_time_t;
1221typedef long __kernel_suseconds_t;
1222typedef long __kernel_clock_t;
1223typedef int __kernel_daddr_t;
1224typedef char * __kernel_caddr_t;
1225typedef unsigned short __kernel_uid16_t;
1226typedef unsigned short __kernel_gid16_t;
1227typedef unsigned int __kernel_uid32_t;
1228typedef unsigned int __kernel_gid32_t;
1229typedef unsigned short __kernel_old_uid_t;
1230typedef unsigned short __kernel_old_gid_t;
1231typedef long long __kernel_loff_t;
1232typedef __kernel_dev_t __kernel_old_dev_t;
1233
1234typedef struct {
1235
1236
1237
1238 int __val[2];
1239
1240} __kernel_fsid_t;
1241# 33 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/types.h" 2 3 4
1242
1243
1244typedef unsigned char __u_char;
1245typedef unsigned short int __u_short;
1246typedef unsigned int __u_int;
1247typedef unsigned long int __u_long;
1248
1249
1250typedef signed char __int8_t;
1251typedef unsigned char __uint8_t;
1252typedef signed short int __int16_t;
1253typedef unsigned short int __uint16_t;
1254typedef signed int __int32_t;
1255typedef unsigned int __uint32_t;
1256
1257
1258
1259
1260__extension__ typedef signed long long int __int64_t;
1261__extension__ typedef unsigned long long int __uint64_t;
1262
1263
1264
1265
1266
1267
1268
1269__extension__ typedef long long int __quad_t;
1270__extension__ typedef unsigned long long int __u_quad_t;
1271# 135 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/types.h" 3 4
1272# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/typesizes.h" 1 3 4
1273# 136 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/types.h" 2 3 4
1274
1275
1276__extension__ typedef __u_quad_t __dev_t;
1277__extension__ typedef unsigned int __uid_t;
1278__extension__ typedef unsigned int __gid_t;
1279__extension__ typedef unsigned long int __ino_t;
1280__extension__ typedef __u_quad_t __ino64_t;
1281__extension__ typedef unsigned int __mode_t;
1282__extension__ typedef unsigned int __nlink_t;
1283__extension__ typedef long int __off_t;
1284__extension__ typedef __quad_t __off64_t;
1285__extension__ typedef int __pid_t;
1286__extension__ typedef struct { int __val[2]; } __fsid_t;
1287__extension__ typedef long int __clock_t;
1288__extension__ typedef unsigned long int __rlim_t;
1289__extension__ typedef __u_quad_t __rlim64_t;
1290__extension__ typedef unsigned int __id_t;
1291__extension__ typedef long int __time_t;
1292__extension__ typedef unsigned int __useconds_t;
1293__extension__ typedef long int __suseconds_t;
1294
1295__extension__ typedef int __daddr_t;
1296__extension__ typedef long int __swblk_t;
1297__extension__ typedef int __key_t;
1298
1299
1300__extension__ typedef int __clockid_t;
1301
1302
1303__extension__ typedef void * __timer_t;
1304
1305
1306__extension__ typedef long int __blksize_t;
1307
1308
1309
1310
1311__extension__ typedef long int __blkcnt_t;
1312__extension__ typedef __quad_t __blkcnt64_t;
1313
1314
1315__extension__ typedef unsigned long int __fsblkcnt_t;
1316__extension__ typedef __u_quad_t __fsblkcnt64_t;
1317
1318
1319__extension__ typedef unsigned long int __fsfilcnt_t;
1320__extension__ typedef __u_quad_t __fsfilcnt64_t;
1321
1322__extension__ typedef long int __ssize_t;
1323
1324
1325
1326typedef __off64_t __loff_t;
1327typedef __quad_t *__qaddr_t;
1328typedef char *__caddr_t;
1329
1330
1331__extension__ typedef int __intptr_t;
1332
1333
1334__extension__ typedef unsigned int __socklen_t;
1335
1336
1337
1338
1339
1340typedef __kernel_ipc_pid_t __ipc_pid_t;
1341
1342
1343
1344# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/pthreadtypes.h" 1 3 4
1345# 23 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/pthreadtypes.h" 3 4
1346# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/sched.h" 1 3 4
1347# 91 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/sched.h" 3 4
1348struct __sched_param
1349 {
1350 int __sched_priority;
1351 };
1352# 24 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/pthreadtypes.h" 2 3 4
1353
1354
1355struct _pthread_fastlock
1356{
1357 long int __status;
1358 int __spinlock;
1359
1360};
1361
1362
1363
1364typedef struct _pthread_descr_struct *_pthread_descr;
1365
1366
1367
1368
1369
1370typedef struct __pthread_attr_s
1371{
1372 int __detachstate;
1373 int __schedpolicy;
1374 struct __sched_param __schedparam;
1375 int __inheritsched;
1376 int __scope;
1377 size_t __guardsize;
1378 int __stackaddr_set;
1379 void *__stackaddr;
1380 size_t __stacksize;
1381} pthread_attr_t;
1382
1383
1384
1385typedef struct
1386{
1387 struct _pthread_fastlock __c_lock;
1388 _pthread_descr __c_waiting;
1389} pthread_cond_t;
1390
1391
1392
1393typedef struct
1394{
1395 int __dummy;
1396} pthread_condattr_t;
1397
1398
1399typedef unsigned int pthread_key_t;
1400
1401
1402
1403
1404
1405typedef struct
1406{
1407 int __m_reserved;
1408 int __m_count;
1409 _pthread_descr __m_owner;
1410 int __m_kind;
1411 struct _pthread_fastlock __m_lock;
1412} pthread_mutex_t;
1413
1414
1415
1416typedef struct
1417{
1418 int __mutexkind;
1419} pthread_mutexattr_t;
1420
1421
1422
1423typedef int pthread_once_t;
1424# 140 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/pthreadtypes.h" 3 4
1425typedef unsigned long int pthread_t;
1426# 207 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/types.h" 2 3 4
1427# 32 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/types.h" 2 3 4
1428
1429
1430
1431typedef __u_char u_char;
1432typedef __u_short u_short;
1433typedef __u_int u_int;
1434typedef __u_long u_long;
1435typedef __quad_t quad_t;
1436typedef __u_quad_t u_quad_t;
1437typedef __fsid_t fsid_t;
1438
1439
1440
1441
1442typedef __loff_t loff_t;
1443
1444
1445
1446typedef __ino_t ino_t;
1447# 62 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/types.h" 3 4
1448typedef __dev_t dev_t;
1449
1450
1451
1452
1453typedef __gid_t gid_t;
1454
1455
1456
1457
1458typedef __mode_t mode_t;
1459
1460
1461
1462
1463typedef __nlink_t nlink_t;
1464
1465
1466
1467
1468typedef __uid_t uid_t;
1469
1470
1471
1472
1473
1474typedef __off_t off_t;
1475# 100 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/types.h" 3 4
1476typedef __pid_t pid_t;
1477
1478
1479
1480
1481typedef __id_t id_t;
1482
1483
1484
1485
1486typedef __ssize_t ssize_t;
1487
1488
1489
1490
1491
1492typedef __daddr_t daddr_t;
1493typedef __caddr_t caddr_t;
1494
1495
1496
1497
1498
1499typedef __key_t key_t;
1500# 133 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/types.h" 3 4
1501# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/time.h" 1 3 4
1502# 75 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/time.h" 3 4
1503
1504
1505typedef __time_t time_t;
1506
1507
1508
1509# 93 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/time.h" 3 4
1510typedef __clockid_t clockid_t;
1511# 105 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/time.h" 3 4
1512typedef __timer_t timer_t;
1513# 134 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/types.h" 2 3 4
1514# 147 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/types.h" 3 4
1515# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/include/stddef.h" 1 3 4
1516# 148 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/types.h" 2 3 4
1517
1518
1519
1520typedef unsigned long int ulong;
1521typedef unsigned short int ushort;
1522typedef unsigned int uint;
1523# 201 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/types.h" 3 4
1524typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
1525typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
1526typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
1527typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
1528
1529typedef int register_t __attribute__ ((__mode__ (__word__)));
1530# 217 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/types.h" 3 4
1531# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/endian.h" 1 3 4
1532# 37 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/endian.h" 3 4
1533# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/endian.h" 1 3 4
1534# 38 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/endian.h" 2 3 4
1535# 218 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/types.h" 2 3 4
1536
1537
1538# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/select.h" 1 3 4
1539# 31 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/select.h" 3 4
1540# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/select.h" 1 3 4
1541# 32 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/select.h" 2 3 4
1542
1543
1544# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/sigset.h" 1 3 4
1545# 23 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/sigset.h" 3 4
1546typedef int __sig_atomic_t;
1547
1548
1549
1550
1551typedef struct
1552 {
1553 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
1554 } __sigset_t;
1555# 35 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/select.h" 2 3 4
1556
1557
1558
1559typedef __sigset_t sigset_t;
1560
1561
1562
1563
1564
1565# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/time.h" 1 3 4
1566# 121 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/time.h" 3 4
1567struct timespec
1568 {
1569 __time_t tv_sec;
1570 long int tv_nsec;
1571 };
1572# 45 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/select.h" 2 3 4
1573
1574# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/time.h" 1 3 4
1575# 73 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/time.h" 3 4
1576struct timeval
1577 {
1578 __time_t tv_sec;
1579 __suseconds_t tv_usec;
1580 };
1581# 47 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/select.h" 2 3 4
1582
1583
1584typedef __suseconds_t suseconds_t;
1585
1586
1587
1588
1589
1590typedef long int __fd_mask;
1591# 67 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/select.h" 3 4
1592typedef struct
1593 {
1594
1595
1596
1597
1598
1599
1600 __fd_mask __fds_bits[1024 / (8 * sizeof (__fd_mask))];
1601
1602
1603 } fd_set;
1604
1605
1606
1607
1608
1609
1610typedef __fd_mask fd_mask;
1611# 99 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/select.h" 3 4
1612
1613# 109 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/select.h" 3 4
1614extern int select (int __nfds, fd_set *__restrict __readfds,
1615 fd_set *__restrict __writefds,
1616 fd_set *__restrict __exceptfds,
1617 struct timeval *__restrict __timeout);
1618# 128 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/select.h" 3 4
1619
1620# 221 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/types.h" 2 3 4
1621
1622
1623# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/sysmacros.h" 1 3 4
1624# 29 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/sysmacros.h" 3 4
1625__extension__
1626static __inline unsigned int gnu_dev_major (unsigned long long int __dev)
1627 __attribute__ ((__nothrow__));
1628__extension__
1629static __inline unsigned int gnu_dev_minor (unsigned long long int __dev)
1630 __attribute__ ((__nothrow__));
1631__extension__
1632static __inline unsigned long long int gnu_dev_makedev (unsigned int __major,
1633 unsigned int __minor)
1634 __attribute__ ((__nothrow__));
1635
1636
1637__extension__ static __inline unsigned int
1638__attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev)
1639{
1640 return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
1641}
1642
1643__extension__ static __inline unsigned int
1644__attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev)
1645{
1646 return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
1647}
1648
1649__extension__ static __inline unsigned long long int
1650__attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor)
1651{
1652 return ((__minor & 0xff) | ((__major & 0xfff) << 8)
1653 | (((unsigned long long int) (__minor & ~0xff)) << 12)
1654 | (((unsigned long long int) (__major & ~0xfff)) << 32));
1655}
1656# 224 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/types.h" 2 3 4
1657# 235 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/types.h" 3 4
1658typedef __blkcnt_t blkcnt_t;
1659
1660
1661
1662typedef __fsblkcnt_t fsblkcnt_t;
1663
1664
1665
1666typedef __fsfilcnt_t fsfilcnt_t;
1667# 270 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/types.h" 3 4
1668# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/bits/pthreadtypes.h" 1 3 4
1669# 271 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/sys/types.h" 2 3 4
1670
1671
1672
1673# 307 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 2 3 4
1674
1675
1676
1677
1678
1679
1680extern long int random (void) __attribute__ ((__nothrow__));
1681
1682
1683extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__));
1684
1685
1686
1687
1688
1689extern char *initstate (unsigned int __seed, char *__statebuf,
1690 size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1691
1692
1693
1694extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1695
1696
1697
1698
1699
1700
1701
1702struct random_data
1703 {
1704 int32_t *fptr;
1705 int32_t *rptr;
1706 int32_t *state;
1707 int rand_type;
1708 int rand_deg;
1709 int rand_sep;
1710 int32_t *end_ptr;
1711 };
1712
1713extern int random_r (struct random_data *__restrict __buf,
1714 int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1715
1716extern int srandom_r (unsigned int __seed, struct random_data *__buf)
1717 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1718
1719extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
1720 size_t __statelen,
1721 struct random_data *__restrict __buf)
1722 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
1723
1724extern int setstate_r (char *__restrict __statebuf,
1725 struct random_data *__restrict __buf)
1726 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1727
1728
1729
1730
1731
1732
1733extern int rand (void) __attribute__ ((__nothrow__));
1734
1735extern void srand (unsigned int __seed) __attribute__ ((__nothrow__));
1736
1737
1738
1739
1740extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__));
1741# 382 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 3 4
1742extern double drand48 (void) __attribute__ ((__nothrow__));
1743extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1744
1745
1746
1747extern long int lrand48 (void) __attribute__ ((__nothrow__));
1748extern long int nrand48 (unsigned short int __xsubi[3])
1749 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1750
1751
1752extern long int mrand48 (void) __attribute__ ((__nothrow__));
1753extern long int jrand48 (unsigned short int __xsubi[3])
1754 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1755
1756
1757extern void srand48 (long int __seedval) __attribute__ ((__nothrow__));
1758extern unsigned short int *seed48 (unsigned short int __seed16v[3])
1759 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1760extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1761
1762
1763
1764
1765
1766struct drand48_data
1767 {
1768 unsigned short int __x[3];
1769 unsigned short int __old_x[3];
1770 unsigned short int __c;
1771 unsigned short int __init;
1772 unsigned long long int __a;
1773 };
1774
1775
1776
1777extern int drand48_r (struct drand48_data *__restrict __buffer,
1778 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1779extern int erand48_r (unsigned short int __xsubi[3],
1780 struct drand48_data *__restrict __buffer,
1781 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1782
1783
1784
1785extern int lrand48_r (struct drand48_data *__restrict __buffer,
1786 long int *__restrict __result)
1787 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1788extern int nrand48_r (unsigned short int __xsubi[3],
1789 struct drand48_data *__restrict __buffer,
1790 long int *__restrict __result)
1791 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1792
1793
1794extern int mrand48_r (struct drand48_data *__restrict __buffer,
1795 long int *__restrict __result)
1796 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1797extern int jrand48_r (unsigned short int __xsubi[3],
1798 struct drand48_data *__restrict __buffer,
1799 long int *__restrict __result)
1800 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1801
1802
1803extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
1804 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1805
1806extern int seed48_r (unsigned short int __seed16v[3],
1807 struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1808
1809extern int lcong48_r (unsigned short int __param[7],
1810 struct drand48_data *__buffer)
1811 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1822
1823extern void *calloc (size_t __nmemb, size_t __size)
1824 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1825
1826
1827
1828
1829
1830
1831
1832extern void *realloc (void *__ptr, size_t __size)
1833 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));
1834
1835extern void free (void *__ptr) __attribute__ ((__nothrow__));
1836
1837
1838
1839
1840extern void cfree (void *__ptr) __attribute__ ((__nothrow__));
1841
1842
1843
1844# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/alloca.h" 1 3 4
1845# 25 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/alloca.h" 3 4
1846# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/include/stddef.h" 1 3 4
1847# 26 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/alloca.h" 2 3 4
1848
1849
1850
1851
1852
1853
1854
1855extern void *alloca (size_t __size) __attribute__ ((__nothrow__));
1856
1857
1858
1859
1860
1861
1862
1863
1864# 485 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 2 3 4
1865
1866
1867
1868
1869extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1870# 498 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 3 4
1871
1872
1873extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
1874
1875
1876
1877extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1878
1879
1880
1881
1882
1883extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
1884 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1885
1886
1887
1888
1889
1890
1891extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
1892
1893
1894
1895
1896
1897
1898extern void _Exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
1899
1900
1901
1902
1903
1904
1905extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1906
1907
1908
1909
1910extern char *__secure_getenv (__const char *__name)
1911 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1912
1913
1914
1915
1916
1917extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1918
1919
1920
1921
1922
1923extern int setenv (__const char *__name, __const char *__value, int __replace)
1924 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1925
1926
1927extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__));
1928# 570 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 3 4
1929extern int clearenv (void) __attribute__ ((__nothrow__));
1930# 579 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 3 4
1931extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1932# 590 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 3 4
1933extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ;
1934# 610 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 3 4
1935extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1936
1937
1938
1939
1940
1941
1942
1943
1944extern int system (__const char *__command) ;
1945
1946# 639 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 3 4
1947extern char *realpath (__const char *__restrict __name,
1948 char *__restrict __resolved) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1949
1950
1951
1952
1953
1954
1955typedef int (*__compar_fn_t) (__const void *, __const void *);
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965extern void *bsearch (__const void *__key, __const void *__base,
1966 size_t __nmemb, size_t __size, __compar_fn_t __compar)
1967 __attribute__ ((__nonnull__ (1, 2, 5))) ;
1968
1969
1970
1971extern void qsort (void *__base, size_t __nmemb, size_t __size,
1972 __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
1973
1974
1975
1976extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1977extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1978
1979
1980
1981__extension__ extern long long int llabs (long long int __x)
1982 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1983
1984
1985
1986
1987
1988
1989
1990extern div_t div (int __numer, int __denom)
1991 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1992extern ldiv_t ldiv (long int __numer, long int __denom)
1993 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1994
1995
1996
1997
1998__extension__ extern lldiv_t lldiv (long long int __numer,
1999 long long int __denom)
2000 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
2001
2002# 720 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 3 4
2003extern char *gcvt (double __value, int __ndigit, char *__buf)
2004 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
2005# 786 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 3 4
2006extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
2007# 863 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/stdlib.h" 3 4
2008
2009# 46 "../../spandsp-0.0.4/src/gsm0610_decode.c" 2
2010# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/memory.h" 1 3 4
2011# 30 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/memory.h" 3 4
2012# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/string.h" 1 3 4
2013# 28 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/string.h" 3 4
2014
2015
2016
2017
2018
2019# 1 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/include/stddef.h" 1 3 4
2020# 34 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/string.h" 2 3 4
2021
2022
2023
2024
2025extern void *memcpy (void *__restrict __dest,
2026 __const void *__restrict __src, size_t __n)
2027 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2028
2029
2030extern void *memmove (void *__dest, __const void *__src, size_t __n)
2031 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2032
2033
2034
2035
2036
2037
2038extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
2039 int __c, size_t __n)
2040 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2041
2042
2043
2044
2045
2046extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2047
2048
2049extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
2050 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
2051
2052
2053extern void *memchr (__const void *__s, int __c, size_t __n)
2054 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
2055
2056# 82 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/string.h" 3 4
2057
2058
2059extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
2060 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2061
2062extern char *strncpy (char *__restrict __dest,
2063 __const char *__restrict __src, size_t __n)
2064 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2065
2066
2067extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
2068 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2069
2070extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
2071 size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2072
2073
2074extern int strcmp (__const char *__s1, __const char *__s2)
2075 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
2076
2077extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
2078 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
2079
2080
2081extern int strcoll (__const char *__s1, __const char *__s2)
2082 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
2083
2084extern size_t strxfrm (char *__restrict __dest,
2085 __const char *__restrict __src, size_t __n)
2086 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
2087
2088# 130 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/string.h" 3 4
2089extern char *strdup (__const char *__s)
2090 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
2091# 165 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/string.h" 3 4
2092
2093
2094extern char *strchr (__const char *__s, int __c)
2095 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
2096
2097extern char *strrchr (__const char *__s, int __c)
2098 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
2099
2100# 181 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/string.h" 3 4
2101
2102
2103
2104extern size_t strcspn (__const char *__s, __const char *__reject)
2105 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
2106
2107
2108extern size_t strspn (__const char *__s, __const char *__accept)
2109 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
2110
2111extern char *strpbrk (__const char *__s, __const char *__accept)
2112 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
2113
2114extern char *strstr (__const char *__haystack, __const char *__needle)
2115 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
2116
2117
2118
2119extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
2120 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
2121
2122# 212 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/string.h" 3 4
2123extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
2124 char **__restrict __save_ptr)
2125 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
2126# 244 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/string.h" 3 4
2127
2128
2129extern size_t strlen (__const char *__s)
2130 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
2131
2132# 258 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/string.h" 3 4
2133
2134
2135extern char *strerror (int __errnum) __attribute__ ((__nothrow__));
2136
2137# 285 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/string.h" 3 4
2138extern char *__glibc_strerror_r (int __errnum, char *__buf, size_t __buflen)
2139 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
2140
2141extern char * strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("_" "__glibc_strerror_r") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
2142# 306 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/string.h" 3 4
2143extern void bcopy (__const void *__src, void *__dest, size_t __n)
2144 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2145
2146
2147extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2148
2149
2150extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
2151 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
2152
2153
2154extern char *index (__const char *__s, int __c)
2155 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
2156
2157
2158extern char *rindex (__const char *__s, int __c)
2159 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
2160# 339 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/string.h" 3 4
2161extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2162# 352 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/string.h" 3 4
2163extern int strcasecmp (__const char *__s1, __const char *__s2)
2164 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
2165
2166
2167extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
2168 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
2169# 375 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/string.h" 3 4
2170extern char *strsep (char **__restrict __stringp,
2171 __const char *__restrict __delim)
2172 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2173# 429 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/string.h" 3 4
2174extern size_t strlcat(char *__restrict dst, const char *__restrict src,
2175 size_t n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2176extern size_t strlcpy(char *__restrict dst, const char *__restrict src,
2177 size_t n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2178
2179
2180
2181# 31 "/DEVEL/embedded/blackfin-sources/build/out-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/memory.h" 2 3 4
2182# 47 "../../spandsp-0.0.4/src/gsm0610_decode.c" 2
2183
2184# 1 "../../spandsp-0.0.4/src/spandsp/telephony.h" 1
2185# 41 "../../spandsp-0.0.4/src/spandsp/telephony.h"
2186typedef int (span_rx_handler_t)(void *s, const int16_t amp[], int len);
2187
2188
2189typedef int (span_mod_handler_t)(void *s, int16_t amp[], int len);
2190
2191
2192typedef int (span_tx_handler_t)(void *s, int16_t amp[], int max_len);
2193# 49 "../../spandsp-0.0.4/src/gsm0610_decode.c" 2
2194# 1 "../../spandsp-0.0.4/src/spandsp/bitstream.h" 1
2195# 39 "../../spandsp-0.0.4/src/spandsp/bitstream.h"
2196typedef struct
2197{
2198 unsigned int bitstream;
2199 unsigned int residue;
2200} bitstream_state_t;
2201# 56 "../../spandsp-0.0.4/src/spandsp/bitstream.h"
2202void bitstream_put(bitstream_state_t *s, uint8_t **c, unsigned int value, int bits);
2203
2204void bitstream_put2(bitstream_state_t *s, uint8_t **c, unsigned int value, int bits);
2205
2206
2207
2208
2209
2210
2211unsigned int bitstream_get(bitstream_state_t *s, const uint8_t **c, int bits);
2212
2213unsigned int bitstream_get2(bitstream_state_t *s, const uint8_t **c, int bits);
2214
2215
2216
2217
2218void bitstream_flush(bitstream_state_t *s, uint8_t **c);
2219
2220void bitstream_flush2(bitstream_state_t *s, uint8_t **c);
2221
2222
2223
2224
2225bitstream_state_t *bitstream_init(bitstream_state_t *s);
2226# 50 "../../spandsp-0.0.4/src/gsm0610_decode.c" 2
2227# 1 "../../spandsp-0.0.4/src/spandsp/dc_restore.h" 1
2228# 59 "../../spandsp-0.0.4/src/spandsp/dc_restore.h"
2229typedef struct
2230{
2231 int32_t state;
2232} dc_restore_state_t;
2233
2234
2235
2236
2237
2238
2239static __inline__ void dc_restore_init(dc_restore_state_t *dc)
2240{
2241 dc->state = 0;
2242}
2243
2244
2245static __inline__ int16_t dc_restore(dc_restore_state_t *dc, int16_t sample)
2246{
2247 dc->state += ((((int32_t) sample << 15) - dc->state) >> 14);
2248 return (int16_t) (sample - (dc->state >> 15));
2249}
2250
2251
2252static __inline__ int16_t dc_restore_estimate(dc_restore_state_t *dc)
2253{
2254 return (int16_t) (dc->state >> 15);
2255}
2256
2257
2258static __inline__ int16_t saturate(int32_t amp)
2259{
2260 int16_t amp16;
2261
2262
2263 amp16 = (int16_t) amp;
2264 if (amp == amp16)
2265 return amp16;
2266 if (amp > (32767))
2267 return (32767);
2268 return (-32767-1);
2269}
2270
2271
2272static __inline__ int16_t fsaturatef(float famp)
2273{
2274 if (famp > 32767.0)
2275 return (32767);
2276 if (famp < -32768.0)
2277 return (-32767-1);
2278 return (int16_t) rintf(famp);
2279}
2280
2281
2282static __inline__ int16_t fsaturate(double damp)
2283{
2284 if (damp > 32767.0)
2285 return (32767);
2286 if (damp < -32768.0)
2287 return (-32767-1);
2288 return (int16_t) (__extension__ ({ __typeof__(*(0 ? (__typeof__ (0 ? (double *) 0 : (void *) ((((__typeof__(damp)) 0.25) && ((__typeof__(damp)) 0.25 - 1))))) 0 : (__typeof__ (0 ? (__typeof__(damp) *) 0 : (void *) (!((((__typeof__(damp)) 0.25) && ((__typeof__(damp)) 0.25 - 1)))))) 0)) __tgmres; if (sizeof (damp) == sizeof (double) || __builtin_classify_type (damp) != 8) __tgmres = rint (damp); else if (sizeof (damp) == sizeof (float)) __tgmres = rintf (damp); else __tgmres = rint (damp); __tgmres; }));
2289}
2290# 51 "../../spandsp-0.0.4/src/gsm0610_decode.c" 2
2291# 1 "../../spandsp-0.0.4/src/spandsp/gsm0610.h" 1
2292# 51 "../../spandsp-0.0.4/src/spandsp/gsm0610.h"
2293enum
2294{
2295 GSM0610_PACKING_NONE,
2296 GSM0610_PACKING_WAV49,
2297 GSM0610_PACKING_VOIP
2298};
2299
2300
2301
2302
2303typedef struct
2304{
2305 int16_t LARc[8];
2306 int16_t Nc[4];
2307 int16_t bc[4];
2308 int16_t Mc[4];
2309 int16_t xmaxc[4];
2310 int16_t xMc[4][13];
2311} gsm0610_frame_t;
2312
2313
2314
2315
2316
2317typedef struct
2318{
2319
2320 int packing;
2321
2322 int16_t dp0[280];
2323
2324
2325 int16_t z1;
2326 int32_t L_z2;
2327
2328 int16_t mp;
2329
2330
2331 int16_t u[8];
2332 int16_t LARpp[2][8];
2333 int16_t j;
2334
2335
2336 int16_t nrp;
2337
2338 int16_t v[9];
2339
2340 int16_t msr;
2341
2342
2343 int16_t e[50];
2344} gsm0610_state_t;
2345# 113 "../../spandsp-0.0.4/src/spandsp/gsm0610.h"
2346gsm0610_state_t *gsm0610_init(gsm0610_state_t *s, int packing);
2347
2348
2349
2350
2351int gsm0610_release(gsm0610_state_t *s);
2352
2353
2354
2355
2356
2357int gsm0610_set_packing(gsm0610_state_t *s, int packing);
2358
2359
2360
2361
2362
2363
2364
2365int gsm0610_encode(gsm0610_state_t *s, uint8_t code[], const int16_t amp[], int quant);
2366
2367
2368
2369
2370
2371
2372
2373int gsm0610_decode(gsm0610_state_t *s, int16_t amp[], const uint8_t code[], int quant);
2374
2375int gsm0610_pack_none(uint8_t c[], const gsm0610_frame_t *s);
2376
2377
2378
2379
2380
2381int gsm0610_pack_wav49(uint8_t c[], const gsm0610_frame_t *s);
2382
2383
2384
2385
2386
2387int gsm0610_pack_voip(uint8_t c[], const gsm0610_frame_t *s);
2388
2389int gsm0610_unpack_none(gsm0610_frame_t *s, const uint8_t c[]);
2390
2391
2392
2393
2394
2395int gsm0610_unpack_wav49(gsm0610_frame_t *s, const uint8_t c[]);
2396
2397
2398
2399
2400
2401int gsm0610_unpack_voip(gsm0610_frame_t *s, const uint8_t c[]);
2402# 52 "../../spandsp-0.0.4/src/gsm0610_decode.c" 2
2403
2404# 1 "../../spandsp-0.0.4/src/gsm0610_local.h" 1
2405# 38 "../../spandsp-0.0.4/src/gsm0610_local.h"
2406static __inline__ int16_t gsm_add(int16_t a, int16_t b)
2407{
2408# 53 "../../spandsp-0.0.4/src/gsm0610_local.h"
2409 int32_t sum;
2410
2411 sum = (int32_t) a + (int32_t) b;
2412 return saturate(sum);
2413
2414}
2415
2416
2417static __inline__ int32_t gsm_l_add(int32_t a, int32_t b)
2418{
2419# 76 "../../spandsp-0.0.4/src/gsm0610_local.h"
2420 uint32_t A;
2421
2422 if (a < 0)
2423 {
2424 if (b >= 0)
2425 return a + b;
2426
2427 A = (uint32_t) -(a + 1) + (uint32_t) -(b + 1);
2428 return (A >= (2147483647)) ? (-2147483647-1) : -(int32_t) A - 2;
2429 }
2430
2431 if (b <= 0)
2432 return a + b;
2433
2434 A = (uint32_t) a + (uint32_t) b;
2435 return (A > (2147483647)) ? (2147483647) : A;
2436
2437}
2438
2439
2440static __inline__ int16_t gsm_sub(int16_t a, int16_t b)
2441{
2442 int32_t diff;
2443
2444 diff = (int32_t) a - (int32_t) b;
2445 return saturate(diff);
2446}
2447
2448
2449static __inline__ int16_t gsm_mult(int16_t a, int16_t b)
2450{
2451 if (a == (-32767-1) && b == (-32767-1))
2452 return (32767);
2453
2454 return (int16_t) (((int32_t) a * (int32_t) b) >> 15);
2455}
2456
2457
2458static __inline__ int32_t gsm_l_mult(int16_t a, int16_t b)
2459{
2460 ((void) (0));
2461 return ((int32_t) a * (int32_t) b) << 1;
2462}
2463
2464
2465static __inline__ int16_t gsm_mult_r(int16_t a, int16_t b)
2466{
2467 int32_t prod;
2468
2469 if (b == (-32767-1) && a == (-32767-1))
2470 return (32767);
2471
2472 prod = (int32_t) a * (int32_t) b + 16384;
2473 prod >>= 15;
2474 return (int16_t) (prod & 0xFFFF);
2475}
2476
2477
2478static __inline__ int16_t gsm_abs(int16_t a)
2479{
2480 return (a == (-32767-1)) ? (32767) : (int16_t) abs(a);
2481}
2482
2483
2484static __inline__ int16_t gsm_asr(int16_t a, int n)
2485{
2486 if (n >= 16)
2487 return -(a < 0);
2488
2489 if (n <= -16)
2490 return 0;
2491
2492 if (n < 0)
2493 return a << -n;
2494
2495 return a >> n;
2496}
2497
2498
2499static __inline__ int16_t gsm_asl(int16_t a, int n)
2500{
2501 if (n >= 16)
2502 return 0;
2503
2504 if (n <= -16)
2505 return -(a < 0);
2506
2507 if (n < 0)
2508 return gsm_asr(a, -n);
2509
2510 return a << n;
2511}
2512
2513
2514extern void gsm0610_long_term_predictor(gsm0610_state_t *s,
2515 int16_t d[40],
2516 int16_t *dp,
2517 int16_t e[40],
2518 int16_t dpp[40],
2519 int16_t *Nc,
2520 int16_t *bc);
2521
2522extern void gsm0610_lpc_analysis(gsm0610_state_t *s,
2523 int16_t amp[160],
2524 int16_t LARc[8]);
2525
2526extern void gsm0610_preprocess(gsm0610_state_t *s,
2527 const int16_t amp[],
2528 int16_t so[]);
2529
2530extern void gsm0610_short_term_analysis_filter(gsm0610_state_t *s,
2531 int16_t LARc[8],
2532 int16_t amp[160]);
2533
2534extern void gsm0610_long_term_synthesis_filtering(gsm0610_state_t *s,
2535 int16_t Ncr,
2536 int16_t bcr,
2537 int16_t erp[40],
2538 int16_t *drp);
2539
2540extern void gsm0610_rpe_decoding(gsm0610_state_t *s,
2541 int16_t xmaxcr,
2542 int16_t Mcr,
2543 int16_t *xMcr,
2544 int16_t erp[40]);
2545
2546extern void gsm0610_rpe_encoding(gsm0610_state_t *s,
2547 int16_t *e,
2548 int16_t *xmaxc,
2549 int16_t *Mc,
2550 int16_t xMc[13]);
2551
2552extern void gsm0610_short_term_synthesis_filter(gsm0610_state_t *s,
2553 int16_t LARcr[8],
2554 int16_t drp[40],
2555 int16_t amp[160]);
2556
2557extern int16_t gsm0610_norm(int32_t a);
2558# 54 "../../spandsp-0.0.4/src/gsm0610_decode.c" 2
2559
2560
2561
2562static void postprocessing(gsm0610_state_t *s, int16_t amp[])
2563{
2564 int k;
2565 int16_t msr;
2566 int16_t tmp;
2567
2568 msr = s->msr;
2569 for (k = 0; k < 160; k++)
2570 {
2571 tmp = gsm_mult_r(msr, 28180);
2572
2573 msr = gsm_add(amp[k], tmp);
2574
2575 amp[k] = (int16_t) (gsm_add(msr, msr) & 0xFFF8);
2576 }
2577
2578 s->msr = msr;
2579}
2580
2581
2582static void decode_a_frame(gsm0610_state_t *s,
2583 int16_t amp[160],
2584 gsm0610_frame_t *f)
2585{
2586 int j;
2587 int k;
2588 int16_t erp[40];
2589 int16_t wt[160];
2590 int16_t *drp;
2591
2592 drp = s->dp0 + 120;
2593 for (j = 0; j < 4; j++)
2594 {
2595 gsm0610_rpe_decoding(s, f->xmaxc[j], f->Mc[j], f->xMc[j], erp);
2596 gsm0610_long_term_synthesis_filtering(s, f->Nc[j], f->bc[j], erp, drp);
2597 for (k = 0; k < 40; k++)
2598 wt[j*40 + k] = drp[k];
2599
2600 }
2601
2602
2603 gsm0610_short_term_synthesis_filter(s, f->LARc, wt, amp);
2604 postprocessing(s, amp);
2605}
2606
2607
2608int gsm0610_unpack_none(gsm0610_frame_t *s, const uint8_t c[])
2609{
2610 int i;
2611 int j;
2612 int k;
2613
2614 i = 0;
2615 for (j = 0; j < 8; j++)
2616 s->LARc[j] = c[i++];
2617 for (j = 0; j < 4; j++)
2618 {
2619 s->Nc[j] = c[i++];
2620 s->bc[j] = c[i++];
2621 s->Mc[j] = c[i++];
2622 s->xmaxc[j] = c[i++];
2623 for (k = 0; k < 13; k++)
2624 s->xMc[j][k] = c[i++];
2625 }
2626 return 76;
2627}
2628
2629
2630int gsm0610_unpack_wav49(gsm0610_frame_t *s, const uint8_t c[])
2631{
2632 uint16_t sr;
2633 int i;
2634
2635 sr = *c++;
2636 s->LARc[0] = sr & 0x3F;
2637 sr >>= 6;
2638 sr |= (uint16_t) *c++ << 2;
2639 s->LARc[1] = sr & 0x3F;
2640 sr >>= 6;
2641 sr |= (uint16_t) *c++ << 4;
2642 s->LARc[2] = sr & 0x1F;
2643 sr >>= 5;
2644 s->LARc[3] = sr & 0x1F;
2645 sr >>= 5;
2646 sr |= (uint16_t) *c++ << 2;
2647 s->LARc[4] = sr & 0xF;
2648 sr >>= 4;
2649 s->LARc[5] = sr & 0xF;
2650 sr >>= 4;
2651 sr |= (uint16_t) *c++ << 2;
2652 s->LARc[6] = sr & 0x7;
2653 sr >>= 3;
2654 s->LARc[7] = sr & 0x7;
2655 sr >>= 3;
2656
2657 for (i = 0; i < 4; i++)
2658 {
2659 sr |= (uint16_t) *c++ << 4;
2660 s->Nc[i] = sr & 0x7F;
2661 sr >>= 7;
2662 s->bc[i] = sr & 0x3;
2663 sr >>= 2;
2664 s->Mc[i] = sr & 0x3;
2665 sr >>= 2;
2666 sr |= (uint16_t) *c++ << 1;
2667 s->xmaxc[i] = sr & 0x3F;
2668 sr >>= 6;
2669 s->xMc[i][0] = sr & 0x7;
2670 sr >>= 3;
2671 sr = *c++;
2672 s->xMc[i][1] = sr & 0x7;
2673 sr >>= 3;
2674 s->xMc[i][2] = sr & 0x7;
2675 sr >>= 3;
2676 sr |= (uint16_t) *c++ << 2;
2677 s->xMc[i][3] = sr & 0x7;
2678 sr >>= 3;
2679 s->xMc[i][4] = sr & 0x7;
2680 sr >>= 3;
2681 s->xMc[i][5] = sr & 0x7;
2682 sr >>= 3;
2683 sr |= (uint16_t) *c++ << 1;
2684 s->xMc[i][6] = sr & 0x7;
2685 sr >>= 3;
2686 s->xMc[i][7] = sr & 0x7;
2687 sr >>= 3;
2688 s->xMc[i][8] = sr & 0x7;
2689 sr >>= 3;
2690 sr = *c++;
2691 s->xMc[i][9] = sr & 0x7;
2692 sr >>= 3;
2693 s->xMc[i][10] = sr & 0x7;
2694 sr >>= 3;
2695 sr |= (uint16_t) *c++ << 2;
2696 s->xMc[i][11] = sr & 0x7;
2697 sr >>= 3;
2698 s->xMc[i][12] = sr & 0x7;
2699 sr >>= 3;
2700 }
2701
2702 s++;
2703 sr |= (uint16_t) *c++ << 4;
2704 s->LARc[0] = sr & 0x3F;
2705 sr >>= 6;
2706 s->LARc[1] = sr & 0x3F;
2707 sr >>= 6;
2708 sr = *c++;
2709 s->LARc[2] = sr & 0x1F;
2710 sr >>= 5;
2711 sr |= (uint16_t) *c++ << 3;
2712 s->LARc[3] = sr & 0x1F;
2713 sr >>= 5;
2714 s->LARc[4] = sr & 0xF;
2715 sr >>= 4;
2716 sr |= (uint16_t) *c++ << 2;
2717 s->LARc[5] = sr & 0xF;
2718 sr >>= 4;
2719 s->LARc[6] = sr & 0x7;
2720 sr >>= 3;
2721 s->LARc[7] = sr & 0x7;
2722 sr >>= 3;
2723
2724 for (i = 0; i < 4; i++)
2725 {
2726 sr = *c++;
2727 s->Nc[i] = sr & 0x7F;
2728 sr >>= 7;
2729 sr |= (uint16_t) *c++ << 1;
2730 s->bc[i] = sr & 0x3;
2731 sr >>= 2;
2732 s->Mc[i] = sr & 0x3;
2733 sr >>= 2;
2734 sr |= (uint16_t) *c++ << 5;
2735 s->xmaxc[i] = sr & 0x3F;
2736 sr >>= 6;
2737 s->xMc[i][0] = sr & 0x7;
2738 sr >>= 3;
2739 s->xMc[i][1] = sr & 0x7;
2740 sr >>= 3;
2741 sr |= (uint16_t) *c++ << 1;
2742 s->xMc[i][2] = sr & 0x7;
2743 sr >>= 3;
2744 s->xMc[i][3] = sr & 0x7;
2745 sr >>= 3;
2746 s->xMc[i][4] = sr & 0x7;
2747 sr >>= 3;
2748 sr = *c++;
2749 s->xMc[i][5] = sr & 0x7;
2750 sr >>= 3;
2751 s->xMc[i][6] = sr & 0x7;
2752 sr >>= 3;
2753 sr |= (uint16_t) *c++ << 2;
2754 s->xMc[i][7] = sr & 0x7;
2755 sr >>= 3;
2756 s->xMc[i][8] = sr & 0x7;
2757 sr >>= 3;
2758 s->xMc[i][9] = sr & 0x7;
2759 sr >>= 3;
2760 sr |= (uint16_t) *c++ << 1;
2761 s->xMc[i][10] = sr & 0x7;
2762 sr >>= 3;
2763 s->xMc[i][11] = sr & 0x7;
2764 sr >>= 3;
2765 s->xMc[i][12] = sr & 0x7;
2766 sr >>= 3;
2767 }
2768 return 65;
2769}
2770
2771
2772int gsm0610_unpack_voip(gsm0610_frame_t *s, const uint8_t c[33])
2773{
2774 int i;
2775
2776 s->LARc[0] = (*c++ & 0xF) << 2;
2777 s->LARc[0] |= (*c >> 6) & 0x3;
2778 s->LARc[1] = *c++ & 0x3F;
2779 s->LARc[2] = (*c >> 3) & 0x1F;
2780 s->LARc[3] = (*c++ & 0x7) << 2;
2781 s->LARc[3] |= (*c >> 6) & 0x3;
2782 s->LARc[4] = (*c >> 2) & 0xF;
2783 s->LARc[5] = (*c++ & 0x3) << 2;
2784 s->LARc[5] |= (*c >> 6) & 0x3;
2785 s->LARc[6] = (*c >> 3) & 0x7;
2786 s->LARc[7] = *c++ & 0x7;
2787
2788 for (i = 0; i < 4; i++)
2789 {
2790 s->Nc[i] = (*c >> 1) & 0x7F;
2791 s->bc[i] = (*c++ & 0x1) << 1;
2792 s->bc[i] |= (*c >> 7) & 0x1;
2793 s->Mc[i] = (*c >> 5) & 0x3;
2794 s->xmaxc[i] = (*c++ & 0x1F) << 1;
2795 s->xmaxc[i] |= (*c >> 7) & 0x1;
2796 s->xMc[i][0] = (*c >> 4) & 0x7;
2797 s->xMc[i][1] = (*c >> 1) & 0x7;
2798 s->xMc[i][2] = (*c++ & 0x1) << 2;
2799 s->xMc[i][2] |= (*c >> 6) & 0x3;
2800 s->xMc[i][3] = (*c >> 3) & 0x7;
2801 s->xMc[i][4] = *c++ & 0x7;
2802 s->xMc[i][5] = (*c >> 5) & 0x7;
2803 s->xMc[i][6] = (*c >> 2) & 0x7;
2804 s->xMc[i][7] = (*c++ & 0x3) << 1;
2805 s->xMc[i][7] |= (*c >> 7) & 0x1;
2806 s->xMc[i][8] = (*c >> 4) & 0x7;
2807 s->xMc[i][9] = (*c >> 1) & 0x7;
2808 s->xMc[i][10] = (*c++ & 0x1) << 2;
2809 s->xMc[i][10] |= (*c >> 6) & 0x3;
2810 s->xMc[i][11] = (*c >> 3) & 0x7;
2811 s->xMc[i][12] = *c++ & 0x7;
2812 }
2813 return 33;
2814}
2815
2816
2817int gsm0610_decode(gsm0610_state_t *s, int16_t amp[], const uint8_t code[], int quant)
2818{
2819 gsm0610_frame_t frame[2];
2820 const uint8_t *c;
2821 int bytes;
2822 int i;
2823
2824 c = code;
2825 for (i = 0; i < quant; i++)
2826 {
2827 switch (s->packing)
2828 {
2829 default:
2830 case GSM0610_PACKING_NONE:
2831 if ((bytes = gsm0610_unpack_none(frame, c)) >= 0)
2832 {
2833 decode_a_frame(s, amp, frame);
2834 amp += 160;
2835 }
2836 break;
2837 case GSM0610_PACKING_WAV49:
2838 if ((bytes = gsm0610_unpack_wav49(frame, c)) >= 0)
2839 {
2840 decode_a_frame(s, amp, frame);
2841 amp += 160;
2842 decode_a_frame(s, amp, frame + 1);
2843 amp += 160;
2844 }
2845 break;
2846 case GSM0610_PACKING_VOIP:
2847 if ((bytes = gsm0610_unpack_voip(frame, c)) >= 0)
2848 {
2849 decode_a_frame(s, amp, frame);
2850 amp += 160;
2851 }
2852 break;
2853 }
2854
2855 if (bytes < 0)
2856 return 0;
2857 c += bytes;
2858 }
2859
2860 return quant*160;
2861}