Go to the source code of this file.
◆ Akind
Definition at line 30 of file arithchk.c.
Class Members |
int |
kind |
|
char * |
name |
|
◆ Akind
◆ ccheck()
Definition at line 95 of file arithchk.c.
105 Cray1 = printf(
"") < 0 ? 0 : 4617762;
106 if(printf(
"%ld", Cray1) >= 0)
107 Cray1 = 1000000 * Cray1 + 693716;
108 if(printf(
"%ld", Cray1) >= 0)
109 Cray1 = 1000000 * Cray1 + 115456;
References CRAY.
Referenced by main().
◆ fzcheck()
Definition at line 116 of file arithchk.c.
123 for(i = 155;; b *= b, i >>= 1)
Referenced by main().
◆ icheck()
Definition at line 67 of file arithchk.c.
80 if(
sizeof(x) > 2 * (
sizeof(
double) +
sizeof(
int)))
84 if(u.L[0] == 1117925532 && u.L[1] == -448790528)
86 if(u.L[1] == 1117925532 && u.L[0] == -448790528)
88 if(u.L[0] == -2065213935 && u.L[1] == 10752)
90 if(u.L[0] == 1267827943 && u.L[1] == 704643072)
References dalign, IBM, IEEE_8087, IEEE_MC68k, and VAX.
Referenced by main().
◆ Lcheck()
Definition at line 39 of file arithchk.c.
52 if(
sizeof(x) > 2 * (
sizeof(
double) +
sizeof(
long)))
56 if(u.L[0] == 1117925532 && u.L[1] == -448790528)
58 if(u.L[1] == 1117925532 && u.L[0] == -448790528)
60 if(u.L[0] == -2065213935 && u.L[1] == 10752)
62 if(u.L[0] == 1267827943 && u.L[1] == 704643072)
References dalign, IBM, IEEE_8087, IEEE_MC68k, and VAX.
Referenced by main().
◆ main()
Definition at line 136 of file arithchk.c.
143 f =
fopen(
"arith.h",
"w");
146 printf(
"Cannot open arith.h\n");
153 if(
sizeof(
double) == 2 *
sizeof(
long))
155 else if(
sizeof(
double) == 2 *
sizeof(
int))
160 else if(
sizeof(
double) ==
sizeof(
long))
164 fprintf(f,
"#define %s\n#define Arith_Kind_ASL %d\n", a->
name, a->
kind);
166 fprintf(f,
"#define Long int\n#define Intcast (int)(long)\n");
168 fprintf(f,
"#define Double_Align\n");
169 if(
sizeof(
char*) == 8)
170 fprintf(f,
"#define X64_bit_pointers\n");
172 if(
sizeof(
long long) < 8)
174 fprintf(f,
"#define NO_LONG_LONG\n");
176 fprintf(f,
"#define Sudden_Underflow\n");
182 fprintf(f,
"/* Unknown arithmetic */\n");
FILE * fopen(const char *__restrict, const char *__restrict)
int fprintf(FILE *__restrict, const char *__restrict,...)
References ccheck(), dalign, fclose(), fopen(), fprintf(), fzcheck(), icheck(), Akind::kind, Lcheck(), and Akind::name.
◆ CRAY
◆ dalign
◆ IBM
◆ IEEE_8087
Akind IEEE_8087 = {"IEEE_8087", 1} |
|
static |
◆ IEEE_MC68k
Akind IEEE_MC68k = {"IEEE_MC68k", 2} |
|
static |
◆ VAX