-
Notifications
You must be signed in to change notification settings - Fork 5
/
rw.h
31 lines (24 loc) · 1 KB
/
rw.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef rw_h
# define rw_h 1
# include <ctype.h>
# ifdef _MSC_VER
# include <io.h>
# else
# include <unistd.h>
# endif
# include "zero.h"
extern UL chkpnt_iterations;
extern int device_number; //msf
ATTRIBUTE_CONST const char *archive_name (void);
extern FILE *open_archive (void);
extern void print_time (int iterations = 0, int current = 0, int total = 0);
# define FACTOR char
# define EXPONENT UL
extern int check_point (UL q, UL n, UL j, double err, double *x);
extern void printbits(double *x, UL q, UL n, UL totalbits, UL b, UL c, double hi, double lo,
const char *version_info, FILE *outfp, FILE *dupfp, int iterations, int current_iteration);
extern void archivebits(double *x, UL q, UL n, UL totalbits, UL b, UL c, double hi, double lo,
const char *version_info, FILE *outfp, FILE *dupfp);
extern int input (int argc, char **argv, EXPONENT *q, UL *n, UL *j, double *err, double **x,
EXPONENT last, char *M, FILE **infp, FILE **outfp, FILE **dupfp, const char *version_info);
#endif /* ifndef rw_h */