]> git.wh0rd.org - ICEs.git/blame - 200089/mandel.i.0
add bfin ice
[ICEs.git] / 200089 / mandel.i.0
CommitLineData
45516216 1
2typedef long unsigned int size_t;
3typedef unsigned char __u_char;
4typedef unsigned short int __u_short;
5typedef unsigned int __u_int;
6typedef unsigned long int __u_long;
7typedef signed char __int8_t;
8typedef unsigned char __uint8_t;
9typedef signed short int __int16_t;
10typedef unsigned short int __uint16_t;
11typedef signed int __int32_t;
12typedef unsigned int __uint32_t;
13typedef signed long int __int64_t;
14typedef unsigned long int __uint64_t;
15typedef long int __quad_t;
16typedef unsigned long int __u_quad_t;
17typedef unsigned long int __dev_t;
18typedef unsigned int __uid_t;
19typedef unsigned int __gid_t;
20typedef unsigned long int __ino_t;
21typedef unsigned long int __ino64_t;
22typedef unsigned int __mode_t;
23typedef unsigned long int __nlink_t;
24typedef long int __off_t;
25typedef long int __off64_t;
26typedef int __pid_t;
27typedef struct { int __val[2]; } __fsid_t;
28typedef long int __clock_t;
29typedef unsigned long int __rlim_t;
30typedef unsigned long int __rlim64_t;
31typedef unsigned int __id_t;
32typedef long int __time_t;
33typedef unsigned int __useconds_t;
34typedef long int __suseconds_t;
35typedef int __daddr_t;
36typedef long int __swblk_t;
37typedef int __key_t;
38typedef int __clockid_t;
39typedef void * __timer_t;
40typedef long int __blksize_t;
41typedef long int __blkcnt_t;
42typedef long int __blkcnt64_t;
43typedef unsigned long int __fsblkcnt_t;
44typedef unsigned long int __fsblkcnt64_t;
45typedef unsigned long int __fsfilcnt_t;
46typedef unsigned long int __fsfilcnt64_t;
47typedef long int __ssize_t;
48typedef __off64_t __loff_t;
49typedef __quad_t *__qaddr_t;
50typedef char *__caddr_t;
51typedef long int __intptr_t;
52typedef unsigned int __socklen_t;
53struct _IO_FILE;
54
55typedef struct _IO_FILE FILE;
56
57
58typedef struct _IO_FILE __FILE;
59typedef struct
60{
61 int __count;
62 union
63 {
64 unsigned int __wch;
65 char __wchb[4];
66 } __value;
67} __mbstate_t;
68typedef struct
69{
70 __off_t __pos;
71 __mbstate_t __state;
72} _G_fpos_t;
73typedef struct
74{
75 __off64_t __pos;
76 __mbstate_t __state;
77} _G_fpos64_t;
78typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
79typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
80typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
81typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
82typedef __builtin_va_list __gnuc_va_list;
83struct _IO_jump_t; struct _IO_FILE;
84typedef void _IO_lock_t;
85struct _IO_marker {
86 struct _IO_marker *_next;
87 struct _IO_FILE *_sbuf;
88 int _pos;
89};
90enum __codecvt_result
91{
92 __codecvt_ok,
93 __codecvt_partial,
94 __codecvt_error,
95 __codecvt_noconv
96};
97struct _IO_FILE {
98 int _flags;
99 char* _IO_read_ptr;
100 char* _IO_read_end;
101 char* _IO_read_base;
102 char* _IO_write_base;
103 char* _IO_write_ptr;
104 char* _IO_write_end;
105 char* _IO_buf_base;
106 char* _IO_buf_end;
107 char *_IO_save_base;
108 char *_IO_backup_base;
109 char *_IO_save_end;
110 struct _IO_marker *_markers;
111 struct _IO_FILE *_chain;
112 int _fileno;
113 int _flags2;
114 __off_t _old_offset;
115 unsigned short _cur_column;
116 signed char _vtable_offset;
117 char _shortbuf[1];
118 _IO_lock_t *_lock;
119 __off64_t _offset;
120 void *__pad1;
121 void *__pad2;
122 void *__pad3;
123 void *__pad4;
124 size_t __pad5;
125 int _mode;
126 char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
127};
128typedef struct _IO_FILE _IO_FILE;
129struct _IO_FILE_plus;
130extern struct _IO_FILE_plus _IO_2_1_stdin_;
131extern struct _IO_FILE_plus _IO_2_1_stdout_;
132extern struct _IO_FILE_plus _IO_2_1_stderr_;
133typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
134typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
135 size_t __n);
136typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
137typedef int __io_close_fn (void *__cookie);
138extern int __underflow (_IO_FILE *);
139extern int __uflow (_IO_FILE *);
140extern int __overflow (_IO_FILE *, int);
141extern int _IO_getc (_IO_FILE *__fp);
142extern int _IO_putc (int __c, _IO_FILE *__fp);
143extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__));
144extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__));
145extern int _IO_peekc_locked (_IO_FILE *__fp);
146extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__));
147extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__));
148extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__));
149extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
150 __gnuc_va_list, int *__restrict);
151extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
152 __gnuc_va_list);
153extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t);
154extern size_t _IO_sgetn (_IO_FILE *, void *, size_t);
155extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int);
156extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int);
157extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__));
158
159typedef _G_fpos_t fpos_t;
160
161extern struct _IO_FILE *stdin;
162extern struct _IO_FILE *stdout;
163extern struct _IO_FILE *stderr;
164
165extern int remove (__const char *__filename) __attribute__ ((__nothrow__));
166extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__));
167
168
169
170
171
172
173
174extern FILE *tmpfile (void) ;
175extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)) ;
176
177extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)) ;
178extern char *tempnam (__const char *__dir, __const char *__pfx)
179 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
180
181extern int fclose (FILE *__stream);
182extern int fflush (FILE *__stream);
183
184extern int fflush_unlocked (FILE *__stream);
185
186extern FILE *fopen (__const char *__restrict __filename,
187 __const char *__restrict __modes) ;
188extern FILE *freopen (__const char *__restrict __filename,
189 __const char *__restrict __modes,
190 FILE *__restrict __stream) ;
191
192extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)) ;
193
194extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__));
195extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
196 int __modes, size_t __n) __attribute__ ((__nothrow__));
197
198extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
199 size_t __size) __attribute__ ((__nothrow__));
200extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__));
201
202extern int fprintf (FILE *__restrict __stream,
203 __const char *__restrict __format, ...);
204extern int printf (__const char *__restrict __format, ...);
205extern int sprintf (char *__restrict __s,
206 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
207extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
208 __gnuc_va_list __arg);
209extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
210extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
211 __gnuc_va_list __arg) __attribute__ ((__nothrow__));
212
213
214extern int snprintf (char *__restrict __s, size_t __maxlen,
215 __const char *__restrict __format, ...)
216 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
217extern int vsnprintf (char *__restrict __s, size_t __maxlen,
218 __const char *__restrict __format, __gnuc_va_list __arg)
219 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
220
221
222extern int fscanf (FILE *__restrict __stream,
223 __const char *__restrict __format, ...) ;
224extern int scanf (__const char *__restrict __format, ...) ;
225extern int sscanf (__const char *__restrict __s,
226 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
227
228
229extern int fgetc (FILE *__stream);
230extern int getc (FILE *__stream);
231extern int getchar (void);
232
233extern int getc_unlocked (FILE *__stream);
234extern int getchar_unlocked (void);
235extern int fgetc_unlocked (FILE *__stream);
236
237extern int fputc (int __c, FILE *__stream);
238extern int putc (int __c, FILE *__stream);
239extern int putchar (int __c);
240
241extern int fputc_unlocked (int __c, FILE *__stream);
242extern int putc_unlocked (int __c, FILE *__stream);
243extern int putchar_unlocked (int __c);
244extern int getw (FILE *__stream);
245extern int putw (int __w, FILE *__stream);
246
247extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
248 ;
249extern char *gets (char *__s) ;
250
251
252extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
253extern int puts (__const char *__s);
254extern int ungetc (int __c, FILE *__stream);
255extern size_t fread (void *__restrict __ptr, size_t __size,
256 size_t __n, FILE *__restrict __stream) ;
257extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
258 size_t __n, FILE *__restrict __s) ;
259
260extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
261 size_t __n, FILE *__restrict __stream) ;
262extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
263 size_t __n, FILE *__restrict __stream) ;
264
265extern int fseek (FILE *__stream, long int __off, int __whence);
266extern long int ftell (FILE *__stream) ;
267extern void rewind (FILE *__stream);
268
269extern int fseeko (FILE *__stream, __off_t __off, int __whence);
270extern __off_t ftello (FILE *__stream) ;
271
272extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
273extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
274
275
276extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__));
277extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ;
278extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ;
279
280extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
281extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
282extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
283
284extern void perror (__const char *__s);
285
286extern int sys_nerr;
287extern __const char *__const sys_errlist[];
288extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ;
289extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
290extern FILE *popen (__const char *__command, __const char *__modes) ;
291extern int pclose (FILE *__stream);
292extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
293extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__));
294extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ;
295extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__));
296
297typedef int wchar_t;
298
299
300typedef struct
301 {
302 int quot;
303 int rem;
304 } div_t;
305typedef struct
306 {
307 long int quot;
308 long int rem;
309 } ldiv_t;
310
311extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ;
312
313extern double atof (__const char *__nptr)
314 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
315extern int atoi (__const char *__nptr)
316 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
317extern long int atol (__const char *__nptr)
318 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
319
320
321__extension__ extern long long int atoll (__const char *__nptr)
322 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
323
324
325extern double strtod (__const char *__restrict __nptr,
326 char **__restrict __endptr)
327 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
328
329
330extern long int strtol (__const char *__restrict __nptr,
331 char **__restrict __endptr, int __base)
332 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
333extern unsigned long int strtoul (__const char *__restrict __nptr,
334 char **__restrict __endptr, int __base)
335 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
336
337__extension__
338extern long long int strtoq (__const char *__restrict __nptr,
339 char **__restrict __endptr, int __base)
340 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
341__extension__
342extern unsigned long long int strtouq (__const char *__restrict __nptr,
343 char **__restrict __endptr, int __base)
344 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
345
346__extension__
347extern long long int strtoll (__const char *__restrict __nptr,
348 char **__restrict __endptr, int __base)
349 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
350__extension__
351extern unsigned long long int strtoull (__const char *__restrict __nptr,
352 char **__restrict __endptr, int __base)
353 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
354
355extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ;
356extern long int a64l (__const char *__s)
357 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
358
359typedef __u_char u_char;
360typedef __u_short u_short;
361typedef __u_int u_int;
362typedef __u_long u_long;
363typedef __quad_t quad_t;
364typedef __u_quad_t u_quad_t;
365typedef __fsid_t fsid_t;
366typedef __loff_t loff_t;
367typedef __ino_t ino_t;
368typedef __dev_t dev_t;
369typedef __gid_t gid_t;
370typedef __mode_t mode_t;
371typedef __nlink_t nlink_t;
372typedef __uid_t uid_t;
373typedef __off_t off_t;
374typedef __pid_t pid_t;
375typedef __id_t id_t;
376typedef __ssize_t ssize_t;
377typedef __daddr_t daddr_t;
378typedef __caddr_t caddr_t;
379typedef __key_t key_t;
380
381typedef __time_t time_t;
382
383
384typedef __clockid_t clockid_t;
385typedef __timer_t timer_t;
386typedef unsigned long int ulong;
387typedef unsigned short int ushort;
388typedef unsigned int uint;
389typedef int int8_t __attribute__ ((__mode__ (__QI__)));
390typedef int int16_t __attribute__ ((__mode__ (__HI__)));
391typedef int int32_t __attribute__ ((__mode__ (__SI__)));
392typedef int int64_t __attribute__ ((__mode__ (__DI__)));
393typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
394typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
395typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
396typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
397typedef int register_t __attribute__ ((__mode__ (__word__)));
398typedef int __sig_atomic_t;
399typedef struct
400 {
401 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
402 } __sigset_t;
403typedef __sigset_t sigset_t;
404struct timespec
405 {
406 __time_t tv_sec;
407 long int tv_nsec;
408 };
409struct timeval
410 {
411 __time_t tv_sec;
412 __suseconds_t tv_usec;
413 };
414typedef __suseconds_t suseconds_t;
415typedef long int __fd_mask;
416typedef struct
417 {
418 __fd_mask __fds_bits[1024 / (8 * sizeof (__fd_mask))];
419 } fd_set;
420typedef __fd_mask fd_mask;
421
422extern int select (int __nfds, fd_set *__restrict __readfds,
423 fd_set *__restrict __writefds,
424 fd_set *__restrict __exceptfds,
425 struct timeval *__restrict __timeout);
426extern int pselect (int __nfds, fd_set *__restrict __readfds,
427 fd_set *__restrict __writefds,
428 fd_set *__restrict __exceptfds,
429 const struct timespec *__restrict __timeout,
430 const __sigset_t *__restrict __sigmask);
431
432__extension__
433extern unsigned int gnu_dev_major (unsigned long long int __dev)
434 __attribute__ ((__nothrow__));
435__extension__
436extern unsigned int gnu_dev_minor (unsigned long long int __dev)
437 __attribute__ ((__nothrow__));
438__extension__
439extern unsigned long long int gnu_dev_makedev (unsigned int __major,
440 unsigned int __minor)
441 __attribute__ ((__nothrow__));
442typedef __blkcnt_t blkcnt_t;
443typedef __fsblkcnt_t fsblkcnt_t;
444typedef __fsfilcnt_t fsfilcnt_t;
445typedef unsigned long int pthread_t;
446typedef union
447{
448 char __size[56];
449 long int __align;
450} pthread_attr_t;
451typedef struct __pthread_internal_list
452{
453 struct __pthread_internal_list *__prev;
454 struct __pthread_internal_list *__next;
455} __pthread_list_t;
456typedef union
457{
458 struct __pthread_mutex_s
459 {
460 int __lock;
461 unsigned int __count;
462 int __owner;
463 unsigned int __nusers;
464 int __kind;
465 int __spins;
466 __pthread_list_t __list;
467 } __data;
468 char __size[40];
469 long int __align;
470} pthread_mutex_t;
471typedef union
472{
473 char __size[4];
474 int __align;
475} pthread_mutexattr_t;
476typedef union
477{
478 struct
479 {
480 int __lock;
481 unsigned int __futex;
482 __extension__ unsigned long long int __total_seq;
483 __extension__ unsigned long long int __wakeup_seq;
484 __extension__ unsigned long long int __woken_seq;
485 void *__mutex;
486 unsigned int __nwaiters;
487 unsigned int __broadcast_seq;
488 } __data;
489 char __size[48];
490 __extension__ long long int __align;
491} pthread_cond_t;
492typedef union
493{
494 char __size[4];
495 int __align;
496} pthread_condattr_t;
497typedef unsigned int pthread_key_t;
498typedef int pthread_once_t;
499typedef union
500{
501 struct
502 {
503 int __lock;
504 unsigned int __nr_readers;
505 unsigned int __readers_wakeup;
506 unsigned int __writer_wakeup;
507 unsigned int __nr_readers_queued;
508 unsigned int __nr_writers_queued;
509 int __writer;
510 int __shared;
511 unsigned long int __pad1;
512 unsigned long int __pad2;
513 unsigned int __flags;
514 } __data;
515 char __size[56];
516 long int __align;
517} pthread_rwlock_t;
518typedef union
519{
520 char __size[8];
521 long int __align;
522} pthread_rwlockattr_t;
523typedef volatile int pthread_spinlock_t;
524typedef union
525{
526 char __size[32];
527 long int __align;
528} pthread_barrier_t;
529typedef union
530{
531 char __size[4];
532 int __align;
533} pthread_barrierattr_t;
534
535extern long int random (void) __attribute__ ((__nothrow__));
536extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__));
537extern char *initstate (unsigned int __seed, char *__statebuf,
538 size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
539extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
540struct random_data
541 {
542 int32_t *fptr;
543 int32_t *rptr;
544 int32_t *state;
545 int rand_type;
546 int rand_deg;
547 int rand_sep;
548 int32_t *end_ptr;
549 };
550extern int random_r (struct random_data *__restrict __buf,
551 int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
552extern int srandom_r (unsigned int __seed, struct random_data *__buf)
553 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
554extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
555 size_t __statelen,
556 struct random_data *__restrict __buf)
557 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
558extern int setstate_r (char *__restrict __statebuf,
559 struct random_data *__restrict __buf)
560 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
561
562extern int rand (void) __attribute__ ((__nothrow__));
563extern void srand (unsigned int __seed) __attribute__ ((__nothrow__));
564
565extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__));
566extern double drand48 (void) __attribute__ ((__nothrow__));
567extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
568extern long int lrand48 (void) __attribute__ ((__nothrow__));
569extern long int nrand48 (unsigned short int __xsubi[3])
570 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
571extern long int mrand48 (void) __attribute__ ((__nothrow__));
572extern long int jrand48 (unsigned short int __xsubi[3])
573 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
574extern void srand48 (long int __seedval) __attribute__ ((__nothrow__));
575extern unsigned short int *seed48 (unsigned short int __seed16v[3])
576 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
577extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
578struct drand48_data
579 {
580 unsigned short int __x[3];
581 unsigned short int __old_x[3];
582 unsigned short int __c;
583 unsigned short int __init;
584 unsigned long long int __a;
585 };
586extern int drand48_r (struct drand48_data *__restrict __buffer,
587 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
588extern int erand48_r (unsigned short int __xsubi[3],
589 struct drand48_data *__restrict __buffer,
590 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
591extern int lrand48_r (struct drand48_data *__restrict __buffer,
592 long int *__restrict __result)
593 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
594extern int nrand48_r (unsigned short int __xsubi[3],
595 struct drand48_data *__restrict __buffer,
596 long int *__restrict __result)
597 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
598extern int mrand48_r (struct drand48_data *__restrict __buffer,
599 long int *__restrict __result)
600 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
601extern int jrand48_r (unsigned short int __xsubi[3],
602 struct drand48_data *__restrict __buffer,
603 long int *__restrict __result)
604 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
605extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
606 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
607extern int seed48_r (unsigned short int __seed16v[3],
608 struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
609extern int lcong48_r (unsigned short int __param[7],
610 struct drand48_data *__buffer)
611 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
612
613extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
614extern void *calloc (size_t __nmemb, size_t __size)
615 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
616
617
618extern void *realloc (void *__ptr, size_t __size)
619 __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
620extern void free (void *__ptr) __attribute__ ((__nothrow__));
621
622extern void cfree (void *__ptr) __attribute__ ((__nothrow__));
623
624extern void *alloca (size_t __size) __attribute__ ((__nothrow__));
625
626extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
627extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
628 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
629
630extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
631extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
632
633extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
634 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
635
636extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
637
638
639extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
640
641extern char *__secure_getenv (__const char *__name)
642 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
643extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
644extern int setenv (__const char *__name, __const char *__value, int __replace)
645 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
646extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__));
647extern int clearenv (void) __attribute__ ((__nothrow__));
648extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
649extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ;
650extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
651
652extern int system (__const char *__command) ;
653
654extern char *realpath (__const char *__restrict __name,
655 char *__restrict __resolved) __attribute__ ((__nothrow__)) ;
656typedef int (*__compar_fn_t) (__const void *, __const void *);
657
658extern void *bsearch (__const void *__key, __const void *__base,
659 size_t __nmemb, size_t __size, __compar_fn_t __compar)
660 __attribute__ ((__nonnull__ (1, 2, 5))) ;
661extern void qsort (void *__base, size_t __nmemb, size_t __size,
662 __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
663extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
664extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
665
666
667extern div_t div (int __numer, int __denom)
668 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
669extern ldiv_t ldiv (long int __numer, long int __denom)
670 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
671
672extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
673 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
674extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
675 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
676extern char *gcvt (double __value, int __ndigit, char *__buf)
677 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
678extern char *qecvt (long double __value, int __ndigit,
679 int *__restrict __decpt, int *__restrict __sign)
680 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
681extern char *qfcvt (long double __value, int __ndigit,
682 int *__restrict __decpt, int *__restrict __sign)
683 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
684extern char *qgcvt (long double __value, int __ndigit, char *__buf)
685 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
686extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
687 int *__restrict __sign, char *__restrict __buf,
688 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
689extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
690 int *__restrict __sign, char *__restrict __buf,
691 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
692extern int qecvt_r (long double __value, int __ndigit,
693 int *__restrict __decpt, int *__restrict __sign,
694 char *__restrict __buf, size_t __len)
695 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
696extern int qfcvt_r (long double __value, int __ndigit,
697 int *__restrict __decpt, int *__restrict __sign,
698 char *__restrict __buf, size_t __len)
699 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
700
701extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ;
702extern int mbtowc (wchar_t *__restrict __pwc,
703 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ;
704extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ;
705extern size_t mbstowcs (wchar_t *__restrict __pwcs,
706 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__));
707extern size_t wcstombs (char *__restrict __s,
708 __const wchar_t *__restrict __pwcs, size_t __n)
709 __attribute__ ((__nothrow__));
710
711extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
712extern int posix_openpt (int __oflag) ;
713extern int getloadavg (double __loadavg[], int __nelem)
714 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
715
716
717extern double _Complex cacos (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __cacos (double _Complex __z) __attribute__ ((__nothrow__));
718extern double _Complex casin (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __casin (double _Complex __z) __attribute__ ((__nothrow__));
719extern double _Complex catan (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __catan (double _Complex __z) __attribute__ ((__nothrow__));
720extern double _Complex ccos (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __ccos (double _Complex __z) __attribute__ ((__nothrow__));
721extern double _Complex csin (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __csin (double _Complex __z) __attribute__ ((__nothrow__));
722extern double _Complex ctan (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __ctan (double _Complex __z) __attribute__ ((__nothrow__));
723extern double _Complex cacosh (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __cacosh (double _Complex __z) __attribute__ ((__nothrow__));
724extern double _Complex casinh (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __casinh (double _Complex __z) __attribute__ ((__nothrow__));
725extern double _Complex catanh (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __catanh (double _Complex __z) __attribute__ ((__nothrow__));
726extern double _Complex ccosh (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __ccosh (double _Complex __z) __attribute__ ((__nothrow__));
727extern double _Complex csinh (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __csinh (double _Complex __z) __attribute__ ((__nothrow__));
728extern double _Complex ctanh (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __ctanh (double _Complex __z) __attribute__ ((__nothrow__));
729extern double _Complex cexp (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __cexp (double _Complex __z) __attribute__ ((__nothrow__));
730extern double _Complex clog (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __clog (double _Complex __z) __attribute__ ((__nothrow__));
731extern double _Complex cpow (double _Complex __x, double _Complex __y) __attribute__ ((__nothrow__)); extern double _Complex __cpow (double _Complex __x, double _Complex __y) __attribute__ ((__nothrow__));
732extern double _Complex csqrt (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __csqrt (double _Complex __z) __attribute__ ((__nothrow__));
733extern double cabs (double _Complex __z) __attribute__ ((__nothrow__)); extern double __cabs (double _Complex __z) __attribute__ ((__nothrow__));
734extern double carg (double _Complex __z) __attribute__ ((__nothrow__)); extern double __carg (double _Complex __z) __attribute__ ((__nothrow__));
735extern double _Complex conj (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __conj (double _Complex __z) __attribute__ ((__nothrow__));
736extern double _Complex cproj (double _Complex __z) __attribute__ ((__nothrow__)); extern double _Complex __cproj (double _Complex __z) __attribute__ ((__nothrow__));
737extern double cimag (double _Complex __z) __attribute__ ((__nothrow__)); extern double __cimag (double _Complex __z) __attribute__ ((__nothrow__));
738extern double creal (double _Complex __z) __attribute__ ((__nothrow__)); extern double __creal (double _Complex __z) __attribute__ ((__nothrow__));
739extern float _Complex cacosf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __cacosf (float _Complex __z) __attribute__ ((__nothrow__));
740extern float _Complex casinf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __casinf (float _Complex __z) __attribute__ ((__nothrow__));
741extern float _Complex catanf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __catanf (float _Complex __z) __attribute__ ((__nothrow__));
742extern float _Complex ccosf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __ccosf (float _Complex __z) __attribute__ ((__nothrow__));
743extern float _Complex csinf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __csinf (float _Complex __z) __attribute__ ((__nothrow__));
744extern float _Complex ctanf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __ctanf (float _Complex __z) __attribute__ ((__nothrow__));
745extern float _Complex cacoshf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __cacoshf (float _Complex __z) __attribute__ ((__nothrow__));
746extern float _Complex casinhf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __casinhf (float _Complex __z) __attribute__ ((__nothrow__));
747extern float _Complex catanhf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __catanhf (float _Complex __z) __attribute__ ((__nothrow__));
748extern float _Complex ccoshf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __ccoshf (float _Complex __z) __attribute__ ((__nothrow__));
749extern float _Complex csinhf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __csinhf (float _Complex __z) __attribute__ ((__nothrow__));
750extern float _Complex ctanhf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __ctanhf (float _Complex __z) __attribute__ ((__nothrow__));
751extern float _Complex cexpf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __cexpf (float _Complex __z) __attribute__ ((__nothrow__));
752extern float _Complex clogf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __clogf (float _Complex __z) __attribute__ ((__nothrow__));
753extern float _Complex cpowf (float _Complex __x, float _Complex __y) __attribute__ ((__nothrow__)); extern float _Complex __cpowf (float _Complex __x, float _Complex __y) __attribute__ ((__nothrow__));
754extern float _Complex csqrtf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __csqrtf (float _Complex __z) __attribute__ ((__nothrow__));
755extern float cabsf (float _Complex __z) __attribute__ ((__nothrow__)); extern float __cabsf (float _Complex __z) __attribute__ ((__nothrow__));
756extern float cargf (float _Complex __z) __attribute__ ((__nothrow__)); extern float __cargf (float _Complex __z) __attribute__ ((__nothrow__));
757extern float _Complex conjf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __conjf (float _Complex __z) __attribute__ ((__nothrow__));
758extern float _Complex cprojf (float _Complex __z) __attribute__ ((__nothrow__)); extern float _Complex __cprojf (float _Complex __z) __attribute__ ((__nothrow__));
759extern float cimagf (float _Complex __z) __attribute__ ((__nothrow__)); extern float __cimagf (float _Complex __z) __attribute__ ((__nothrow__));
760extern float crealf (float _Complex __z) __attribute__ ((__nothrow__)); extern float __crealf (float _Complex __z) __attribute__ ((__nothrow__));
761extern long double _Complex cacosl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __cacosl (long double _Complex __z) __attribute__ ((__nothrow__));
762extern long double _Complex casinl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __casinl (long double _Complex __z) __attribute__ ((__nothrow__));
763extern long double _Complex catanl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __catanl (long double _Complex __z) __attribute__ ((__nothrow__));
764extern long double _Complex ccosl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __ccosl (long double _Complex __z) __attribute__ ((__nothrow__));
765extern long double _Complex csinl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __csinl (long double _Complex __z) __attribute__ ((__nothrow__));
766extern long double _Complex ctanl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __ctanl (long double _Complex __z) __attribute__ ((__nothrow__));
767extern long double _Complex cacoshl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __cacoshl (long double _Complex __z) __attribute__ ((__nothrow__));
768extern long double _Complex casinhl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __casinhl (long double _Complex __z) __attribute__ ((__nothrow__));
769extern long double _Complex catanhl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __catanhl (long double _Complex __z) __attribute__ ((__nothrow__));
770extern long double _Complex ccoshl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __ccoshl (long double _Complex __z) __attribute__ ((__nothrow__));
771extern long double _Complex csinhl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __csinhl (long double _Complex __z) __attribute__ ((__nothrow__));
772extern long double _Complex ctanhl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __ctanhl (long double _Complex __z) __attribute__ ((__nothrow__));
773extern long double _Complex cexpl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __cexpl (long double _Complex __z) __attribute__ ((__nothrow__));
774extern long double _Complex clogl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __clogl (long double _Complex __z) __attribute__ ((__nothrow__));
775extern long double _Complex cpowl (long double _Complex __x, long double _Complex __y) __attribute__ ((__nothrow__)); extern long double _Complex __cpowl (long double _Complex __x, long double _Complex __y) __attribute__ ((__nothrow__));
776extern long double _Complex csqrtl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __csqrtl (long double _Complex __z) __attribute__ ((__nothrow__));
777extern long double cabsl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double __cabsl (long double _Complex __z) __attribute__ ((__nothrow__));
778extern long double cargl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double __cargl (long double _Complex __z) __attribute__ ((__nothrow__));
779extern long double _Complex conjl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __conjl (long double _Complex __z) __attribute__ ((__nothrow__));
780extern long double _Complex cprojl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double _Complex __cprojl (long double _Complex __z) __attribute__ ((__nothrow__));
781extern long double cimagl (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double __cimagl (long double _Complex __z) __attribute__ ((__nothrow__));
782extern long double creall (long double _Complex __z) __attribute__ ((__nothrow__)); extern long double __creall (long double _Complex __z) __attribute__ ((__nothrow__));
783
784
785
786extern double acos (double __x) __attribute__ ((__nothrow__)); extern double __acos (double __x) __attribute__ ((__nothrow__));
787extern double asin (double __x) __attribute__ ((__nothrow__)); extern double __asin (double __x) __attribute__ ((__nothrow__));
788extern double atan (double __x) __attribute__ ((__nothrow__)); extern double __atan (double __x) __attribute__ ((__nothrow__));
789extern double atan2 (double __y, double __x) __attribute__ ((__nothrow__)); extern double __atan2 (double __y, double __x) __attribute__ ((__nothrow__));
790extern double cos (double __x) __attribute__ ((__nothrow__)); extern double __cos (double __x) __attribute__ ((__nothrow__));
791extern double sin (double __x) __attribute__ ((__nothrow__)); extern double __sin (double __x) __attribute__ ((__nothrow__));
792extern double tan (double __x) __attribute__ ((__nothrow__)); extern double __tan (double __x) __attribute__ ((__nothrow__));
793extern double cosh (double __x) __attribute__ ((__nothrow__)); extern double __cosh (double __x) __attribute__ ((__nothrow__));
794extern double sinh (double __x) __attribute__ ((__nothrow__)); extern double __sinh (double __x) __attribute__ ((__nothrow__));
795extern double tanh (double __x) __attribute__ ((__nothrow__)); extern double __tanh (double __x) __attribute__ ((__nothrow__));
796
797
798extern double acosh (double __x) __attribute__ ((__nothrow__)); extern double __acosh (double __x) __attribute__ ((__nothrow__));
799extern double asinh (double __x) __attribute__ ((__nothrow__)); extern double __asinh (double __x) __attribute__ ((__nothrow__));
800extern double atanh (double __x) __attribute__ ((__nothrow__)); extern double __atanh (double __x) __attribute__ ((__nothrow__));
801
802
803extern double exp (double __x) __attribute__ ((__nothrow__)); extern double __exp (double __x) __attribute__ ((__nothrow__));
804extern double frexp (double __x, int *__exponent) __attribute__ ((__nothrow__)); extern double __frexp (double __x, int *__exponent) __attribute__ ((__nothrow__));
805extern double ldexp (double __x, int __exponent) __attribute__ ((__nothrow__)); extern double __ldexp (double __x, int __exponent) __attribute__ ((__nothrow__));
806extern double log (double __x) __attribute__ ((__nothrow__)); extern double __log (double __x) __attribute__ ((__nothrow__));
807extern double log10 (double __x) __attribute__ ((__nothrow__)); extern double __log10 (double __x) __attribute__ ((__nothrow__));
808extern double modf (double __x, double *__iptr) __attribute__ ((__nothrow__)); extern double __modf (double __x, double *__iptr) __attribute__ ((__nothrow__));
809
810
811extern double expm1 (double __x) __attribute__ ((__nothrow__)); extern double __expm1 (double __x) __attribute__ ((__nothrow__));
812extern double log1p (double __x) __attribute__ ((__nothrow__)); extern double __log1p (double __x) __attribute__ ((__nothrow__));
813extern double logb (double __x) __attribute__ ((__nothrow__)); extern double __logb (double __x) __attribute__ ((__nothrow__));
814
815
816extern double pow (double __x, double __y) __attribute__ ((__nothrow__)); extern double __pow (double __x, double __y) __attribute__ ((__nothrow__));
817extern double sqrt (double __x) __attribute__ ((__nothrow__)); extern double __sqrt (double __x) __attribute__ ((__nothrow__));
818
819
820extern double hypot (double __x, double __y) __attribute__ ((__nothrow__)); extern double __hypot (double __x, double __y) __attribute__ ((__nothrow__));
821
822
823extern double cbrt (double __x) __attribute__ ((__nothrow__)); extern double __cbrt (double __x) __attribute__ ((__nothrow__));
824
825
826extern double ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
827extern double fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
828extern double floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
829extern double fmod (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmod (double __x, double __y) __attribute__ ((__nothrow__));
830extern int __isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
831extern int __finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
832
833extern int isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
834extern int finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
835extern double drem (double __x, double __y) __attribute__ ((__nothrow__)); extern double __drem (double __x, double __y) __attribute__ ((__nothrow__));
836extern double significand (double __x) __attribute__ ((__nothrow__)); extern double __significand (double __x) __attribute__ ((__nothrow__));
837
838extern double copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
839
840extern int __isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
841extern int isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
842extern double j0 (double) __attribute__ ((__nothrow__)); extern double __j0 (double) __attribute__ ((__nothrow__));
843extern double j1 (double) __attribute__ ((__nothrow__)); extern double __j1 (double) __attribute__ ((__nothrow__));
844extern double jn (int, double) __attribute__ ((__nothrow__)); extern double __jn (int, double) __attribute__ ((__nothrow__));
845extern double y0 (double) __attribute__ ((__nothrow__)); extern double __y0 (double) __attribute__ ((__nothrow__));
846extern double y1 (double) __attribute__ ((__nothrow__)); extern double __y1 (double) __attribute__ ((__nothrow__));
847extern double yn (int, double) __attribute__ ((__nothrow__)); extern double __yn (int, double) __attribute__ ((__nothrow__));
848
849extern double erf (double) __attribute__ ((__nothrow__)); extern double __erf (double) __attribute__ ((__nothrow__));
850extern double erfc (double) __attribute__ ((__nothrow__)); extern double __erfc (double) __attribute__ ((__nothrow__));
851extern double lgamma (double) __attribute__ ((__nothrow__)); extern double __lgamma (double) __attribute__ ((__nothrow__));
852
853extern double gamma (double) __attribute__ ((__nothrow__)); extern double __gamma (double) __attribute__ ((__nothrow__));
854extern double lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__)); extern double __lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__));
855
856extern double rint (double __x) __attribute__ ((__nothrow__)); extern double __rint (double __x) __attribute__ ((__nothrow__));
857extern double nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
858extern double remainder (double __x, double __y) __attribute__ ((__nothrow__)); extern double __remainder (double __x, double __y) __attribute__ ((__nothrow__));
859extern double scalbn (double __x, int __n) __attribute__ ((__nothrow__)); extern double __scalbn (double __x, int __n) __attribute__ ((__nothrow__));
860extern int ilogb (double __x) __attribute__ ((__nothrow__)); extern int __ilogb (double __x) __attribute__ ((__nothrow__));
861
862extern double scalb (double __x, double __n) __attribute__ ((__nothrow__)); extern double __scalb (double __x, double __n) __attribute__ ((__nothrow__));
863
864extern float acosf (float __x) __attribute__ ((__nothrow__)); extern float __acosf (float __x) __attribute__ ((__nothrow__));
865extern float asinf (float __x) __attribute__ ((__nothrow__)); extern float __asinf (float __x) __attribute__ ((__nothrow__));
866extern float atanf (float __x) __attribute__ ((__nothrow__)); extern float __atanf (float __x) __attribute__ ((__nothrow__));
867extern float atan2f (float __y, float __x) __attribute__ ((__nothrow__)); extern float __atan2f (float __y, float __x) __attribute__ ((__nothrow__));
868extern float cosf (float __x) __attribute__ ((__nothrow__)); extern float __cosf (float __x) __attribute__ ((__nothrow__));
869extern float sinf (float __x) __attribute__ ((__nothrow__)); extern float __sinf (float __x) __attribute__ ((__nothrow__));
870extern float tanf (float __x) __attribute__ ((__nothrow__)); extern float __tanf (float __x) __attribute__ ((__nothrow__));
871extern float coshf (float __x) __attribute__ ((__nothrow__)); extern float __coshf (float __x) __attribute__ ((__nothrow__));
872extern float sinhf (float __x) __attribute__ ((__nothrow__)); extern float __sinhf (float __x) __attribute__ ((__nothrow__));
873extern float tanhf (float __x) __attribute__ ((__nothrow__)); extern float __tanhf (float __x) __attribute__ ((__nothrow__));
874
875
876extern float acoshf (float __x) __attribute__ ((__nothrow__)); extern float __acoshf (float __x) __attribute__ ((__nothrow__));
877extern float asinhf (float __x) __attribute__ ((__nothrow__)); extern float __asinhf (float __x) __attribute__ ((__nothrow__));
878extern float atanhf (float __x) __attribute__ ((__nothrow__)); extern float __atanhf (float __x) __attribute__ ((__nothrow__));
879
880
881extern float expf (float __x) __attribute__ ((__nothrow__)); extern float __expf (float __x) __attribute__ ((__nothrow__));
882extern float frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__)); extern float __frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__));
883extern float ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__)); extern float __ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__));
884extern float logf (float __x) __attribute__ ((__nothrow__)); extern float __logf (float __x) __attribute__ ((__nothrow__));
885extern float log10f (float __x) __attribute__ ((__nothrow__)); extern float __log10f (float __x) __attribute__ ((__nothrow__));
886extern float modff (float __x, float *__iptr) __attribute__ ((__nothrow__)); extern float __modff (float __x, float *__iptr) __attribute__ ((__nothrow__));
887
888
889extern float expm1f (float __x) __attribute__ ((__nothrow__)); extern float __expm1f (float __x) __attribute__ ((__nothrow__));
890extern float log1pf (float __x) __attribute__ ((__nothrow__)); extern float __log1pf (float __x) __attribute__ ((__nothrow__));
891extern float logbf (float __x) __attribute__ ((__nothrow__)); extern float __logbf (float __x) __attribute__ ((__nothrow__));
892
893
894extern float powf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __powf (float __x, float __y) __attribute__ ((__nothrow__));
895extern float sqrtf (float __x) __attribute__ ((__nothrow__)); extern float __sqrtf (float __x) __attribute__ ((__nothrow__));
896
897
898extern float hypotf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __hypotf (float __x, float __y) __attribute__ ((__nothrow__));
899
900
901extern float cbrtf (float __x) __attribute__ ((__nothrow__)); extern float __cbrtf (float __x) __attribute__ ((__nothrow__));
902
903
904extern float ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
905extern float fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
906extern float floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
907extern float fmodf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fmodf (float __x, float __y) __attribute__ ((__nothrow__));
908extern int __isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
909extern int __finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
910
911extern int isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
912extern int finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
913extern float dremf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __dremf (float __x, float __y) __attribute__ ((__nothrow__));
914extern float significandf (float __x) __attribute__ ((__nothrow__)); extern float __significandf (float __x) __attribute__ ((__nothrow__));
915
916extern float copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
917
918extern int __isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
919extern int isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
920extern float j0f (float) __attribute__ ((__nothrow__)); extern float __j0f (float) __attribute__ ((__nothrow__));
921extern float j1f (float) __attribute__ ((__nothrow__)); extern float __j1f (float) __attribute__ ((__nothrow__));
922extern float jnf (int, float) __attribute__ ((__nothrow__)); extern float __jnf (int, float) __attribute__ ((__nothrow__));
923extern float y0f (float) __attribute__ ((__nothrow__)); extern float __y0f (float) __attribute__ ((__nothrow__));
924extern float y1f (float) __attribute__ ((__nothrow__)); extern float __y1f (float) __attribute__ ((__nothrow__));
925extern float ynf (int, float) __attribute__ ((__nothrow__)); extern float __ynf (int, float) __attribute__ ((__nothrow__));
926
927extern float erff (float) __attribute__ ((__nothrow__)); extern float __erff (float) __attribute__ ((__nothrow__));
928extern float erfcf (float) __attribute__ ((__nothrow__)); extern float __erfcf (float) __attribute__ ((__nothrow__));
929extern float lgammaf (float) __attribute__ ((__nothrow__)); extern float __lgammaf (float) __attribute__ ((__nothrow__));
930
931extern float gammaf (float) __attribute__ ((__nothrow__)); extern float __gammaf (float) __attribute__ ((__nothrow__));
932extern float lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__)); extern float __lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__));
933
934extern float rintf (float __x) __attribute__ ((__nothrow__)); extern float __rintf (float __x) __attribute__ ((__nothrow__));
935extern float nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
936extern float remainderf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __remainderf (float __x, float __y) __attribute__ ((__nothrow__));
937extern float scalbnf (float __x, int __n) __attribute__ ((__nothrow__)); extern float __scalbnf (float __x, int __n) __attribute__ ((__nothrow__));
938extern int ilogbf (float __x) __attribute__ ((__nothrow__)); extern int __ilogbf (float __x) __attribute__ ((__nothrow__));
939
940extern float scalbf (float __x, float __n) __attribute__ ((__nothrow__)); extern float __scalbf (float __x, float __n) __attribute__ ((__nothrow__));
941
942extern long double acosl (long double __x) __attribute__ ((__nothrow__)); extern long double __acosl (long double __x) __attribute__ ((__nothrow__));
943extern long double asinl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinl (long double __x) __attribute__ ((__nothrow__));
944extern long double atanl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanl (long double __x) __attribute__ ((__nothrow__));
945extern long double atan2l (long double __y, long double __x) __attribute__ ((__nothrow__)); extern long double __atan2l (long double __y, long double __x) __attribute__ ((__nothrow__));
946extern long double cosl (long double __x) __attribute__ ((__nothrow__)); extern long double __cosl (long double __x) __attribute__ ((__nothrow__));
947extern long double sinl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinl (long double __x) __attribute__ ((__nothrow__));
948extern long double tanl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanl (long double __x) __attribute__ ((__nothrow__));
949extern long double coshl (long double __x) __attribute__ ((__nothrow__)); extern long double __coshl (long double __x) __attribute__ ((__nothrow__));
950extern long double sinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinhl (long double __x) __attribute__ ((__nothrow__));
951extern long double tanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanhl (long double __x) __attribute__ ((__nothrow__));
952
953
954extern long double acoshl (long double __x) __attribute__ ((__nothrow__)); extern long double __acoshl (long double __x) __attribute__ ((__nothrow__));
955extern long double asinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinhl (long double __x) __attribute__ ((__nothrow__));
956extern long double atanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanhl (long double __x) __attribute__ ((__nothrow__));
957
958
959extern long double expl (long double __x) __attribute__ ((__nothrow__)); extern long double __expl (long double __x) __attribute__ ((__nothrow__));
960extern long double frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__)); extern long double __frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__));
961extern long double ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__)); extern long double __ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__));
962extern long double logl (long double __x) __attribute__ ((__nothrow__)); extern long double __logl (long double __x) __attribute__ ((__nothrow__));
963extern long double log10l (long double __x) __attribute__ ((__nothrow__)); extern long double __log10l (long double __x) __attribute__ ((__nothrow__));
964extern long double modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__)); extern long double __modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__));
965
966
967extern long double expm1l (long double __x) __attribute__ ((__nothrow__)); extern long double __expm1l (long double __x) __attribute__ ((__nothrow__));
968extern long double log1pl (long double __x) __attribute__ ((__nothrow__)); extern long double __log1pl (long double __x) __attribute__ ((__nothrow__));
969extern long double logbl (long double __x) __attribute__ ((__nothrow__)); extern long double __logbl (long double __x) __attribute__ ((__nothrow__));
970
971
972extern long double powl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __powl (long double __x, long double __y) __attribute__ ((__nothrow__));
973extern long double sqrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __sqrtl (long double __x) __attribute__ ((__nothrow__));
974
975
976extern long double hypotl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __hypotl (long double __x, long double __y) __attribute__ ((__nothrow__));
977
978
979extern long double cbrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __cbrtl (long double __x) __attribute__ ((__nothrow__));
980
981
982extern long double ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
983extern long double fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
984extern long double floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
985extern long double fmodl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fmodl (long double __x, long double __y) __attribute__ ((__nothrow__));
986extern int __isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
987extern int __finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
988
989extern int isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
990extern int finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
991extern long double dreml (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __dreml (long double __x, long double __y) __attribute__ ((__nothrow__));
992extern long double significandl (long double __x) __attribute__ ((__nothrow__)); extern long double __significandl (long double __x) __attribute__ ((__nothrow__));
993
994extern 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__));
995
996extern int __isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
997extern int isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
998extern long double j0l (long double) __attribute__ ((__nothrow__)); extern long double __j0l (long double) __attribute__ ((__nothrow__));
999extern long double j1l (long double) __attribute__ ((__nothrow__)); extern long double __j1l (long double) __attribute__ ((__nothrow__));
1000extern long double jnl (int, long double) __attribute__ ((__nothrow__)); extern long double __jnl (int, long double) __attribute__ ((__nothrow__));
1001extern long double y0l (long double) __attribute__ ((__nothrow__)); extern long double __y0l (long double) __attribute__ ((__nothrow__));
1002extern long double y1l (long double) __attribute__ ((__nothrow__)); extern long double __y1l (long double) __attribute__ ((__nothrow__));
1003extern long double ynl (int, long double) __attribute__ ((__nothrow__)); extern long double __ynl (int, long double) __attribute__ ((__nothrow__));
1004
1005extern long double erfl (long double) __attribute__ ((__nothrow__)); extern long double __erfl (long double) __attribute__ ((__nothrow__));
1006extern long double erfcl (long double) __attribute__ ((__nothrow__)); extern long double __erfcl (long double) __attribute__ ((__nothrow__));
1007extern long double lgammal (long double) __attribute__ ((__nothrow__)); extern long double __lgammal (long double) __attribute__ ((__nothrow__));
1008
1009extern long double gammal (long double) __attribute__ ((__nothrow__)); extern long double __gammal (long double) __attribute__ ((__nothrow__));
1010extern long double lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__)); extern long double __lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__));
1011
1012extern long double rintl (long double __x) __attribute__ ((__nothrow__)); extern long double __rintl (long double __x) __attribute__ ((__nothrow__));
1013extern 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__));
1014extern long double remainderl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __remainderl (long double __x, long double __y) __attribute__ ((__nothrow__));
1015extern long double scalbnl (long double __x, int __n) __attribute__ ((__nothrow__)); extern long double __scalbnl (long double __x, int __n) __attribute__ ((__nothrow__));
1016extern int ilogbl (long double __x) __attribute__ ((__nothrow__)); extern int __ilogbl (long double __x) __attribute__ ((__nothrow__));
1017
1018extern long double scalbl (long double __x, long double __n) __attribute__ ((__nothrow__)); extern long double __scalbl (long double __x, long double __n) __attribute__ ((__nothrow__));
1019extern int signgam;
1020typedef enum
1021{
1022 _IEEE_ = -1,
1023 _SVID_,
1024 _XOPEN_,
1025 _POSIX_,
1026 _ISOC_
1027} _LIB_VERSION_TYPE;
1028extern _LIB_VERSION_TYPE _LIB_VERSION;
1029struct exception
1030 {
1031 int type;
1032 char *name;
1033 double arg1;
1034 double arg2;
1035 double retval;
1036 };
1037extern int matherr (struct exception *__exc);
1038
1039const int MAXX = 1000, MAXY = 1000;
1040void draw(double re, double im, int its, int mits) {
1041 struct pxl {
1042 char a,b,c;
1043 } p;
1044 p.a = 255 * (1.0 - powf((float)its/(float)mits,1/3.0));
1045 p.b = 255 * (1.0 - powf((float)((2*its)%(mits/5))/(float)(mits/5),1/3.0));
1046 p.c = 255 * (1.0 - powf((float)((3*its)%(mits/3))/(float)(mits/3),1/3.0));
1047 putchar(p.a);
1048 putchar(p.b);
1049 putchar(p.c);
1050};
1051void mandel(double _Complex Zin, double _Complex C, int mits) {
1052 int its = 0;
1053 int drwn = 0;
1054 int px, py;
1055 double _Complex Z = 0 + 0;
1056 for (py = 0; py != MAXY; py++) {
1057 for (px = 0; px != MAXX; px++) {
1058 Z = 0;
1059 C = 4.0 * ((double)px / (double)MAXX) - 2.0 + (__extension__ 1.0iF) * (4.0 * ((double)py / (double)MAXY) - 2.0);
1060 its = 0;
1061 drwn = 0;
1062 while (its < mits) {
1063 Z = Z*Z + C;
1064 its++;
1065 if (cabs(Z) > 2) {
1066 draw(px, py, its, mits);
1067 drwn = 1;
1068 break;
1069 };
1070 };
1071 if (!drwn) {
1072 char p[]={0,0,0};
1073 putchar(p[0]);
1074 putchar(p[1]);
1075 putchar(p[2]);
1076 };
1077 }
1078 };
1079};
1080int main(void) {
1081 printf("P6\n%i %i\n255\n",MAXX, MAXY);
1082 mandel(0,0,400);
1083 return 0;
1084};