initial import
[ICEs.git] / 218158 / af_volnorm.i.0
1 # 1 "af_volnorm.c"
2 # 1 "<built-in>"
3 # 1 "<command-line>"
4 # 1 "af_volnorm.c"
5 # 11 "af_volnorm.c"
6 # 1 "/usr/include/stdio.h" 1 3 4
7 # 28 "/usr/include/stdio.h" 3 4
8 # 1 "/usr/include/features.h" 1 3 4
9 # 330 "/usr/include/features.h" 3 4
10 # 1 "/usr/include/sys/cdefs.h" 1 3 4
11 # 348 "/usr/include/sys/cdefs.h" 3 4
12 # 1 "/usr/include/bits/wordsize.h" 1 3 4
13 # 349 "/usr/include/sys/cdefs.h" 2 3 4
14 # 331 "/usr/include/features.h" 2 3 4
15 # 354 "/usr/include/features.h" 3 4
16 # 1 "/usr/include/gnu/stubs.h" 1 3 4
17
18
19
20 # 1 "/usr/include/bits/wordsize.h" 1 3 4
21 # 5 "/usr/include/gnu/stubs.h" 2 3 4
22
23
24 # 1 "/usr/include/gnu/stubs-32.h" 1 3 4
25 # 8 "/usr/include/gnu/stubs.h" 2 3 4
26 # 355 "/usr/include/features.h" 2 3 4
27 # 29 "/usr/include/stdio.h" 2 3 4
28
29
30
31
32
33 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include/stddef.h" 1 3 4
34 # 214 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include/stddef.h" 3 4
35 typedef unsigned int size_t;
36 # 35 "/usr/include/stdio.h" 2 3 4
37
38 # 1 "/usr/include/bits/types.h" 1 3 4
39 # 28 "/usr/include/bits/types.h" 3 4
40 # 1 "/usr/include/bits/wordsize.h" 1 3 4
41 # 29 "/usr/include/bits/types.h" 2 3 4
42
43
44 typedef unsigned char __u_char;
45 typedef unsigned short int __u_short;
46 typedef unsigned int __u_int;
47 typedef unsigned long int __u_long;
48
49
50 typedef signed char __int8_t;
51 typedef unsigned char __uint8_t;
52 typedef signed short int __int16_t;
53 typedef unsigned short int __uint16_t;
54 typedef signed int __int32_t;
55 typedef unsigned int __uint32_t;
56
57
58
59
60 __extension__ typedef signed long long int __int64_t;
61 __extension__ typedef unsigned long long int __uint64_t;
62
63
64
65
66
67
68
69 __extension__ typedef long long int __quad_t;
70 __extension__ typedef unsigned long long int __u_quad_t;
71 # 131 "/usr/include/bits/types.h" 3 4
72 # 1 "/usr/include/bits/typesizes.h" 1 3 4
73 # 132 "/usr/include/bits/types.h" 2 3 4
74
75
76 __extension__ typedef __u_quad_t __dev_t;
77 __extension__ typedef unsigned int __uid_t;
78 __extension__ typedef unsigned int __gid_t;
79 __extension__ typedef unsigned long int __ino_t;
80 __extension__ typedef __u_quad_t __ino64_t;
81 __extension__ typedef unsigned int __mode_t;
82 __extension__ typedef unsigned int __nlink_t;
83 __extension__ typedef long int __off_t;
84 __extension__ typedef __quad_t __off64_t;
85 __extension__ typedef int __pid_t;
86 __extension__ typedef struct { int __val[2]; } __fsid_t;
87 __extension__ typedef long int __clock_t;
88 __extension__ typedef unsigned long int __rlim_t;
89 __extension__ typedef __u_quad_t __rlim64_t;
90 __extension__ typedef unsigned int __id_t;
91 __extension__ typedef long int __time_t;
92 __extension__ typedef unsigned int __useconds_t;
93 __extension__ typedef long int __suseconds_t;
94
95 __extension__ typedef int __daddr_t;
96 __extension__ typedef long int __swblk_t;
97 __extension__ typedef int __key_t;
98
99
100 __extension__ typedef int __clockid_t;
101
102
103 __extension__ typedef void * __timer_t;
104
105
106 __extension__ typedef long int __blksize_t;
107
108
109
110
111 __extension__ typedef long int __blkcnt_t;
112 __extension__ typedef __quad_t __blkcnt64_t;
113
114
115 __extension__ typedef unsigned long int __fsblkcnt_t;
116 __extension__ typedef __u_quad_t __fsblkcnt64_t;
117
118
119 __extension__ typedef unsigned long int __fsfilcnt_t;
120 __extension__ typedef __u_quad_t __fsfilcnt64_t;
121
122 __extension__ typedef int __ssize_t;
123
124
125
126 typedef __off64_t __loff_t;
127 typedef __quad_t *__qaddr_t;
128 typedef char *__caddr_t;
129
130
131 __extension__ typedef int __intptr_t;
132
133
134 __extension__ typedef unsigned int __socklen_t;
135 # 37 "/usr/include/stdio.h" 2 3 4
136 # 45 "/usr/include/stdio.h" 3 4
137 struct _IO_FILE;
138
139
140
141 typedef struct _IO_FILE FILE;
142
143
144
145
146
147 # 65 "/usr/include/stdio.h" 3 4
148 typedef struct _IO_FILE __FILE;
149 # 75 "/usr/include/stdio.h" 3 4
150 # 1 "/usr/include/libio.h" 1 3 4
151 # 32 "/usr/include/libio.h" 3 4
152 # 1 "/usr/include/_G_config.h" 1 3 4
153 # 15 "/usr/include/_G_config.h" 3 4
154 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include/stddef.h" 1 3 4
155 # 16 "/usr/include/_G_config.h" 2 3 4
156
157
158
159
160 # 1 "/usr/include/wchar.h" 1 3 4
161 # 78 "/usr/include/wchar.h" 3 4
162 typedef struct
163 {
164 int __count;
165 union
166 {
167
168 unsigned int __wch;
169
170
171
172 char __wchb[4];
173 } __value;
174 } __mbstate_t;
175 # 21 "/usr/include/_G_config.h" 2 3 4
176
177 typedef struct
178 {
179 __off_t __pos;
180 __mbstate_t __state;
181 } _G_fpos_t;
182 typedef struct
183 {
184 __off64_t __pos;
185 __mbstate_t __state;
186 } _G_fpos64_t;
187 # 53 "/usr/include/_G_config.h" 3 4
188 typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
189 typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
190 typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
191 typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
192 # 33 "/usr/include/libio.h" 2 3 4
193 # 53 "/usr/include/libio.h" 3 4
194 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include/stdarg.h" 1 3 4
195 # 43 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include/stdarg.h" 3 4
196 typedef __builtin_va_list __gnuc_va_list;
197 # 54 "/usr/include/libio.h" 2 3 4
198 # 170 "/usr/include/libio.h" 3 4
199 struct _IO_jump_t; struct _IO_FILE;
200 # 180 "/usr/include/libio.h" 3 4
201 typedef void _IO_lock_t;
202
203
204
205
206
207 struct _IO_marker {
208 struct _IO_marker *_next;
209 struct _IO_FILE *_sbuf;
210
211
212
213 int _pos;
214 # 203 "/usr/include/libio.h" 3 4
215 };
216
217
218 enum __codecvt_result
219 {
220 __codecvt_ok,
221 __codecvt_partial,
222 __codecvt_error,
223 __codecvt_noconv
224 };
225 # 271 "/usr/include/libio.h" 3 4
226 struct _IO_FILE {
227 int _flags;
228
229
230
231
232 char* _IO_read_ptr;
233 char* _IO_read_end;
234 char* _IO_read_base;
235 char* _IO_write_base;
236 char* _IO_write_ptr;
237 char* _IO_write_end;
238 char* _IO_buf_base;
239 char* _IO_buf_end;
240
241 char *_IO_save_base;
242 char *_IO_backup_base;
243 char *_IO_save_end;
244
245 struct _IO_marker *_markers;
246
247 struct _IO_FILE *_chain;
248
249 int _fileno;
250
251
252
253 int _flags2;
254
255 __off_t _old_offset;
256
257
258
259 unsigned short _cur_column;
260 signed char _vtable_offset;
261 char _shortbuf[1];
262
263
264
265 _IO_lock_t *_lock;
266 # 319 "/usr/include/libio.h" 3 4
267 __off64_t _offset;
268 # 328 "/usr/include/libio.h" 3 4
269 void *__pad1;
270 void *__pad2;
271 void *__pad3;
272 void *__pad4;
273 size_t __pad5;
274
275 int _mode;
276
277 char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
278
279 };
280
281
282 typedef struct _IO_FILE _IO_FILE;
283
284
285 struct _IO_FILE_plus;
286
287 extern struct _IO_FILE_plus _IO_2_1_stdin_;
288 extern struct _IO_FILE_plus _IO_2_1_stdout_;
289 extern struct _IO_FILE_plus _IO_2_1_stderr_;
290 # 364 "/usr/include/libio.h" 3 4
291 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
292
293
294
295
296
297
298
299 typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
300 size_t __n);
301
302
303
304
305
306
307
308 typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
309
310
311 typedef int __io_close_fn (void *__cookie);
312 # 416 "/usr/include/libio.h" 3 4
313 extern int __underflow (_IO_FILE *);
314 extern int __uflow (_IO_FILE *);
315 extern int __overflow (_IO_FILE *, int);
316 # 458 "/usr/include/libio.h" 3 4
317 extern int _IO_getc (_IO_FILE *__fp);
318 extern int _IO_putc (int __c, _IO_FILE *__fp);
319 extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__));
320 extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__));
321
322 extern int _IO_peekc_locked (_IO_FILE *__fp);
323
324
325
326
327
328 extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__));
329 extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__));
330 extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__));
331 # 488 "/usr/include/libio.h" 3 4
332 extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
333 __gnuc_va_list, int *__restrict);
334 extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
335 __gnuc_va_list);
336 extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t);
337 extern size_t _IO_sgetn (_IO_FILE *, void *, size_t);
338
339 extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int);
340 extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int);
341
342 extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__));
343 # 76 "/usr/include/stdio.h" 2 3 4
344 # 89 "/usr/include/stdio.h" 3 4
345
346
347
348
349 typedef _G_fpos64_t fpos_t;
350
351
352
353 typedef _G_fpos64_t fpos64_t;
354 # 141 "/usr/include/stdio.h" 3 4
355 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
356 # 142 "/usr/include/stdio.h" 2 3 4
357
358
359
360 extern struct _IO_FILE *stdin;
361 extern struct _IO_FILE *stdout;
362 extern struct _IO_FILE *stderr;
363
364
365
366
367
368
369
370 extern int remove (__const char *__filename) __attribute__ ((__nothrow__));
371
372 extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__));
373
374
375
376
377
378
379
380
381
382 # 175 "/usr/include/stdio.h" 3 4
383 extern FILE *tmpfile (void) __asm__ ("" "tmpfile64") ;
384
385
386
387
388
389
390 extern FILE *tmpfile64 (void) ;
391
392
393
394 extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)) ;
395
396
397
398
399
400 extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)) ;
401 # 204 "/usr/include/stdio.h" 3 4
402 extern char *tempnam (__const char *__dir, __const char *__pfx)
403 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
404
405
406
407
408
409
410
411
412 extern int fclose (FILE *__stream);
413
414
415
416
417 extern int fflush (FILE *__stream);
418
419 # 229 "/usr/include/stdio.h" 3 4
420 extern int fflush_unlocked (FILE *__stream);
421 # 243 "/usr/include/stdio.h" 3 4
422
423 # 260 "/usr/include/stdio.h" 3 4
424 extern FILE *fopen (__const char *__restrict __filename, __const char *__restrict __modes) __asm__ ("" "fopen64")
425
426 ;
427 extern FILE *freopen (__const char *__restrict __filename, __const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64")
428
429
430 ;
431
432
433
434
435
436
437
438 extern FILE *fopen64 (__const char *__restrict __filename,
439 __const char *__restrict __modes) ;
440 extern FILE *freopen64 (__const char *__restrict __filename,
441 __const char *__restrict __modes,
442 FILE *__restrict __stream) ;
443
444
445
446
447 extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)) ;
448 # 304 "/usr/include/stdio.h" 3 4
449
450
451
452 extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__));
453
454
455
456 extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
457 int __modes, size_t __n) __attribute__ ((__nothrow__));
458
459
460
461
462
463 extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
464 size_t __size) __attribute__ ((__nothrow__));
465
466
467 extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__));
468
469
470
471
472
473
474
475
476 extern int fprintf (FILE *__restrict __stream,
477 __const char *__restrict __format, ...);
478
479
480
481
482 extern int printf (__const char *__restrict __format, ...);
483
484 extern int sprintf (char *__restrict __s,
485 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
486
487
488
489
490
491 extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
492 __gnuc_va_list __arg);
493
494
495
496
497 extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
498
499 extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
500 __gnuc_va_list __arg) __attribute__ ((__nothrow__));
501
502
503
504
505
506 extern int snprintf (char *__restrict __s, size_t __maxlen,
507 __const char *__restrict __format, ...)
508 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
509
510 extern int vsnprintf (char *__restrict __s, size_t __maxlen,
511 __const char *__restrict __format, __gnuc_va_list __arg)
512 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
513
514 # 398 "/usr/include/stdio.h" 3 4
515
516
517
518
519
520 extern int fscanf (FILE *__restrict __stream,
521 __const char *__restrict __format, ...) ;
522
523
524
525
526 extern int scanf (__const char *__restrict __format, ...) ;
527
528 extern int sscanf (__const char *__restrict __s,
529 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
530 # 441 "/usr/include/stdio.h" 3 4
531
532 # 504 "/usr/include/stdio.h" 3 4
533
534
535
536
537
538 extern int fgetc (FILE *__stream);
539 extern int getc (FILE *__stream);
540
541
542
543
544
545 extern int getchar (void);
546
547 # 528 "/usr/include/stdio.h" 3 4
548 extern int getc_unlocked (FILE *__stream);
549 extern int getchar_unlocked (void);
550 # 539 "/usr/include/stdio.h" 3 4
551 extern int fgetc_unlocked (FILE *__stream);
552
553
554
555
556
557
558
559
560
561
562
563 extern int fputc (int __c, FILE *__stream);
564 extern int putc (int __c, FILE *__stream);
565
566
567
568
569
570 extern int putchar (int __c);
571
572 # 572 "/usr/include/stdio.h" 3 4
573 extern int fputc_unlocked (int __c, FILE *__stream);
574
575
576
577
578
579
580
581 extern int putc_unlocked (int __c, FILE *__stream);
582 extern int putchar_unlocked (int __c);
583
584
585
586
587
588
589 extern int getw (FILE *__stream);
590
591
592 extern int putw (int __w, FILE *__stream);
593
594
595
596
597
598
599
600
601 extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
602 ;
603
604
605
606
607
608
609 extern char *gets (char *__s) ;
610
611 # 653 "/usr/include/stdio.h" 3 4
612
613
614
615
616
617 extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
618
619
620
621
622
623 extern int puts (__const char *__s);
624
625
626
627
628
629
630 extern int ungetc (int __c, FILE *__stream);
631
632
633
634
635
636
637 extern size_t fread (void *__restrict __ptr, size_t __size,
638 size_t __n, FILE *__restrict __stream) ;
639
640
641
642
643 extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
644 size_t __n, FILE *__restrict __s) ;
645
646 # 706 "/usr/include/stdio.h" 3 4
647 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
648 size_t __n, FILE *__restrict __stream) ;
649 extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
650 size_t __n, FILE *__restrict __stream) ;
651
652
653
654
655
656
657
658
659 extern int fseek (FILE *__stream, long int __off, int __whence);
660
661
662
663
664 extern long int ftell (FILE *__stream) ;
665
666
667
668
669 extern void rewind (FILE *__stream);
670
671 # 750 "/usr/include/stdio.h" 3 4
672 extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64");
673
674
675 extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64");
676
677
678
679
680
681
682
683
684 # 775 "/usr/include/stdio.h" 3 4
685 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64");
686
687 extern int fsetpos (FILE *__stream, __const fpos_t *__pos) __asm__ ("" "fsetpos64");
688
689
690
691
692
693
694
695
696
697 extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence);
698 extern __off64_t ftello64 (FILE *__stream) ;
699 extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos);
700 extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos);
701
702
703
704
705 extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__));
706
707 extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ;
708
709 extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ;
710
711
712
713
714 extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
715 extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
716 extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
717
718
719
720
721
722
723
724
725 extern void perror (__const char *__s);
726
727
728
729
730
731
732 # 1 "/usr/include/bits/sys_errlist.h" 1 3 4
733 # 27 "/usr/include/bits/sys_errlist.h" 3 4
734 extern int sys_nerr;
735 extern __const char *__const sys_errlist[];
736 # 823 "/usr/include/stdio.h" 2 3 4
737
738
739
740
741 extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ;
742
743
744
745
746 extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
747 # 842 "/usr/include/stdio.h" 3 4
748 extern FILE *popen (__const char *__command, __const char *__modes) ;
749
750
751
752
753
754 extern int pclose (FILE *__stream);
755
756
757
758
759
760 extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
761 # 882 "/usr/include/stdio.h" 3 4
762 extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__));
763
764
765
766 extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ;
767
768
769 extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__));
770 # 903 "/usr/include/stdio.h" 3 4
771 # 1 "/usr/include/bits/stdio.h" 1 3 4
772 # 36 "/usr/include/bits/stdio.h" 3 4
773 extern __inline int
774 vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg)
775 {
776 return vfprintf (stdout, __fmt, __arg);
777 }
778
779
780
781 extern __inline int
782 getchar (void)
783 {
784 return _IO_getc (stdin);
785 }
786
787
788
789
790 extern __inline int
791 fgetc_unlocked (FILE *__fp)
792 {
793 return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
794 }
795
796
797
798
799
800 extern __inline int
801 getc_unlocked (FILE *__fp)
802 {
803 return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
804 }
805
806
807 extern __inline int
808 getchar_unlocked (void)
809 {
810 return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++);
811 }
812
813
814
815
816 extern __inline int
817 putchar (int __c)
818 {
819 return _IO_putc (__c, stdout);
820 }
821
822
823
824
825 extern __inline int
826 fputc_unlocked (int __c, FILE *__stream)
827 {
828 return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
829 }
830
831
832
833
834
835 extern __inline int
836 putc_unlocked (int __c, FILE *__stream)
837 {
838 return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
839 }
840
841
842 extern __inline int
843 putchar_unlocked (int __c)
844 {
845 return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c)));
846 }
847 # 125 "/usr/include/bits/stdio.h" 3 4
848 extern __inline int
849 __attribute__ ((__nothrow__)) feof_unlocked (FILE *__stream)
850 {
851 return (((__stream)->_flags & 0x10) != 0);
852 }
853
854
855 extern __inline int
856 __attribute__ ((__nothrow__)) ferror_unlocked (FILE *__stream)
857 {
858 return (((__stream)->_flags & 0x20) != 0);
859 }
860 # 904 "/usr/include/stdio.h" 2 3 4
861 # 912 "/usr/include/stdio.h" 3 4
862
863 # 12 "af_volnorm.c" 2
864 # 1 "/usr/include/stdlib.h" 1 3 4
865 # 33 "/usr/include/stdlib.h" 3 4
866 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include/stddef.h" 1 3 4
867 # 326 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include/stddef.h" 3 4
868 typedef long int wchar_t;
869 # 34 "/usr/include/stdlib.h" 2 3 4
870
871
872 # 96 "/usr/include/stdlib.h" 3 4
873
874
875 typedef struct
876 {
877 int quot;
878 int rem;
879 } div_t;
880
881
882
883 typedef struct
884 {
885 long int quot;
886 long int rem;
887 } ldiv_t;
888
889
890
891 # 140 "/usr/include/stdlib.h" 3 4
892 extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ;
893
894
895
896
897 extern double atof (__const char *__nptr)
898 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
899
900 extern int atoi (__const char *__nptr)
901 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
902
903 extern long int atol (__const char *__nptr)
904 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
905
906
907
908
909
910 __extension__ extern long long int atoll (__const char *__nptr)
911 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
912
913
914
915
916
917 extern double strtod (__const char *__restrict __nptr,
918 char **__restrict __endptr)
919 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
920
921 # 182 "/usr/include/stdlib.h" 3 4
922
923
924 extern long int strtol (__const char *__restrict __nptr,
925 char **__restrict __endptr, int __base)
926 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
927
928 extern unsigned long int strtoul (__const char *__restrict __nptr,
929 char **__restrict __endptr, int __base)
930 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
931
932
933
934
935 __extension__
936 extern long long int strtoq (__const char *__restrict __nptr,
937 char **__restrict __endptr, int __base)
938 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
939
940 __extension__
941 extern unsigned long long int strtouq (__const char *__restrict __nptr,
942 char **__restrict __endptr, int __base)
943 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
944
945
946
947
948
949 __extension__
950 extern long long int strtoll (__const char *__restrict __nptr,
951 char **__restrict __endptr, int __base)
952 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
953
954 __extension__
955 extern unsigned long long int strtoull (__const char *__restrict __nptr,
956 char **__restrict __endptr, int __base)
957 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
958
959 # 277 "/usr/include/stdlib.h" 3 4
960
961 extern __inline double
962 __attribute__ ((__nothrow__)) atof (__const char *__nptr)
963 {
964 return strtod (__nptr, (char **) ((void *)0));
965 }
966 extern __inline int
967 __attribute__ ((__nothrow__)) atoi (__const char *__nptr)
968 {
969 return (int) strtol (__nptr, (char **) ((void *)0), 10);
970 }
971 extern __inline long int
972 __attribute__ ((__nothrow__)) atol (__const char *__nptr)
973 {
974 return strtol (__nptr, (char **) ((void *)0), 10);
975 }
976
977
978
979
980 __extension__ extern __inline long long int
981 __attribute__ ((__nothrow__)) atoll (__const char *__nptr)
982 {
983 return strtoll (__nptr, (char **) ((void *)0), 10);
984 }
985
986 # 311 "/usr/include/stdlib.h" 3 4
987 extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ;
988
989
990 extern long int a64l (__const char *__s)
991 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
992
993
994
995
996 # 1 "/usr/include/sys/types.h" 1 3 4
997 # 29 "/usr/include/sys/types.h" 3 4
998
999
1000
1001
1002
1003
1004 typedef __u_char u_char;
1005 typedef __u_short u_short;
1006 typedef __u_int u_int;
1007 typedef __u_long u_long;
1008 typedef __quad_t quad_t;
1009 typedef __u_quad_t u_quad_t;
1010 typedef __fsid_t fsid_t;
1011
1012
1013
1014
1015 typedef __loff_t loff_t;
1016
1017
1018
1019
1020
1021 typedef __ino64_t ino_t;
1022
1023
1024
1025
1026 typedef __ino64_t ino64_t;
1027
1028
1029
1030
1031 typedef __dev_t dev_t;
1032
1033
1034
1035
1036 typedef __gid_t gid_t;
1037
1038
1039
1040
1041 typedef __mode_t mode_t;
1042
1043
1044
1045
1046 typedef __nlink_t nlink_t;
1047
1048
1049
1050
1051 typedef __uid_t uid_t;
1052
1053
1054
1055
1056
1057
1058
1059 typedef __off64_t off_t;
1060
1061
1062
1063
1064 typedef __off64_t off64_t;
1065
1066
1067
1068
1069 typedef __pid_t pid_t;
1070
1071
1072
1073
1074 typedef __id_t id_t;
1075
1076
1077
1078
1079 typedef __ssize_t ssize_t;
1080
1081
1082
1083
1084
1085 typedef __daddr_t daddr_t;
1086 typedef __caddr_t caddr_t;
1087
1088
1089
1090
1091
1092 typedef __key_t key_t;
1093 # 133 "/usr/include/sys/types.h" 3 4
1094 # 1 "/usr/include/time.h" 1 3 4
1095 # 75 "/usr/include/time.h" 3 4
1096
1097
1098 typedef __time_t time_t;
1099
1100
1101
1102 # 93 "/usr/include/time.h" 3 4
1103 typedef __clockid_t clockid_t;
1104 # 105 "/usr/include/time.h" 3 4
1105 typedef __timer_t timer_t;
1106 # 134 "/usr/include/sys/types.h" 2 3 4
1107 # 147 "/usr/include/sys/types.h" 3 4
1108 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include/stddef.h" 1 3 4
1109 # 148 "/usr/include/sys/types.h" 2 3 4
1110
1111
1112
1113 typedef unsigned long int ulong;
1114 typedef unsigned short int ushort;
1115 typedef unsigned int uint;
1116 # 195 "/usr/include/sys/types.h" 3 4
1117 typedef int int8_t __attribute__ ((__mode__ (__QI__)));
1118 typedef int int16_t __attribute__ ((__mode__ (__HI__)));
1119 typedef int int32_t __attribute__ ((__mode__ (__SI__)));
1120 typedef int int64_t __attribute__ ((__mode__ (__DI__)));
1121
1122
1123 typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
1124 typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
1125 typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
1126 typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
1127
1128 typedef int register_t __attribute__ ((__mode__ (__word__)));
1129 # 217 "/usr/include/sys/types.h" 3 4
1130 # 1 "/usr/include/endian.h" 1 3 4
1131 # 37 "/usr/include/endian.h" 3 4
1132 # 1 "/usr/include/bits/endian.h" 1 3 4
1133 # 38 "/usr/include/endian.h" 2 3 4
1134 # 218 "/usr/include/sys/types.h" 2 3 4
1135
1136
1137 # 1 "/usr/include/sys/select.h" 1 3 4
1138 # 31 "/usr/include/sys/select.h" 3 4
1139 # 1 "/usr/include/bits/select.h" 1 3 4
1140 # 32 "/usr/include/sys/select.h" 2 3 4
1141
1142
1143 # 1 "/usr/include/bits/sigset.h" 1 3 4
1144 # 24 "/usr/include/bits/sigset.h" 3 4
1145 typedef int __sig_atomic_t;
1146
1147
1148
1149
1150 typedef struct
1151 {
1152 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
1153 } __sigset_t;
1154 # 35 "/usr/include/sys/select.h" 2 3 4
1155
1156
1157
1158 typedef __sigset_t sigset_t;
1159
1160
1161
1162
1163
1164 # 1 "/usr/include/time.h" 1 3 4
1165 # 121 "/usr/include/time.h" 3 4
1166 struct timespec
1167 {
1168 __time_t tv_sec;
1169 long int tv_nsec;
1170 };
1171 # 45 "/usr/include/sys/select.h" 2 3 4
1172
1173 # 1 "/usr/include/bits/time.h" 1 3 4
1174 # 69 "/usr/include/bits/time.h" 3 4
1175 struct timeval
1176 {
1177 __time_t tv_sec;
1178 __suseconds_t tv_usec;
1179 };
1180 # 47 "/usr/include/sys/select.h" 2 3 4
1181
1182
1183 typedef __suseconds_t suseconds_t;
1184
1185
1186
1187
1188
1189 typedef long int __fd_mask;
1190 # 67 "/usr/include/sys/select.h" 3 4
1191 typedef struct
1192 {
1193
1194
1195
1196
1197
1198
1199 __fd_mask __fds_bits[1024 / (8 * sizeof (__fd_mask))];
1200
1201
1202 } fd_set;
1203
1204
1205
1206
1207
1208
1209 typedef __fd_mask fd_mask;
1210 # 99 "/usr/include/sys/select.h" 3 4
1211
1212 # 109 "/usr/include/sys/select.h" 3 4
1213 extern int select (int __nfds, fd_set *__restrict __readfds,
1214 fd_set *__restrict __writefds,
1215 fd_set *__restrict __exceptfds,
1216 struct timeval *__restrict __timeout);
1217 # 121 "/usr/include/sys/select.h" 3 4
1218 extern int pselect (int __nfds, fd_set *__restrict __readfds,
1219 fd_set *__restrict __writefds,
1220 fd_set *__restrict __exceptfds,
1221 const struct timespec *__restrict __timeout,
1222 const __sigset_t *__restrict __sigmask);
1223
1224
1225
1226 # 221 "/usr/include/sys/types.h" 2 3 4
1227
1228
1229 # 1 "/usr/include/sys/sysmacros.h" 1 3 4
1230 # 30 "/usr/include/sys/sysmacros.h" 3 4
1231 __extension__
1232 extern unsigned int gnu_dev_major (unsigned long long int __dev)
1233 __attribute__ ((__nothrow__));
1234 __extension__
1235 extern unsigned int gnu_dev_minor (unsigned long long int __dev)
1236 __attribute__ ((__nothrow__));
1237 __extension__
1238 extern unsigned long long int gnu_dev_makedev (unsigned int __major,
1239 unsigned int __minor)
1240 __attribute__ ((__nothrow__));
1241
1242
1243 __extension__ extern __inline unsigned int
1244 __attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev)
1245 {
1246 return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
1247 }
1248
1249 __extension__ extern __inline unsigned int
1250 __attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev)
1251 {
1252 return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
1253 }
1254
1255 __extension__ extern __inline unsigned long long int
1256 __attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor)
1257 {
1258 return ((__minor & 0xff) | ((__major & 0xfff) << 8)
1259 | (((unsigned long long int) (__minor & ~0xff)) << 12)
1260 | (((unsigned long long int) (__major & ~0xfff)) << 32));
1261 }
1262 # 224 "/usr/include/sys/types.h" 2 3 4
1263 # 248 "/usr/include/sys/types.h" 3 4
1264 typedef __blkcnt64_t blkcnt_t;
1265
1266
1267
1268 typedef __fsblkcnt64_t fsblkcnt_t;
1269
1270
1271
1272 typedef __fsfilcnt64_t fsfilcnt_t;
1273
1274
1275
1276
1277
1278 typedef __blkcnt64_t blkcnt64_t;
1279 typedef __fsblkcnt64_t fsblkcnt64_t;
1280 typedef __fsfilcnt64_t fsfilcnt64_t;
1281
1282
1283
1284
1285
1286 # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
1287 # 24 "/usr/include/bits/pthreadtypes.h" 3 4
1288 # 1 "/usr/include/bits/wordsize.h" 1 3 4
1289 # 25 "/usr/include/bits/pthreadtypes.h" 2 3 4
1290 # 51 "/usr/include/bits/pthreadtypes.h" 3 4
1291 typedef unsigned long int pthread_t;
1292
1293
1294 typedef union
1295 {
1296 char __size[36];
1297 long int __align;
1298 } pthread_attr_t;
1299 # 68 "/usr/include/bits/pthreadtypes.h" 3 4
1300 typedef struct __pthread_internal_slist
1301 {
1302 struct __pthread_internal_slist *__next;
1303 } __pthread_slist_t;
1304
1305
1306
1307
1308
1309 typedef union
1310 {
1311 struct __pthread_mutex_s
1312 {
1313 int __lock;
1314 unsigned int __count;
1315 int __owner;
1316
1317
1318
1319
1320
1321 int __kind;
1322
1323
1324
1325
1326
1327 unsigned int __nusers;
1328 __extension__ union
1329 {
1330 int __spins;
1331 __pthread_slist_t __list;
1332 };
1333
1334 } __data;
1335 char __size[24];
1336 long int __align;
1337 } pthread_mutex_t;
1338
1339 typedef union
1340 {
1341 char __size[4];
1342 int __align;
1343 } pthread_mutexattr_t;
1344
1345
1346
1347
1348 typedef union
1349 {
1350 struct
1351 {
1352 int __lock;
1353 unsigned int __futex;
1354 __extension__ unsigned long long int __total_seq;
1355 __extension__ unsigned long long int __wakeup_seq;
1356 __extension__ unsigned long long int __woken_seq;
1357 void *__mutex;
1358 unsigned int __nwaiters;
1359 unsigned int __broadcast_seq;
1360 } __data;
1361 char __size[48];
1362 __extension__ long long int __align;
1363 } pthread_cond_t;
1364
1365 typedef union
1366 {
1367 char __size[4];
1368 int __align;
1369 } pthread_condattr_t;
1370
1371
1372
1373 typedef unsigned int pthread_key_t;
1374
1375
1376
1377 typedef int pthread_once_t;
1378
1379
1380
1381
1382
1383 typedef union
1384 {
1385 # 171 "/usr/include/bits/pthreadtypes.h" 3 4
1386 struct
1387 {
1388 int __lock;
1389 unsigned int __nr_readers;
1390 unsigned int __readers_wakeup;
1391 unsigned int __writer_wakeup;
1392 unsigned int __nr_readers_queued;
1393 unsigned int __nr_writers_queued;
1394 unsigned char __pad1;
1395 unsigned char __pad2;
1396 unsigned char __shared;
1397
1398
1399 unsigned char __flags;
1400 int __writer;
1401 } __data;
1402
1403 char __size[32];
1404 long int __align;
1405 } pthread_rwlock_t;
1406
1407 typedef union
1408 {
1409 char __size[8];
1410 long int __align;
1411 } pthread_rwlockattr_t;
1412
1413
1414
1415
1416
1417 typedef volatile int pthread_spinlock_t;
1418
1419
1420
1421
1422 typedef union
1423 {
1424 char __size[20];
1425 long int __align;
1426 } pthread_barrier_t;
1427
1428 typedef union
1429 {
1430 char __size[4];
1431 int __align;
1432 } pthread_barrierattr_t;
1433 # 271 "/usr/include/sys/types.h" 2 3 4
1434
1435
1436
1437 # 321 "/usr/include/stdlib.h" 2 3 4
1438
1439
1440
1441
1442
1443
1444 extern long int random (void) __attribute__ ((__nothrow__));
1445
1446
1447 extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__));
1448
1449
1450
1451
1452
1453 extern char *initstate (unsigned int __seed, char *__statebuf,
1454 size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1455
1456
1457
1458 extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1459
1460
1461
1462
1463
1464
1465
1466 struct random_data
1467 {
1468 int32_t *fptr;
1469 int32_t *rptr;
1470 int32_t *state;
1471 int rand_type;
1472 int rand_deg;
1473 int rand_sep;
1474 int32_t *end_ptr;
1475 };
1476
1477 extern int random_r (struct random_data *__restrict __buf,
1478 int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1479
1480 extern int srandom_r (unsigned int __seed, struct random_data *__buf)
1481 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1482
1483 extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
1484 size_t __statelen,
1485 struct random_data *__restrict __buf)
1486 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
1487
1488 extern int setstate_r (char *__restrict __statebuf,
1489 struct random_data *__restrict __buf)
1490 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1491
1492
1493
1494
1495
1496
1497 extern int rand (void) __attribute__ ((__nothrow__));
1498
1499 extern void srand (unsigned int __seed) __attribute__ ((__nothrow__));
1500
1501
1502
1503
1504 extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__));
1505
1506
1507
1508
1509
1510
1511
1512 extern double drand48 (void) __attribute__ ((__nothrow__));
1513 extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1514
1515
1516 extern long int lrand48 (void) __attribute__ ((__nothrow__));
1517 extern long int nrand48 (unsigned short int __xsubi[3])
1518 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1519
1520
1521 extern long int mrand48 (void) __attribute__ ((__nothrow__));
1522 extern long int jrand48 (unsigned short int __xsubi[3])
1523 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1524
1525
1526 extern void srand48 (long int __seedval) __attribute__ ((__nothrow__));
1527 extern unsigned short int *seed48 (unsigned short int __seed16v[3])
1528 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1529 extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1530
1531
1532
1533
1534
1535 struct drand48_data
1536 {
1537 unsigned short int __x[3];
1538 unsigned short int __old_x[3];
1539 unsigned short int __c;
1540 unsigned short int __init;
1541 unsigned long long int __a;
1542 };
1543
1544
1545 extern int drand48_r (struct drand48_data *__restrict __buffer,
1546 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1547 extern int erand48_r (unsigned short int __xsubi[3],
1548 struct drand48_data *__restrict __buffer,
1549 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1550
1551
1552 extern int lrand48_r (struct drand48_data *__restrict __buffer,
1553 long int *__restrict __result)
1554 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1555 extern int nrand48_r (unsigned short int __xsubi[3],
1556 struct drand48_data *__restrict __buffer,
1557 long int *__restrict __result)
1558 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1559
1560
1561 extern int mrand48_r (struct drand48_data *__restrict __buffer,
1562 long int *__restrict __result)
1563 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1564 extern int jrand48_r (unsigned short int __xsubi[3],
1565 struct drand48_data *__restrict __buffer,
1566 long int *__restrict __result)
1567 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1568
1569
1570 extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
1571 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1572
1573 extern int seed48_r (unsigned short int __seed16v[3],
1574 struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1575
1576 extern int lcong48_r (unsigned short int __param[7],
1577 struct drand48_data *__buffer)
1578 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588 extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1589
1590 extern void *calloc (size_t __nmemb, size_t __size)
1591 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602 extern void *realloc (void *__ptr, size_t __size)
1603 __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
1604
1605 extern void free (void *__ptr) __attribute__ ((__nothrow__));
1606
1607
1608
1609
1610 extern void cfree (void *__ptr) __attribute__ ((__nothrow__));
1611
1612
1613
1614 # 1 "/usr/include/alloca.h" 1 3 4
1615 # 25 "/usr/include/alloca.h" 3 4
1616 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include/stddef.h" 1 3 4
1617 # 26 "/usr/include/alloca.h" 2 3 4
1618
1619
1620
1621
1622
1623
1624
1625 extern void *alloca (size_t __size) __attribute__ ((__nothrow__));
1626
1627
1628
1629
1630
1631
1632 # 498 "/usr/include/stdlib.h" 2 3 4
1633
1634
1635
1636
1637 extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1638
1639
1640
1641
1642 extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
1643 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1644
1645
1646
1647
1648 extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
1649
1650
1651
1652 extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1653
1654
1655
1656
1657
1658 extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
1659 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1660
1661
1662
1663
1664
1665
1666 extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
1667
1668 # 543 "/usr/include/stdlib.h" 3 4
1669
1670
1671 extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1672
1673
1674
1675
1676 extern char *__secure_getenv (__const char *__name)
1677 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1678
1679
1680
1681
1682
1683 extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1684
1685
1686
1687
1688
1689 extern int setenv (__const char *__name, __const char *__value, int __replace)
1690 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1691
1692
1693 extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__));
1694
1695
1696
1697
1698
1699
1700 extern int clearenv (void) __attribute__ ((__nothrow__));
1701 # 583 "/usr/include/stdlib.h" 3 4
1702 extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1703 # 597 "/usr/include/stdlib.h" 3 4
1704 extern int mkstemp (char *__template) __asm__ ("" "mkstemp64")
1705 __attribute__ ((__nonnull__ (1))) ;
1706
1707
1708
1709
1710
1711 extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) ;
1712 # 614 "/usr/include/stdlib.h" 3 4
1713 extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1714 # 640 "/usr/include/stdlib.h" 3 4
1715
1716
1717
1718
1719
1720 extern int system (__const char *__command) ;
1721
1722 # 662 "/usr/include/stdlib.h" 3 4
1723 extern char *realpath (__const char *__restrict __name,
1724 char *__restrict __resolved) __attribute__ ((__nothrow__)) ;
1725
1726
1727
1728
1729
1730
1731 typedef int (*__compar_fn_t) (__const void *, __const void *);
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741 extern void *bsearch (__const void *__key, __const void *__base,
1742 size_t __nmemb, size_t __size, __compar_fn_t __compar)
1743 __attribute__ ((__nonnull__ (1, 2, 5))) ;
1744
1745
1746
1747 extern void qsort (void *__base, size_t __nmemb, size_t __size,
1748 __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
1749
1750
1751
1752 extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1753 extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766 extern div_t div (int __numer, int __denom)
1767 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1768 extern ldiv_t ldiv (long int __numer, long int __denom)
1769 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1770
1771 # 727 "/usr/include/stdlib.h" 3 4
1772 extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
1773 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1774
1775
1776
1777
1778 extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
1779 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1780
1781
1782
1783
1784 extern char *gcvt (double __value, int __ndigit, char *__buf)
1785 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
1786
1787
1788
1789
1790 extern char *qecvt (long double __value, int __ndigit,
1791 int *__restrict __decpt, int *__restrict __sign)
1792 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1793 extern char *qfcvt (long double __value, int __ndigit,
1794 int *__restrict __decpt, int *__restrict __sign)
1795 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1796 extern char *qgcvt (long double __value, int __ndigit, char *__buf)
1797 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
1798
1799
1800
1801
1802 extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
1803 int *__restrict __sign, char *__restrict __buf,
1804 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1805 extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
1806 int *__restrict __sign, char *__restrict __buf,
1807 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1808
1809 extern int qecvt_r (long double __value, int __ndigit,
1810 int *__restrict __decpt, int *__restrict __sign,
1811 char *__restrict __buf, size_t __len)
1812 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1813 extern int qfcvt_r (long double __value, int __ndigit,
1814 int *__restrict __decpt, int *__restrict __sign,
1815 char *__restrict __buf, size_t __len)
1816 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1817
1818
1819
1820
1821
1822
1823
1824 extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ;
1825
1826
1827 extern int mbtowc (wchar_t *__restrict __pwc,
1828 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ;
1829
1830
1831 extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ;
1832
1833
1834
1835 extern size_t mbstowcs (wchar_t *__restrict __pwcs,
1836 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__));
1837
1838 extern size_t wcstombs (char *__restrict __s,
1839 __const wchar_t *__restrict __pwcs, size_t __n)
1840 __attribute__ ((__nothrow__));
1841
1842
1843
1844
1845
1846
1847
1848
1849 extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1850 # 832 "/usr/include/stdlib.h" 3 4
1851 extern int posix_openpt (int __oflag) ;
1852 # 867 "/usr/include/stdlib.h" 3 4
1853 extern int getloadavg (double __loadavg[], int __nelem)
1854 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1855 # 883 "/usr/include/stdlib.h" 3 4
1856
1857 # 13 "af_volnorm.c" 2
1858 # 1 "/usr/include/string.h" 1 3 4
1859 # 28 "/usr/include/string.h" 3 4
1860
1861
1862
1863
1864
1865 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include/stddef.h" 1 3 4
1866 # 34 "/usr/include/string.h" 2 3 4
1867
1868
1869
1870
1871 extern void *memcpy (void *__restrict __dest,
1872 __const void *__restrict __src, size_t __n)
1873 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1874
1875
1876 extern void *memmove (void *__dest, __const void *__src, size_t __n)
1877 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1878
1879
1880
1881
1882
1883
1884 extern void *memccpy (void *__restrict __dest, __const void *__restrict __src,
1885 int __c, size_t __n)
1886 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1887
1888
1889
1890
1891
1892 extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1893
1894
1895 extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
1896 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1897
1898
1899 extern void *memchr (__const void *__s, int __c, size_t __n)
1900 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1901
1902 # 82 "/usr/include/string.h" 3 4
1903
1904
1905 extern char *strcpy (char *__restrict __dest, __const char *__restrict __src)
1906 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1907
1908 extern char *strncpy (char *__restrict __dest,
1909 __const char *__restrict __src, size_t __n)
1910 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1911
1912
1913 extern char *strcat (char *__restrict __dest, __const char *__restrict __src)
1914 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1915
1916 extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
1917 size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1918
1919
1920 extern int strcmp (__const char *__s1, __const char *__s2)
1921 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1922
1923 extern int strncmp (__const char *__s1, __const char *__s2, size_t __n)
1924 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1925
1926
1927 extern int strcoll (__const char *__s1, __const char *__s2)
1928 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1929
1930 extern size_t strxfrm (char *__restrict __dest,
1931 __const char *__restrict __src, size_t __n)
1932 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1933
1934 # 130 "/usr/include/string.h" 3 4
1935 extern char *strdup (__const char *__s)
1936 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1)));
1937 # 165 "/usr/include/string.h" 3 4
1938
1939
1940 extern char *strchr (__const char *__s, int __c)
1941 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1942
1943 extern char *strrchr (__const char *__s, int __c)
1944 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1945
1946 # 181 "/usr/include/string.h" 3 4
1947
1948
1949
1950 extern size_t strcspn (__const char *__s, __const char *__reject)
1951 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1952
1953
1954 extern size_t strspn (__const char *__s, __const char *__accept)
1955 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1956
1957 extern char *strpbrk (__const char *__s, __const char *__accept)
1958 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1959
1960 extern char *strstr (__const char *__haystack, __const char *__needle)
1961 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
1962
1963
1964
1965 extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
1966 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1967
1968
1969
1970
1971 extern char *__strtok_r (char *__restrict __s,
1972 __const char *__restrict __delim,
1973 char **__restrict __save_ptr)
1974 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
1975
1976 extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim,
1977 char **__restrict __save_ptr)
1978 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
1979 # 240 "/usr/include/string.h" 3 4
1980
1981
1982 extern size_t strlen (__const char *__s)
1983 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
1984
1985 # 254 "/usr/include/string.h" 3 4
1986
1987
1988 extern char *strerror (int __errnum) __attribute__ ((__nothrow__));
1989
1990 # 270 "/usr/include/string.h" 3 4
1991 extern int strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__xpg_strerror_r") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1992 # 294 "/usr/include/string.h" 3 4
1993 extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1994
1995
1996
1997 extern void bcopy (__const void *__src, void *__dest, size_t __n)
1998 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1999
2000
2001 extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2002
2003
2004 extern int bcmp (__const void *__s1, __const void *__s2, size_t __n)
2005 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
2006
2007
2008 extern char *index (__const char *__s, int __c)
2009 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
2010
2011
2012 extern char *rindex (__const char *__s, int __c)
2013 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
2014
2015
2016
2017 extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2018 # 331 "/usr/include/string.h" 3 4
2019 extern int strcasecmp (__const char *__s1, __const char *__s2)
2020 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
2021
2022
2023 extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n)
2024 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2)));
2025 # 354 "/usr/include/string.h" 3 4
2026 extern char *strsep (char **__restrict __stringp,
2027 __const char *__restrict __delim)
2028 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2029 # 420 "/usr/include/string.h" 3 4
2030 # 1 "/usr/include/bits/string.h" 1 3 4
2031 # 421 "/usr/include/string.h" 2 3 4
2032
2033
2034 # 1 "/usr/include/bits/string2.h" 1 3 4
2035 # 80 "/usr/include/bits/string2.h" 3 4
2036 typedef struct { unsigned char __arr[2]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR2;
2037 typedef struct { unsigned char __arr[3]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR3;
2038 typedef struct { unsigned char __arr[4]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR4;
2039 typedef struct { unsigned char __arr[5]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR5;
2040 typedef struct { unsigned char __arr[6]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR6;
2041 typedef struct { unsigned char __arr[7]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR7;
2042 typedef struct { unsigned char __arr[8]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR8;
2043 # 394 "/usr/include/bits/string2.h" 3 4
2044 extern void *__rawmemchr (const void *__s, int __c);
2045 # 969 "/usr/include/bits/string2.h" 3 4
2046 extern __inline size_t __strcspn_c1 (__const char *__s, int __reject);
2047 extern __inline size_t
2048 __strcspn_c1 (__const char *__s, int __reject)
2049 {
2050 register size_t __result = 0;
2051 while (__s[__result] != '\0' && __s[__result] != __reject)
2052 ++__result;
2053 return __result;
2054 }
2055
2056 extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1,
2057 int __reject2);
2058 extern __inline size_t
2059 __strcspn_c2 (__const char *__s, int __reject1, int __reject2)
2060 {
2061 register size_t __result = 0;
2062 while (__s[__result] != '\0' && __s[__result] != __reject1
2063 && __s[__result] != __reject2)
2064 ++__result;
2065 return __result;
2066 }
2067
2068 extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1,
2069 int __reject2, int __reject3);
2070 extern __inline size_t
2071 __strcspn_c3 (__const char *__s, int __reject1, int __reject2,
2072 int __reject3)
2073 {
2074 register size_t __result = 0;
2075 while (__s[__result] != '\0' && __s[__result] != __reject1
2076 && __s[__result] != __reject2 && __s[__result] != __reject3)
2077 ++__result;
2078 return __result;
2079 }
2080 # 1045 "/usr/include/bits/string2.h" 3 4
2081 extern __inline size_t __strspn_c1 (__const char *__s, int __accept);
2082 extern __inline size_t
2083 __strspn_c1 (__const char *__s, int __accept)
2084 {
2085 register size_t __result = 0;
2086
2087 while (__s[__result] == __accept)
2088 ++__result;
2089 return __result;
2090 }
2091
2092 extern __inline size_t __strspn_c2 (__const char *__s, int __accept1,
2093 int __accept2);
2094 extern __inline size_t
2095 __strspn_c2 (__const char *__s, int __accept1, int __accept2)
2096 {
2097 register size_t __result = 0;
2098
2099 while (__s[__result] == __accept1 || __s[__result] == __accept2)
2100 ++__result;
2101 return __result;
2102 }
2103
2104 extern __inline size_t __strspn_c3 (__const char *__s, int __accept1,
2105 int __accept2, int __accept3);
2106 extern __inline size_t
2107 __strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3)
2108 {
2109 register size_t __result = 0;
2110
2111 while (__s[__result] == __accept1 || __s[__result] == __accept2
2112 || __s[__result] == __accept3)
2113 ++__result;
2114 return __result;
2115 }
2116 # 1121 "/usr/include/bits/string2.h" 3 4
2117 extern __inline char *__strpbrk_c2 (__const char *__s, int __accept1,
2118 int __accept2);
2119 extern __inline char *
2120 __strpbrk_c2 (__const char *__s, int __accept1, int __accept2)
2121 {
2122
2123 while (*__s != '\0' && *__s != __accept1 && *__s != __accept2)
2124 ++__s;
2125 return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
2126 }
2127
2128 extern __inline char *__strpbrk_c3 (__const char *__s, int __accept1,
2129 int __accept2, int __accept3);
2130 extern __inline char *
2131 __strpbrk_c3 (__const char *__s, int __accept1, int __accept2,
2132 int __accept3)
2133 {
2134
2135 while (*__s != '\0' && *__s != __accept1 && *__s != __accept2
2136 && *__s != __accept3)
2137 ++__s;
2138 return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s;
2139 }
2140 # 1173 "/usr/include/bits/string2.h" 3 4
2141 extern __inline char *__strtok_r_1c (char *__s, char __sep, char **__nextp);
2142 extern __inline char *
2143 __strtok_r_1c (char *__s, char __sep, char **__nextp)
2144 {
2145 char *__result;
2146 if (__s == ((void *)0))
2147 __s = *__nextp;
2148 while (*__s == __sep)
2149 ++__s;
2150 __result = ((void *)0);
2151 if (*__s != '\0')
2152 {
2153 __result = __s++;
2154 while (*__s != '\0')
2155 if (*__s++ == __sep)
2156 {
2157 __s[-1] = '\0';
2158 break;
2159 }
2160 *__nextp = __s;
2161 }
2162 return __result;
2163 }
2164 # 1205 "/usr/include/bits/string2.h" 3 4
2165 extern char *__strsep_g (char **__stringp, __const char *__delim);
2166 # 1223 "/usr/include/bits/string2.h" 3 4
2167 extern __inline char *__strsep_1c (char **__s, char __reject);
2168 extern __inline char *
2169 __strsep_1c (char **__s, char __reject)
2170 {
2171 register char *__retval = *__s;
2172 if (__retval != ((void *)0) && (*__s = (__extension__ (__builtin_constant_p (__reject) && !__builtin_constant_p (__retval) && (__reject) == '\0' ? (char *) __rawmemchr (__retval, __reject) : __builtin_strchr (__retval, __reject)))) != ((void *)0))
2173 *(*__s)++ = '\0';
2174 return __retval;
2175 }
2176
2177 extern __inline char *__strsep_2c (char **__s, char __reject1, char __reject2);
2178 extern __inline char *
2179 __strsep_2c (char **__s, char __reject1, char __reject2)
2180 {
2181 register char *__retval = *__s;
2182 if (__retval != ((void *)0))
2183 {
2184 register char *__cp = __retval;
2185 while (1)
2186 {
2187 if (*__cp == '\0')
2188 {
2189 __cp = ((void *)0);
2190 break;
2191 }
2192 if (*__cp == __reject1 || *__cp == __reject2)
2193 {
2194 *__cp++ = '\0';
2195 break;
2196 }
2197 ++__cp;
2198 }
2199 *__s = __cp;
2200 }
2201 return __retval;
2202 }
2203
2204 extern __inline char *__strsep_3c (char **__s, char __reject1, char __reject2,
2205 char __reject3);
2206 extern __inline char *
2207 __strsep_3c (char **__s, char __reject1, char __reject2, char __reject3)
2208 {
2209 register char *__retval = *__s;
2210 if (__retval != ((void *)0))
2211 {
2212 register char *__cp = __retval;
2213 while (1)
2214 {
2215 if (*__cp == '\0')
2216 {
2217 __cp = ((void *)0);
2218 break;
2219 }
2220 if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3)
2221 {
2222 *__cp++ = '\0';
2223 break;
2224 }
2225 ++__cp;
2226 }
2227 *__s = __cp;
2228 }
2229 return __retval;
2230 }
2231 # 1304 "/usr/include/bits/string2.h" 3 4
2232 extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
2233 # 1323 "/usr/include/bits/string2.h" 3 4
2234 extern char *__strndup (__const char *__string, size_t __n)
2235 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
2236 # 424 "/usr/include/string.h" 2 3 4
2237 # 432 "/usr/include/string.h" 3 4
2238
2239 # 14 "af_volnorm.c" 2
2240
2241 # 1 "/usr/include/inttypes.h" 1 3 4
2242 # 28 "/usr/include/inttypes.h" 3 4
2243 # 1 "/usr/include/stdint.h" 1 3 4
2244 # 27 "/usr/include/stdint.h" 3 4
2245 # 1 "/usr/include/bits/wchar.h" 1 3 4
2246 # 28 "/usr/include/stdint.h" 2 3 4
2247 # 1 "/usr/include/bits/wordsize.h" 1 3 4
2248 # 29 "/usr/include/stdint.h" 2 3 4
2249 # 49 "/usr/include/stdint.h" 3 4
2250 typedef unsigned char uint8_t;
2251 typedef unsigned short int uint16_t;
2252
2253 typedef unsigned int uint32_t;
2254
2255
2256
2257
2258
2259 __extension__
2260 typedef unsigned long long int uint64_t;
2261
2262
2263
2264
2265
2266
2267 typedef signed char int_least8_t;
2268 typedef short int int_least16_t;
2269 typedef int int_least32_t;
2270
2271
2272
2273 __extension__
2274 typedef long long int int_least64_t;
2275
2276
2277
2278 typedef unsigned char uint_least8_t;
2279 typedef unsigned short int uint_least16_t;
2280 typedef unsigned int uint_least32_t;
2281
2282
2283
2284 __extension__
2285 typedef unsigned long long int uint_least64_t;
2286
2287
2288
2289
2290
2291
2292 typedef signed char int_fast8_t;
2293
2294
2295
2296
2297
2298 typedef int int_fast16_t;
2299 typedef int int_fast32_t;
2300 __extension__
2301 typedef long long int int_fast64_t;
2302
2303
2304
2305 typedef unsigned char uint_fast8_t;
2306
2307
2308
2309
2310
2311 typedef unsigned int uint_fast16_t;
2312 typedef unsigned int uint_fast32_t;
2313 __extension__
2314 typedef unsigned long long int uint_fast64_t;
2315 # 126 "/usr/include/stdint.h" 3 4
2316 typedef int intptr_t;
2317
2318
2319 typedef unsigned int uintptr_t;
2320 # 138 "/usr/include/stdint.h" 3 4
2321 __extension__
2322 typedef long long int intmax_t;
2323 __extension__
2324 typedef unsigned long long int uintmax_t;
2325 # 29 "/usr/include/inttypes.h" 2 3 4
2326
2327
2328
2329
2330
2331
2332 typedef long int __gwchar_t;
2333 # 274 "/usr/include/inttypes.h" 3 4
2334
2335 # 288 "/usr/include/inttypes.h" 3 4
2336 typedef struct
2337 {
2338 long long int quot;
2339 long long int rem;
2340 } imaxdiv_t;
2341
2342
2343
2344
2345
2346 extern intmax_t imaxabs (intmax_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2347
2348
2349 extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom)
2350 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2351
2352
2353 extern intmax_t strtoimax (__const char *__restrict __nptr,
2354 char **__restrict __endptr, int __base) __attribute__ ((__nothrow__));
2355
2356
2357 extern uintmax_t strtoumax (__const char *__restrict __nptr,
2358 char ** __restrict __endptr, int __base) __attribute__ ((__nothrow__));
2359
2360
2361 extern intmax_t wcstoimax (__const __gwchar_t *__restrict __nptr,
2362 __gwchar_t **__restrict __endptr, int __base)
2363 __attribute__ ((__nothrow__));
2364
2365
2366 extern uintmax_t wcstoumax (__const __gwchar_t *__restrict __nptr,
2367 __gwchar_t ** __restrict __endptr, int __base)
2368 __attribute__ ((__nothrow__));
2369 # 379 "/usr/include/inttypes.h" 3 4
2370 __extension__
2371 extern long long int __strtoll_internal (__const char *__restrict __nptr,
2372 char **__restrict __endptr,
2373 int __base, int __group)
2374 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
2375
2376 extern __inline intmax_t
2377 __attribute__ ((__nothrow__)) strtoimax (__const char *__restrict nptr, char **__restrict endptr, int base)
2378
2379 {
2380 return __strtoll_internal (nptr, endptr, base, 0);
2381 }
2382
2383 __extension__
2384 extern unsigned long long int __strtoull_internal (__const char *
2385 __restrict __nptr,
2386 char **
2387 __restrict __endptr,
2388 int __base,
2389 int __group)
2390 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
2391
2392 extern __inline uintmax_t
2393 __attribute__ ((__nothrow__)) strtoumax (__const char *__restrict nptr, char **__restrict endptr, int base)
2394
2395 {
2396 return __strtoull_internal (nptr, endptr, base, 0);
2397 }
2398
2399 __extension__
2400 extern long long int __wcstoll_internal (__const __gwchar_t *
2401 __restrict __nptr,
2402 __gwchar_t **__restrict __endptr,
2403 int __base, int __group)
2404 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
2405
2406 extern __inline intmax_t
2407 __attribute__ ((__nothrow__)) wcstoimax (__const __gwchar_t *__restrict nptr, __gwchar_t **__restrict endptr, int base)
2408
2409 {
2410 return __wcstoll_internal (nptr, endptr, base, 0);
2411 }
2412
2413
2414 __extension__
2415 extern unsigned long long int __wcstoull_internal (__const __gwchar_t *
2416 __restrict __nptr,
2417 __gwchar_t **
2418 __restrict __endptr,
2419 int __base,
2420 int __group)
2421 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
2422
2423 extern __inline uintmax_t
2424 __attribute__ ((__nothrow__)) wcstoumax (__const __gwchar_t *__restrict nptr, __gwchar_t **__restrict endptr, int base)
2425
2426 {
2427 return __wcstoull_internal (nptr, endptr, base, 0);
2428 }
2429
2430
2431
2432
2433
2434 # 16 "af_volnorm.c" 2
2435 # 1 "/usr/include/math.h" 1 3 4
2436 # 30 "/usr/include/math.h" 3 4
2437
2438
2439
2440
2441 # 1 "/usr/include/bits/huge_val.h" 1 3 4
2442 # 35 "/usr/include/math.h" 2 3 4
2443 # 47 "/usr/include/math.h" 3 4
2444 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include-fixed/bits/mathdef.h" 1 3 4
2445 # 48 "/usr/include/math.h" 2 3 4
2446 # 71 "/usr/include/math.h" 3 4
2447 # 1 "/usr/include/bits/mathcalls.h" 1 3 4
2448 # 53 "/usr/include/bits/mathcalls.h" 3 4
2449
2450
2451 extern double acos (double __x) __attribute__ ((__nothrow__)); extern double __acos (double __x) __attribute__ ((__nothrow__));
2452
2453 extern double asin (double __x) __attribute__ ((__nothrow__)); extern double __asin (double __x) __attribute__ ((__nothrow__));
2454
2455 extern double atan (double __x) __attribute__ ((__nothrow__)); extern double __atan (double __x) __attribute__ ((__nothrow__));
2456
2457 extern double atan2 (double __y, double __x) __attribute__ ((__nothrow__)); extern double __atan2 (double __y, double __x) __attribute__ ((__nothrow__));
2458
2459
2460 extern double cos (double __x) __attribute__ ((__nothrow__)); extern double __cos (double __x) __attribute__ ((__nothrow__));
2461
2462 extern double sin (double __x) __attribute__ ((__nothrow__)); extern double __sin (double __x) __attribute__ ((__nothrow__));
2463
2464 extern double tan (double __x) __attribute__ ((__nothrow__)); extern double __tan (double __x) __attribute__ ((__nothrow__));
2465
2466
2467
2468
2469 extern double cosh (double __x) __attribute__ ((__nothrow__)); extern double __cosh (double __x) __attribute__ ((__nothrow__));
2470
2471 extern double sinh (double __x) __attribute__ ((__nothrow__)); extern double __sinh (double __x) __attribute__ ((__nothrow__));
2472
2473 extern double tanh (double __x) __attribute__ ((__nothrow__)); extern double __tanh (double __x) __attribute__ ((__nothrow__));
2474
2475 # 87 "/usr/include/bits/mathcalls.h" 3 4
2476
2477
2478 extern double acosh (double __x) __attribute__ ((__nothrow__)); extern double __acosh (double __x) __attribute__ ((__nothrow__));
2479
2480 extern double asinh (double __x) __attribute__ ((__nothrow__)); extern double __asinh (double __x) __attribute__ ((__nothrow__));
2481
2482 extern double atanh (double __x) __attribute__ ((__nothrow__)); extern double __atanh (double __x) __attribute__ ((__nothrow__));
2483
2484
2485
2486
2487
2488
2489
2490 extern double exp (double __x) __attribute__ ((__nothrow__)); extern double __exp (double __x) __attribute__ ((__nothrow__));
2491
2492
2493 extern double frexp (double __x, int *__exponent) __attribute__ ((__nothrow__)); extern double __frexp (double __x, int *__exponent) __attribute__ ((__nothrow__));
2494
2495
2496 extern double ldexp (double __x, int __exponent) __attribute__ ((__nothrow__)); extern double __ldexp (double __x, int __exponent) __attribute__ ((__nothrow__));
2497
2498
2499 extern double log (double __x) __attribute__ ((__nothrow__)); extern double __log (double __x) __attribute__ ((__nothrow__));
2500
2501
2502 extern double log10 (double __x) __attribute__ ((__nothrow__)); extern double __log10 (double __x) __attribute__ ((__nothrow__));
2503
2504
2505 extern double modf (double __x, double *__iptr) __attribute__ ((__nothrow__)); extern double __modf (double __x, double *__iptr) __attribute__ ((__nothrow__));
2506
2507 # 127 "/usr/include/bits/mathcalls.h" 3 4
2508
2509
2510 extern double expm1 (double __x) __attribute__ ((__nothrow__)); extern double __expm1 (double __x) __attribute__ ((__nothrow__));
2511
2512
2513 extern double log1p (double __x) __attribute__ ((__nothrow__)); extern double __log1p (double __x) __attribute__ ((__nothrow__));
2514
2515
2516 extern double logb (double __x) __attribute__ ((__nothrow__)); extern double __logb (double __x) __attribute__ ((__nothrow__));
2517
2518 # 152 "/usr/include/bits/mathcalls.h" 3 4
2519
2520
2521 extern double pow (double __x, double __y) __attribute__ ((__nothrow__)); extern double __pow (double __x, double __y) __attribute__ ((__nothrow__));
2522
2523
2524 extern double sqrt (double __x) __attribute__ ((__nothrow__)); extern double __sqrt (double __x) __attribute__ ((__nothrow__));
2525
2526
2527
2528
2529
2530 extern double hypot (double __x, double __y) __attribute__ ((__nothrow__)); extern double __hypot (double __x, double __y) __attribute__ ((__nothrow__));
2531
2532
2533
2534
2535
2536
2537 extern double cbrt (double __x) __attribute__ ((__nothrow__)); extern double __cbrt (double __x) __attribute__ ((__nothrow__));
2538
2539
2540
2541
2542
2543
2544
2545
2546 extern double ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2547
2548
2549 extern double fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2550
2551
2552 extern double floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2553
2554
2555 extern double fmod (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmod (double __x, double __y) __attribute__ ((__nothrow__));
2556
2557
2558
2559
2560 extern int __isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2561
2562
2563 extern int __finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2564
2565
2566
2567
2568
2569 extern int isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2570
2571
2572 extern int finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2573
2574
2575 extern double drem (double __x, double __y) __attribute__ ((__nothrow__)); extern double __drem (double __x, double __y) __attribute__ ((__nothrow__));
2576
2577
2578
2579 extern double significand (double __x) __attribute__ ((__nothrow__)); extern double __significand (double __x) __attribute__ ((__nothrow__));
2580
2581
2582
2583
2584
2585 extern double copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2586
2587 # 231 "/usr/include/bits/mathcalls.h" 3 4
2588 extern int __isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2589
2590
2591
2592 extern int isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2593
2594
2595 extern double j0 (double) __attribute__ ((__nothrow__)); extern double __j0 (double) __attribute__ ((__nothrow__));
2596 extern double j1 (double) __attribute__ ((__nothrow__)); extern double __j1 (double) __attribute__ ((__nothrow__));
2597 extern double jn (int, double) __attribute__ ((__nothrow__)); extern double __jn (int, double) __attribute__ ((__nothrow__));
2598 extern double y0 (double) __attribute__ ((__nothrow__)); extern double __y0 (double) __attribute__ ((__nothrow__));
2599 extern double y1 (double) __attribute__ ((__nothrow__)); extern double __y1 (double) __attribute__ ((__nothrow__));
2600 extern double yn (int, double) __attribute__ ((__nothrow__)); extern double __yn (int, double) __attribute__ ((__nothrow__));
2601
2602
2603
2604
2605
2606
2607 extern double erf (double) __attribute__ ((__nothrow__)); extern double __erf (double) __attribute__ ((__nothrow__));
2608 extern double erfc (double) __attribute__ ((__nothrow__)); extern double __erfc (double) __attribute__ ((__nothrow__));
2609 extern double lgamma (double) __attribute__ ((__nothrow__)); extern double __lgamma (double) __attribute__ ((__nothrow__));
2610
2611 # 265 "/usr/include/bits/mathcalls.h" 3 4
2612 extern double gamma (double) __attribute__ ((__nothrow__)); extern double __gamma (double) __attribute__ ((__nothrow__));
2613
2614
2615
2616
2617
2618
2619 extern double lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__)); extern double __lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__));
2620
2621
2622
2623
2624
2625
2626
2627 extern double rint (double __x) __attribute__ ((__nothrow__)); extern double __rint (double __x) __attribute__ ((__nothrow__));
2628
2629
2630 extern double nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2631
2632
2633
2634
2635
2636 extern double remainder (double __x, double __y) __attribute__ ((__nothrow__)); extern double __remainder (double __x, double __y) __attribute__ ((__nothrow__));
2637
2638
2639
2640 extern double scalbn (double __x, int __n) __attribute__ ((__nothrow__)); extern double __scalbn (double __x, int __n) __attribute__ ((__nothrow__));
2641
2642
2643
2644 extern int ilogb (double __x) __attribute__ ((__nothrow__)); extern int __ilogb (double __x) __attribute__ ((__nothrow__));
2645 # 359 "/usr/include/bits/mathcalls.h" 3 4
2646
2647
2648
2649
2650
2651 extern double scalb (double __x, double __n) __attribute__ ((__nothrow__)); extern double __scalb (double __x, double __n) __attribute__ ((__nothrow__));
2652 # 72 "/usr/include/math.h" 2 3 4
2653 # 94 "/usr/include/math.h" 3 4
2654 # 1 "/usr/include/bits/mathcalls.h" 1 3 4
2655 # 53 "/usr/include/bits/mathcalls.h" 3 4
2656
2657
2658 extern float acosf (float __x) __attribute__ ((__nothrow__)); extern float __acosf (float __x) __attribute__ ((__nothrow__));
2659
2660 extern float asinf (float __x) __attribute__ ((__nothrow__)); extern float __asinf (float __x) __attribute__ ((__nothrow__));
2661
2662 extern float atanf (float __x) __attribute__ ((__nothrow__)); extern float __atanf (float __x) __attribute__ ((__nothrow__));
2663
2664 extern float atan2f (float __y, float __x) __attribute__ ((__nothrow__)); extern float __atan2f (float __y, float __x) __attribute__ ((__nothrow__));
2665
2666
2667 extern float cosf (float __x) __attribute__ ((__nothrow__)); extern float __cosf (float __x) __attribute__ ((__nothrow__));
2668
2669 extern float sinf (float __x) __attribute__ ((__nothrow__)); extern float __sinf (float __x) __attribute__ ((__nothrow__));
2670
2671 extern float tanf (float __x) __attribute__ ((__nothrow__)); extern float __tanf (float __x) __attribute__ ((__nothrow__));
2672
2673
2674
2675
2676 extern float coshf (float __x) __attribute__ ((__nothrow__)); extern float __coshf (float __x) __attribute__ ((__nothrow__));
2677
2678 extern float sinhf (float __x) __attribute__ ((__nothrow__)); extern float __sinhf (float __x) __attribute__ ((__nothrow__));
2679
2680 extern float tanhf (float __x) __attribute__ ((__nothrow__)); extern float __tanhf (float __x) __attribute__ ((__nothrow__));
2681
2682 # 87 "/usr/include/bits/mathcalls.h" 3 4
2683
2684
2685 extern float acoshf (float __x) __attribute__ ((__nothrow__)); extern float __acoshf (float __x) __attribute__ ((__nothrow__));
2686
2687 extern float asinhf (float __x) __attribute__ ((__nothrow__)); extern float __asinhf (float __x) __attribute__ ((__nothrow__));
2688
2689 extern float atanhf (float __x) __attribute__ ((__nothrow__)); extern float __atanhf (float __x) __attribute__ ((__nothrow__));
2690
2691
2692
2693
2694
2695
2696
2697 extern float expf (float __x) __attribute__ ((__nothrow__)); extern float __expf (float __x) __attribute__ ((__nothrow__));
2698
2699
2700 extern float frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__)); extern float __frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__));
2701
2702
2703 extern float ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__)); extern float __ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__));
2704
2705
2706 extern float logf (float __x) __attribute__ ((__nothrow__)); extern float __logf (float __x) __attribute__ ((__nothrow__));
2707
2708
2709 extern float log10f (float __x) __attribute__ ((__nothrow__)); extern float __log10f (float __x) __attribute__ ((__nothrow__));
2710
2711
2712 extern float modff (float __x, float *__iptr) __attribute__ ((__nothrow__)); extern float __modff (float __x, float *__iptr) __attribute__ ((__nothrow__));
2713
2714 # 127 "/usr/include/bits/mathcalls.h" 3 4
2715
2716
2717 extern float expm1f (float __x) __attribute__ ((__nothrow__)); extern float __expm1f (float __x) __attribute__ ((__nothrow__));
2718
2719
2720 extern float log1pf (float __x) __attribute__ ((__nothrow__)); extern float __log1pf (float __x) __attribute__ ((__nothrow__));
2721
2722
2723 extern float logbf (float __x) __attribute__ ((__nothrow__)); extern float __logbf (float __x) __attribute__ ((__nothrow__));
2724
2725 # 152 "/usr/include/bits/mathcalls.h" 3 4
2726
2727
2728 extern float powf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __powf (float __x, float __y) __attribute__ ((__nothrow__));
2729
2730
2731 extern float sqrtf (float __x) __attribute__ ((__nothrow__)); extern float __sqrtf (float __x) __attribute__ ((__nothrow__));
2732
2733
2734
2735
2736
2737 extern float hypotf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __hypotf (float __x, float __y) __attribute__ ((__nothrow__));
2738
2739
2740
2741
2742
2743
2744 extern float cbrtf (float __x) __attribute__ ((__nothrow__)); extern float __cbrtf (float __x) __attribute__ ((__nothrow__));
2745
2746
2747
2748
2749
2750
2751
2752
2753 extern float ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2754
2755
2756 extern float fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2757
2758
2759 extern float floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2760
2761
2762 extern float fmodf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fmodf (float __x, float __y) __attribute__ ((__nothrow__));
2763
2764
2765
2766
2767 extern int __isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2768
2769
2770 extern int __finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2771
2772
2773
2774
2775
2776 extern int isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2777
2778
2779 extern int finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2780
2781
2782 extern float dremf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __dremf (float __x, float __y) __attribute__ ((__nothrow__));
2783
2784
2785
2786 extern float significandf (float __x) __attribute__ ((__nothrow__)); extern float __significandf (float __x) __attribute__ ((__nothrow__));
2787
2788
2789
2790
2791
2792 extern float copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2793
2794 # 231 "/usr/include/bits/mathcalls.h" 3 4
2795 extern int __isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2796
2797
2798
2799 extern int isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2800
2801
2802 extern float j0f (float) __attribute__ ((__nothrow__)); extern float __j0f (float) __attribute__ ((__nothrow__));
2803 extern float j1f (float) __attribute__ ((__nothrow__)); extern float __j1f (float) __attribute__ ((__nothrow__));
2804 extern float jnf (int, float) __attribute__ ((__nothrow__)); extern float __jnf (int, float) __attribute__ ((__nothrow__));
2805 extern float y0f (float) __attribute__ ((__nothrow__)); extern float __y0f (float) __attribute__ ((__nothrow__));
2806 extern float y1f (float) __attribute__ ((__nothrow__)); extern float __y1f (float) __attribute__ ((__nothrow__));
2807 extern float ynf (int, float) __attribute__ ((__nothrow__)); extern float __ynf (int, float) __attribute__ ((__nothrow__));
2808
2809
2810
2811
2812
2813
2814 extern float erff (float) __attribute__ ((__nothrow__)); extern float __erff (float) __attribute__ ((__nothrow__));
2815 extern float erfcf (float) __attribute__ ((__nothrow__)); extern float __erfcf (float) __attribute__ ((__nothrow__));
2816 extern float lgammaf (float) __attribute__ ((__nothrow__)); extern float __lgammaf (float) __attribute__ ((__nothrow__));
2817
2818 # 265 "/usr/include/bits/mathcalls.h" 3 4
2819 extern float gammaf (float) __attribute__ ((__nothrow__)); extern float __gammaf (float) __attribute__ ((__nothrow__));
2820
2821
2822
2823
2824
2825
2826 extern float lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__)); extern float __lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__));
2827
2828
2829
2830
2831
2832
2833
2834 extern float rintf (float __x) __attribute__ ((__nothrow__)); extern float __rintf (float __x) __attribute__ ((__nothrow__));
2835
2836
2837 extern float nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2838
2839
2840
2841
2842
2843 extern float remainderf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __remainderf (float __x, float __y) __attribute__ ((__nothrow__));
2844
2845
2846
2847 extern float scalbnf (float __x, int __n) __attribute__ ((__nothrow__)); extern float __scalbnf (float __x, int __n) __attribute__ ((__nothrow__));
2848
2849
2850
2851 extern int ilogbf (float __x) __attribute__ ((__nothrow__)); extern int __ilogbf (float __x) __attribute__ ((__nothrow__));
2852 # 359 "/usr/include/bits/mathcalls.h" 3 4
2853
2854
2855
2856
2857
2858 extern float scalbf (float __x, float __n) __attribute__ ((__nothrow__)); extern float __scalbf (float __x, float __n) __attribute__ ((__nothrow__));
2859 # 95 "/usr/include/math.h" 2 3 4
2860 # 141 "/usr/include/math.h" 3 4
2861 # 1 "/usr/include/bits/mathcalls.h" 1 3 4
2862 # 53 "/usr/include/bits/mathcalls.h" 3 4
2863
2864
2865 extern long double acosl (long double __x) __attribute__ ((__nothrow__)); extern long double __acosl (long double __x) __attribute__ ((__nothrow__));
2866
2867 extern long double asinl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinl (long double __x) __attribute__ ((__nothrow__));
2868
2869 extern long double atanl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanl (long double __x) __attribute__ ((__nothrow__));
2870
2871 extern long double atan2l (long double __y, long double __x) __attribute__ ((__nothrow__)); extern long double __atan2l (long double __y, long double __x) __attribute__ ((__nothrow__));
2872
2873
2874 extern long double cosl (long double __x) __attribute__ ((__nothrow__)); extern long double __cosl (long double __x) __attribute__ ((__nothrow__));
2875
2876 extern long double sinl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinl (long double __x) __attribute__ ((__nothrow__));
2877
2878 extern long double tanl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanl (long double __x) __attribute__ ((__nothrow__));
2879
2880
2881
2882
2883 extern long double coshl (long double __x) __attribute__ ((__nothrow__)); extern long double __coshl (long double __x) __attribute__ ((__nothrow__));
2884
2885 extern long double sinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinhl (long double __x) __attribute__ ((__nothrow__));
2886
2887 extern long double tanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanhl (long double __x) __attribute__ ((__nothrow__));
2888
2889 # 87 "/usr/include/bits/mathcalls.h" 3 4
2890
2891
2892 extern long double acoshl (long double __x) __attribute__ ((__nothrow__)); extern long double __acoshl (long double __x) __attribute__ ((__nothrow__));
2893
2894 extern long double asinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinhl (long double __x) __attribute__ ((__nothrow__));
2895
2896 extern long double atanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanhl (long double __x) __attribute__ ((__nothrow__));
2897
2898
2899
2900
2901
2902
2903
2904 extern long double expl (long double __x) __attribute__ ((__nothrow__)); extern long double __expl (long double __x) __attribute__ ((__nothrow__));
2905
2906
2907 extern long double frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__)); extern long double __frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__));
2908
2909
2910 extern long double ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__)); extern long double __ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__));
2911
2912
2913 extern long double logl (long double __x) __attribute__ ((__nothrow__)); extern long double __logl (long double __x) __attribute__ ((__nothrow__));
2914
2915
2916 extern long double log10l (long double __x) __attribute__ ((__nothrow__)); extern long double __log10l (long double __x) __attribute__ ((__nothrow__));
2917
2918
2919 extern long double modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__)); extern long double __modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__));
2920
2921 # 127 "/usr/include/bits/mathcalls.h" 3 4
2922
2923
2924 extern long double expm1l (long double __x) __attribute__ ((__nothrow__)); extern long double __expm1l (long double __x) __attribute__ ((__nothrow__));
2925
2926
2927 extern long double log1pl (long double __x) __attribute__ ((__nothrow__)); extern long double __log1pl (long double __x) __attribute__ ((__nothrow__));
2928
2929
2930 extern long double logbl (long double __x) __attribute__ ((__nothrow__)); extern long double __logbl (long double __x) __attribute__ ((__nothrow__));
2931
2932 # 152 "/usr/include/bits/mathcalls.h" 3 4
2933
2934
2935 extern long double powl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __powl (long double __x, long double __y) __attribute__ ((__nothrow__));
2936
2937
2938 extern long double sqrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __sqrtl (long double __x) __attribute__ ((__nothrow__));
2939
2940
2941
2942
2943
2944 extern long double hypotl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __hypotl (long double __x, long double __y) __attribute__ ((__nothrow__));
2945
2946
2947
2948
2949
2950
2951 extern long double cbrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __cbrtl (long double __x) __attribute__ ((__nothrow__));
2952
2953
2954
2955
2956
2957
2958
2959
2960 extern long double ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2961
2962
2963 extern long double fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2964
2965
2966 extern long double floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2967
2968
2969 extern long double fmodl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fmodl (long double __x, long double __y) __attribute__ ((__nothrow__));
2970
2971
2972
2973
2974 extern int __isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2975
2976
2977 extern int __finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2978
2979
2980
2981
2982
2983 extern int isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2984
2985
2986 extern int finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2987
2988
2989 extern long double dreml (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __dreml (long double __x, long double __y) __attribute__ ((__nothrow__));
2990
2991
2992
2993 extern long double significandl (long double __x) __attribute__ ((__nothrow__)); extern long double __significandl (long double __x) __attribute__ ((__nothrow__));
2994
2995
2996
2997
2998
2999 extern long double copysignl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3000
3001 # 231 "/usr/include/bits/mathcalls.h" 3 4
3002 extern int __isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3003
3004
3005
3006 extern int isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3007
3008
3009 extern long double j0l (long double) __attribute__ ((__nothrow__)); extern long double __j0l (long double) __attribute__ ((__nothrow__));
3010 extern long double j1l (long double) __attribute__ ((__nothrow__)); extern long double __j1l (long double) __attribute__ ((__nothrow__));
3011 extern long double jnl (int, long double) __attribute__ ((__nothrow__)); extern long double __jnl (int, long double) __attribute__ ((__nothrow__));
3012 extern long double y0l (long double) __attribute__ ((__nothrow__)); extern long double __y0l (long double) __attribute__ ((__nothrow__));
3013 extern long double y1l (long double) __attribute__ ((__nothrow__)); extern long double __y1l (long double) __attribute__ ((__nothrow__));
3014 extern long double ynl (int, long double) __attribute__ ((__nothrow__)); extern long double __ynl (int, long double) __attribute__ ((__nothrow__));
3015
3016
3017
3018
3019
3020
3021 extern long double erfl (long double) __attribute__ ((__nothrow__)); extern long double __erfl (long double) __attribute__ ((__nothrow__));
3022 extern long double erfcl (long double) __attribute__ ((__nothrow__)); extern long double __erfcl (long double) __attribute__ ((__nothrow__));
3023 extern long double lgammal (long double) __attribute__ ((__nothrow__)); extern long double __lgammal (long double) __attribute__ ((__nothrow__));
3024
3025 # 265 "/usr/include/bits/mathcalls.h" 3 4
3026 extern long double gammal (long double) __attribute__ ((__nothrow__)); extern long double __gammal (long double) __attribute__ ((__nothrow__));
3027
3028
3029
3030
3031
3032
3033 extern long double lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__)); extern long double __lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__));
3034
3035
3036
3037
3038
3039
3040
3041 extern long double rintl (long double __x) __attribute__ ((__nothrow__)); extern long double __rintl (long double __x) __attribute__ ((__nothrow__));
3042
3043
3044 extern long double nextafterl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __nextafterl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3045
3046
3047
3048
3049
3050 extern long double remainderl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __remainderl (long double __x, long double __y) __attribute__ ((__nothrow__));
3051
3052
3053
3054 extern long double scalbnl (long double __x, int __n) __attribute__ ((__nothrow__)); extern long double __scalbnl (long double __x, int __n) __attribute__ ((__nothrow__));
3055
3056
3057
3058 extern int ilogbl (long double __x) __attribute__ ((__nothrow__)); extern int __ilogbl (long double __x) __attribute__ ((__nothrow__));
3059 # 359 "/usr/include/bits/mathcalls.h" 3 4
3060
3061
3062
3063
3064
3065 extern long double scalbl (long double __x, long double __n) __attribute__ ((__nothrow__)); extern long double __scalbl (long double __x, long double __n) __attribute__ ((__nothrow__));
3066 # 142 "/usr/include/math.h" 2 3 4
3067 # 157 "/usr/include/math.h" 3 4
3068 extern int signgam;
3069 # 284 "/usr/include/math.h" 3 4
3070 typedef enum
3071 {
3072 _IEEE_ = -1,
3073 _SVID_,
3074 _XOPEN_,
3075 _POSIX_,
3076 _ISOC_
3077 } _LIB_VERSION_TYPE;
3078
3079
3080
3081
3082 extern _LIB_VERSION_TYPE _LIB_VERSION;
3083 # 309 "/usr/include/math.h" 3 4
3084 struct exception
3085
3086 {
3087 int type;
3088 char *name;
3089 double arg1;
3090 double arg2;
3091 double retval;
3092 };
3093
3094
3095
3096
3097 extern int matherr (struct exception *__exc);
3098 # 409 "/usr/include/math.h" 3 4
3099 # 1 "/usr/include/bits/mathinline.h" 1 3 4
3100 # 410 "/usr/include/math.h" 2 3 4
3101 # 465 "/usr/include/math.h" 3 4
3102
3103 # 17 "af_volnorm.c" 2
3104 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include-fixed/limits.h" 1 3 4
3105 # 11 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include-fixed/limits.h" 3 4
3106 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include-fixed/syslimits.h" 1 3 4
3107
3108
3109
3110
3111
3112
3113 # 1 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include-fixed/limits.h" 1 3 4
3114 # 122 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include-fixed/limits.h" 3 4
3115 # 1 "/usr/include/limits.h" 1 3 4
3116 # 145 "/usr/include/limits.h" 3 4
3117 # 1 "/usr/include/bits/posix1_lim.h" 1 3 4
3118 # 153 "/usr/include/bits/posix1_lim.h" 3 4
3119 # 1 "/usr/include/bits/local_lim.h" 1 3 4
3120 # 36 "/usr/include/bits/local_lim.h" 3 4
3121 # 1 "/usr/include/linux/limits.h" 1 3 4
3122 # 37 "/usr/include/bits/local_lim.h" 2 3 4
3123 # 154 "/usr/include/bits/posix1_lim.h" 2 3 4
3124 # 146 "/usr/include/limits.h" 2 3 4
3125
3126
3127
3128 # 1 "/usr/include/bits/posix2_lim.h" 1 3 4
3129 # 150 "/usr/include/limits.h" 2 3 4
3130 # 123 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include-fixed/limits.h" 2 3 4
3131 # 8 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include-fixed/syslimits.h" 2 3 4
3132 # 12 "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.3.0/include-fixed/limits.h" 2 3 4
3133 # 18 "af_volnorm.c" 2
3134
3135 # 1 "af.h" 1
3136
3137
3138
3139
3140
3141 # 1 "../config.h" 1
3142 # 7 "af.h" 2
3143 # 1 "af_mp.h" 1
3144
3145
3146
3147
3148
3149 # 1 "../mp_msg.h" 1
3150
3151
3152
3153
3154 extern int verbose;
3155 # 109 "../mp_msg.h"
3156 void mp_msg_init(void);
3157 int mp_msg_test(int mod, int lev);
3158
3159 # 1 "../config.h" 1
3160 # 113 "../mp_msg.h" 2
3161
3162
3163 void mp_msg(int mod, int lev, const char *format, ... ) __attribute__ ((format (printf, 3, 4)));
3164 # 130 "../mp_msg.h"
3165 const char* filename_recode(const char* filename);
3166 # 7 "af_mp.h" 2
3167 # 1 "../cpudetect.h" 1
3168 # 37 "../cpudetect.h"
3169 typedef struct cpucaps_s {
3170 int cpuType;
3171 int cpuModel;
3172 int cpuStepping;
3173 int hasMMX;
3174 int hasMMX2;
3175 int has3DNow;
3176 int has3DNowExt;
3177 int hasSSE;
3178 int hasSSE2;
3179 int isX86;
3180 unsigned cl_size;
3181 int hasAltiVec;
3182 int hasTSC;
3183 } CpuCaps;
3184
3185 extern CpuCaps gCpuCaps;
3186
3187 void GetCpuCaps(CpuCaps *caps);
3188
3189
3190 char *GetCpuFriendlyName(unsigned int regs[], unsigned int regs2[]);
3191 # 8 "af_mp.h" 2
3192 # 8 "af.h" 2
3193 # 1 "control.h" 1
3194 # 33 "control.h"
3195 typedef struct af_control_info_s{
3196 int def;
3197 char* name;
3198 char* info;
3199 int flags;
3200 float max;
3201 float min;
3202 int xdim;
3203 int ydim;
3204 size_t sz;
3205 int ch;
3206 void* arg;
3207 }af_control_info_t;
3208
3209
3210
3211
3212
3213
3214 typedef struct af_control_ext_s{
3215 void* arg;
3216 int ch;
3217 }af_control_ext_t;
3218 # 9 "af.h" 2
3219 # 1 "af_format.h" 1
3220 # 88 "af_format.h"
3221 extern int af_str2fmt(const char *str);
3222 extern int af_str2fmt_short(const char *str);
3223 extern int af_fmt2bits(int format);
3224 extern int af_bits2fmt(int bits);
3225 extern char* af_fmt2str(int format, char* str, int size);
3226 extern const char* af_fmt2str_short(int format);
3227 # 10 "af.h" 2
3228
3229 struct af_instance_s;
3230
3231
3232
3233
3234
3235
3236
3237 typedef struct af_data_s
3238 {
3239 void* audio;
3240 int len;
3241 int rate;
3242 int nch;
3243 int format;
3244 int bps;
3245 } af_data_t;
3246 # 36 "af.h"
3247 typedef struct af_info_s
3248 {
3249 const char *info;
3250 const char *name;
3251 const char *author;
3252 const char *comment;
3253 const int flags;
3254 int (*open)(struct af_instance_s* vf);
3255 } af_info_t;
3256
3257
3258 typedef struct af_instance_s
3259 {
3260 af_info_t* info;
3261 int (*control)(struct af_instance_s* af, int cmd, void* arg);
3262 void (*uninit)(struct af_instance_s* af);
3263 af_data_t* (*play)(struct af_instance_s* af, af_data_t* data);
3264 void* setup;
3265 af_data_t* data;
3266 struct af_instance_s* next;
3267 struct af_instance_s* prev;
3268 double delay;
3269
3270 double mul;
3271
3272 }af_instance_t;
3273
3274
3275 extern int* af_cpu_speed;
3276 # 86 "af.h"
3277 typedef struct af_cfg_s{
3278 int force;
3279 char** list;
3280
3281 }af_cfg_t;
3282
3283
3284 typedef struct af_stream_s
3285 {
3286
3287 af_instance_t* first;
3288 af_instance_t* last;
3289
3290 af_data_t input;
3291 af_data_t output;
3292
3293 af_cfg_t cfg;
3294 }af_stream_t;
3295 # 142 "af.h"
3296 int af_init(af_stream_t* s);
3297
3298
3299
3300
3301 void af_uninit(af_stream_t* s);
3302 # 158 "af.h"
3303 af_instance_t* af_add(af_stream_t* s, char* name);
3304
3305
3306
3307
3308
3309 void af_remove(af_stream_t* s, af_instance_t* af);
3310 # 173 "af.h"
3311 af_instance_t* af_get(af_stream_t* s, char* name);
3312
3313
3314
3315
3316
3317
3318
3319 af_data_t* af_play(af_stream_t* s, af_data_t* data);
3320 # 190 "af.h"
3321 af_instance_t *af_control_any_rev (af_stream_t* s, int cmd, void* arg);
3322
3323
3324
3325
3326
3327 double af_calc_filter_multiplier(af_stream_t* s);
3328
3329
3330
3331
3332
3333 double af_calc_delay(af_stream_t* s);
3334 # 215 "af.h"
3335 int af_resize_local_buffer(af_instance_t* af, af_data_t* data);
3336
3337
3338
3339
3340 int af_lencalc(double mul, af_data_t* data);
3341 # 232 "af.h"
3342 int af_from_dB(int n, float* in, float* out, float k, float mi, float ma);
3343 # 242 "af.h"
3344 int af_to_dB(int n, float* in, float* out, float k);
3345 # 254 "af.h"
3346 int af_from_ms(int n, float* in, int* out, int rate, float mi, float ma);
3347 # 264 "af.h"
3348 int af_to_ms(int n, int* in, float* out, int rate);
3349 # 275 "af.h"
3350 int af_test_output(struct af_instance_s* af, af_data_t* out);
3351
3352
3353
3354
3355
3356
3357 float af_softclip(float a);
3358
3359
3360
3361
3362 void af_help(void);
3363 # 296 "af.h"
3364 void af_fix_parameters(af_data_t *data);
3365 # 329 "af.h"
3366 typedef struct af_msg_cfg_s
3367 {
3368 int level;
3369
3370 FILE* err;
3371 FILE* msg;
3372 }af_msg_cfg_t;
3373
3374 extern af_msg_cfg_t af_msg_cfg;
3375 # 20 "af_volnorm.c" 2
3376 # 53 "af_volnorm.c"
3377 typedef struct af_volume_s
3378 {
3379 int method;
3380 float mul;
3381
3382 float lastavg;
3383
3384 int idx;
3385 struct {
3386 float avg;
3387 int len;
3388 } mem[128];
3389
3390 float mid_s16;
3391 float mid_float;
3392 }af_volnorm_t;
3393
3394
3395 static int control(struct af_instance_s* af, int cmd, void* arg)
3396 {
3397 af_volnorm_t* s = (af_volnorm_t*)af->setup;
3398
3399 switch(cmd){
3400 case 0x00000100 | 0x10000000:
3401
3402 if(!arg) return -2;
3403
3404 af->data->rate = ((af_data_t*)arg)->rate;
3405 af->data->nch = ((af_data_t*)arg)->nch;
3406
3407 if(((af_data_t*)arg)->format == (((0<<2)|(0<<1)|(1<<3)|(0<<0)))){
3408 af->data->format = ((0<<2)|(0<<1)|(1<<3)|(0<<0));
3409 af->data->bps = 2;
3410 }else{
3411 af->data->format = ((1<<2)|(3<<3)|(0<<0));
3412 af->data->bps = 4;
3413 }
3414 return af_test_output(af,(af_data_t*)arg);
3415 case 0x00000300 | 0x20000000:{
3416 int i = 0;
3417 float target = 0.25;
3418 sscanf((char*)arg,"%d:%f", &i, &target);
3419 if (i != 1 && i != 2)
3420 return -2;
3421 s->method = i-1;
3422 s->mid_s16 = ((float)32767) * target;
3423 s->mid_float = ((float)2147483647) * target;
3424 return 1;
3425 }
3426 }
3427 return -1;
3428 }
3429
3430
3431 static void uninit(struct af_instance_s* af)
3432 {
3433 if(af->data)
3434 free(af->data);
3435 if(af->setup)
3436 free(af->setup);
3437 }
3438
3439 static void method1_int16(af_volnorm_t *s, af_data_t *c)
3440 {
3441 register int i = 0;
3442 int16_t *data = (int16_t*)c->audio;
3443 int len = c->len/2;
3444 float curavg = 0.0, newavg, neededmul;
3445 int tmp;
3446
3447 for (i = 0; i < len; i++)
3448 {
3449 tmp = data[i];
3450 curavg += tmp * tmp;
3451 }
3452 curavg = sqrt(curavg / (float) len);
3453
3454
3455
3456
3457 if (curavg > (32767 * 0.01))
3458 {
3459 neededmul = s->mid_s16 / (curavg * s->mul);
3460 s->mul = (1.0 - 0.06) * s->mul + 0.06 * neededmul;
3461
3462
3463 s->mul = (((s->mul)>(5.0))?(5.0):(((s->mul)<(0.1))?(0.1):(s->mul)));
3464 }
3465
3466
3467 for (i = 0; i < len; i++)
3468 {
3469 tmp = s->mul * data[i];
3470 tmp = (((tmp)>(32767))?(32767):(((tmp)<((-32767 - 1)))?((-32767 - 1)):(tmp)));
3471 data[i] = tmp;
3472 }
3473
3474
3475 newavg = s->mul * curavg;
3476
3477
3478 s->lastavg = (1.0 - 0.06) * s->lastavg + 0.06 * newavg;
3479 }
3480
3481 static void method1_float(af_volnorm_t *s, af_data_t *c)
3482 {
3483 register int i = 0;
3484 float *data = (float*)c->audio;
3485 int len = c->len/4;
3486 float curavg = 0.0, newavg, neededmul, tmp;
3487
3488 for (i = 0; i < len; i++)
3489 {
3490 tmp = data[i];
3491 curavg += tmp * tmp;
3492 }
3493 curavg = sqrt(curavg / (float) len);
3494
3495
3496
3497
3498 if (curavg > (2147483647 * 0.01))
3499 {
3500 neededmul = s->mid_float / (curavg * s->mul);
3501 s->mul = (1.0 - 0.06) * s->mul + 0.06 * neededmul;
3502
3503
3504 s->mul = (((s->mul)>(5.0))?(5.0):(((s->mul)<(0.1))?(0.1):(s->mul)));
3505 }
3506
3507
3508 for (i = 0; i < len; i++)
3509 data[i] *= s->mul;
3510
3511
3512 newavg = s->mul * curavg;
3513
3514
3515 s->lastavg = (1.0 - 0.06) * s->lastavg + 0.06 * newavg;
3516 }
3517
3518 static void method2_int16(af_volnorm_t *s, af_data_t *c)
3519 {
3520 register int i = 0;
3521 int16_t *data = (int16_t*)c->audio;
3522 int len = c->len/2;
3523 float curavg = 0.0, newavg, avg = 0.0;
3524 int tmp, totallen = 0;
3525
3526 for (i = 0; i < len; i++)
3527 {
3528 tmp = data[i];
3529 curavg += tmp * tmp;
3530 }
3531 curavg = sqrt(curavg / (float) len);
3532
3533
3534
3535 for (i = 0; i < 128; i++)
3536 {
3537 avg += s->mem[i].avg * (float)s->mem[i].len;
3538 totallen += s->mem[i].len;
3539 }
3540
3541 if (totallen > 32000)
3542 {
3543 avg /= (float)totallen;
3544 if (avg >= (32767 * 0.01))
3545 {
3546 s->mul = s->mid_s16 / avg;
3547 s->mul = (((s->mul)>(5.0))?(5.0):(((s->mul)<(0.1))?(0.1):(s->mul)));
3548 }
3549 }
3550
3551
3552 for (i = 0; i < len; i++)
3553 {
3554 tmp = s->mul * data[i];
3555 tmp = (((tmp)>(32767))?(32767):(((tmp)<((-32767 - 1)))?((-32767 - 1)):(tmp)));
3556 data[i] = tmp;
3557 }
3558
3559
3560 newavg = s->mul * curavg;
3561
3562
3563 s->mem[s->idx].len = len;
3564 s->mem[s->idx].avg = newavg;
3565 s->idx = (s->idx + 1) % 128;
3566 }
3567
3568 static void method2_float(af_volnorm_t *s, af_data_t *c)
3569 {
3570 register int i = 0;
3571 float *data = (float*)c->audio;
3572 int len = c->len/4;
3573 float curavg = 0.0, newavg, avg = 0.0, tmp;
3574 int totallen = 0;
3575
3576 for (i = 0; i < len; i++)
3577 {
3578 tmp = data[i];
3579 curavg += tmp * tmp;
3580 }
3581 curavg = sqrt(curavg / (float) len);
3582
3583
3584
3585 for (i = 0; i < 128; i++)
3586 {
3587 avg += s->mem[i].avg * (float)s->mem[i].len;
3588 totallen += s->mem[i].len;
3589 }
3590
3591 if (totallen > 32000)
3592 {
3593 avg /= (float)totallen;
3594 if (avg >= (2147483647 * 0.01))
3595 {
3596 s->mul = s->mid_float / avg;
3597 s->mul = (((s->mul)>(5.0))?(5.0):(((s->mul)<(0.1))?(0.1):(s->mul)));
3598 }
3599 }
3600
3601
3602 for (i = 0; i < len; i++)
3603 data[i] *= s->mul;
3604
3605
3606 newavg = s->mul * curavg;
3607
3608
3609 s->mem[s->idx].len = len;
3610 s->mem[s->idx].avg = newavg;
3611 s->idx = (s->idx + 1) % 128;
3612 }
3613
3614
3615 static af_data_t* play(struct af_instance_s* af, af_data_t* data)
3616 {
3617 af_volnorm_t *s = af->setup;
3618
3619 if(af->data->format == (((0<<2)|(0<<1)|(1<<3)|(0<<0))))
3620 {
3621 if (s->method)
3622 method2_int16(s, data);
3623 else
3624 method1_int16(s, data);
3625 }
3626 else if(af->data->format == (((1<<2)|(3<<3)|(0<<0))))
3627 {
3628 if (s->method)
3629 method2_float(s, data);
3630 else
3631 method1_float(s, data);
3632 }
3633 return data;
3634 }
3635
3636
3637 static int af_open(af_instance_t* af){
3638 int i = 0;
3639 af->control=control;
3640 af->uninit=uninit;
3641 af->play=play;
3642 af->mul=1;
3643 af->data=calloc(1,sizeof(af_data_t));
3644 af->setup=calloc(1,sizeof(af_volnorm_t));
3645 if(af->data == ((void *)0) || af->setup == ((void *)0))
3646 return -2;
3647
3648 ((af_volnorm_t*)af->setup)->mul = 1.0;
3649 ((af_volnorm_t*)af->setup)->lastavg = ((float)32767) * 0.25;
3650 ((af_volnorm_t*)af->setup)->idx = 0;
3651 ((af_volnorm_t*)af->setup)->mid_s16 = ((float)32767) * 0.25;
3652 ((af_volnorm_t*)af->setup)->mid_float = ((float)2147483647) * 0.25;
3653 for (i = 0; i < 128; i++)
3654 {
3655 ((af_volnorm_t*)af->setup)->mem[i].len = 0;
3656 ((af_volnorm_t*)af->setup)->mem[i].avg = 0;
3657 }
3658 return 1;
3659 }
3660
3661
3662 af_info_t af_info_volnorm = {
3663 "Volume normalizer filter",
3664 "volnorm",
3665 "Alex Beregszaszi & Pierre Lombard",
3666 "",
3667 0x00000001,
3668 af_open
3669 };