#include <stdio.h>#include <math.h>#include <signal.h>#include "arith.internal.h"
Go to the source code of this file.
Defines | |
| #define | uint32 unsigned long |
| #define | float64 double |
| #define | float32 float |
| #define | sqrt64 sqrt |
| #define | log64 log |
| #define | exp64 exp |
| #define | pow64 pow |
| #define | V(sign, expo, c0, c1) ((uint32)(sign)<<31) | ((uint32)(expo)<<20) | (c0), (c1), |
| #define | V(sign, expo, coeff) ((uint32)(sign)<<31) | ((uint32)(expo)<<23) | (coeff), |
| #define | U "_sunOS" |
Functions | |
| void | fperr (int sig) |
| int | matherr (struct exception *X) |
| static float64 | fadd64 (float64 x, float64 y) |
| static float64 | fsub64 (float64 x, float64 y) |
| static float64 | fmul64 (float64 x, float64 y) |
| static float64 | fdiv64 (float64 x, float64 y) |
| static float64 | fcmp64 (float64 x, float64 y) |
| static float32 | fadd32 (float32 x, float32 y) |
| static float32 | fsub32 (float32 x, float32 y) |
| static float32 | fmul32 (float32 x, float32 y) |
| static float32 | fdiv32 (float32 x, float32 y) |
| static float32 | fcmp32 (float32 x, float32 y) |
| static float64 | f32to64 (float32 x) |
| static float32 | f64to32 (float64 x) |
| static | prieee64 (FILE *fp, float64 val) |
| static | prieee32 (FILE *fp, float32 val) |
| static | setstat64 (float64 val) |
| static | setstat32 (float32 val) |
| dotest64_2 (char *fn, float64(*op)(float64, float64)) | |
| dotest64_2c (char *fn, void(*op)(float64 *, float64 *, float64 *)) | |
| dotest64_1 (char *fn, float64(*op)(float64)) | |
| dotest64_1s (char *fn, float64(*op)(float32)) | |
| dotest32_2 (char *fn, float32(*op)(float32, float32)) | |
| dotest32_2c (char *fn, void(*op)(float32 *, float32 *, float32 *)) | |
| dotest32_1s (char *fn, float32(*op)(float64)) | |
| main () | |
Variables | |
| static volatile int | fp_error = AR_STAT_OK |
| static uint32 | t64vals [] |
| static uint32 | t32vals [] |
| static char | USMID [] = "\n%Z%%M% %I% %G% %U%\n" |
| static char | rcsid [] = "$Id: itgen.c,v 1.1.1.1 2002-05-22 20:06:19 dsystem Exp $" |
| #define float32 float |
Definition at line 43 of file itgen.c.
Referenced by dotest32_1s(), dotest32_2(), dotest32_2c(), dotest64_1s(), prieee32(), and setstat32().
| #define float64 double |
Definition at line 42 of file itgen.c.
Referenced by dotest32_1s(), dotest64_1(), dotest64_1s(), dotest64_2(), dotest64_2c(), prieee64(), and setstat64().
| #define U "_sunOS" |
| #define uint32 unsigned long |
Definition at line 41 of file itgen.c.
Referenced by bext_l(), bset_l(), btest_l(), dotest32_1s(), dotest32_2(), dotest32_2c(), dotest64_1(), dotest64_1s(), dotest64_2(), dotest64_2c(), mvbits_long(), narcar_(), nargum_(), nartab_(), nchara_(), nretca_(), ntabca_(), ntabch_(), prieee32(), prieee64(), rretrg_(), rretvr_(), set_arg_arr(), set_args(), setstat32(), setstat64(), and tabarg_().
Definition at line 118 of file itgen.c.
Referenced by ar_sim(), and open_arith_file().
| dotest32_1s | ( | char * | fn, | |
| float32(*)(float64) | op | |||
| ) |
Definition at line 527 of file itgen.c.
References AR_STAT_OK, exit(), float32, float64, fp, fp_error, fprintf(), prieee32(), prieee64(), setstat32(), t64vals, and uint32.
Referenced by main().

| dotest32_2 | ( | char * | fn, | |
| float32(*)(float32, float32) | op | |||
| ) |
Definition at line 448 of file itgen.c.
References AR_STAT_OK, exit(), float32, fp, fp_error, fprintf(), prieee32(), setstat32(), t32vals, and uint32.
Referenced by main().

| dotest32_2c | ( | char * | fn, | |
| void(*)(float32 *, float32 *, float32 *) | op | |||
| ) |
Definition at line 481 of file itgen.c.
References AR_STAT_INVALID_TYPE, AR_STAT_OK, AR_STAT_OVERFLOW, AR_STAT_UNDEFINED, AR_STAT_UNDERFLOW, AR_STAT_ZERO, exit(), float32, fp, fp_error, fprintf(), prieee32(), setstat32(), t32vals, and uint32.
Referenced by main().

| dotest64_1 | ( | char * | fn, | |
| float64(*)(float64) | op | |||
| ) |
Definition at line 390 of file itgen.c.
References AR_STAT_OK, exit(), float64, fp, fp_error, fprintf(), prieee64(), setstat64(), t64vals, and uint32.

| dotest64_1s | ( | char * | fn, | |
| float64(*)(float32) | op | |||
| ) |
Definition at line 419 of file itgen.c.
References AR_STAT_OK, exit(), float32, float64, fp, fp_error, fprintf(), prieee32(), prieee64(), setstat64(), t32vals, and uint32.
Referenced by main().

| dotest64_2 | ( | char * | fn, | |
| float64(*)(float64, float64) | op | |||
| ) |
Definition at line 307 of file itgen.c.
References AR_STAT_OK, exit(), float64, fp, fp_error, fprintf(), prieee64(), setstat64(), t64vals, and uint32.

| dotest64_2c | ( | char * | fn, | |
| void(*)(float64 *, float64 *, float64 *) | op | |||
| ) |
Definition at line 342 of file itgen.c.
References AR_STAT_INVALID_TYPE, AR_STAT_OK, AR_STAT_OVERFLOW, AR_STAT_UNDEFINED, AR_STAT_UNDERFLOW, AR_STAT_ZERO, exit(), float64, fp, fp_error, fprintf(), prieee64(), setstat64(), t64vals, and uint32.
Referenced by main().

| static float64 f32to64 | ( | float32 | x | ) | [static] |
| static float32 f64to32 | ( | float64 | x | ) | [static] |
| static float32 fadd32 | ( | float32 | x, | |
| float32 | y | |||
| ) | [static] |
| static float64 fadd64 | ( | float64 | x, | |
| float64 | y | |||
| ) | [static] |
| static float32 fcmp32 | ( | float32 | x, | |
| float32 | y | |||
| ) | [static] |
Definition at line 229 of file itgen.c.
References AR_STAT_UNDEFINED, and fp_error.
Referenced by main().
| static float64 fcmp64 | ( | float64 | x, | |
| float64 | y | |||
| ) | [static] |
Definition at line 191 of file itgen.c.
References AR_STAT_UNDEFINED, and fp_error.
Referenced by main().
| static float32 fdiv32 | ( | float32 | x, | |
| float32 | y | |||
| ) | [static] |
| static float64 fdiv64 | ( | float64 | x, | |
| float64 | y | |||
| ) | [static] |
| static float32 fmul32 | ( | float32 | x, | |
| float32 | y | |||
| ) | [static] |
| static float64 fmul64 | ( | float64 | x, | |
| float64 | y | |||
| ) | [static] |
| void fperr | ( | int | sig | ) |
Definition at line 57 of file itgen.c.
References AR_STAT_UNDEFINED, fp_error, and fperr().

| static float32 fsub32 | ( | float32 | x, | |
| float32 | y | |||
| ) | [static] |
| static float64 fsub64 | ( | float64 | x, | |
| float64 | y | |||
| ) | [static] |
| main | ( | ) |
Definition at line 557 of file itgen.c.
References dotest32_1s(), dotest32_2(), dotest32_2c(), dotest64_1(), dotest64_1s(), dotest64_2(), dotest64_2c(), exit(), exp64, f32to64(), f64to32(), fadd32(), fadd64(), fcmp32(), fcmp64(), fdiv32(), fdiv64(), fmul32(), fmul64(), fperr(), fsub32(), fsub64(), log64, pow64, sqrt64, and U.

| static prieee32 | ( | FILE * | fp, | |
| float32 | val | |||
| ) | [static] |
| static prieee64 | ( | FILE * | fp, | |
| float64 | val | |||
| ) | [static] |
| static setstat32 | ( | float32 | val | ) | [static] |
Definition at line 291 of file itgen.c.
References AR_STAT_NEGATIVE, AR_STAT_OVERFLOW, AR_STAT_UNDEFINED, AR_STAT_ZERO, float32, fp_error, and uint32.
Referenced by dotest32_1s(), dotest32_2(), and dotest32_2c().
| static setstat64 | ( | float64 | val | ) | [static] |
Definition at line 274 of file itgen.c.
References AR_STAT_NEGATIVE, AR_STAT_OVERFLOW, AR_STAT_UNDEFINED, AR_STAT_ZERO, float64, fp_error, and uint32.
Referenced by dotest64_1(), dotest64_1s(), dotest64_2(), and dotest64_2c().
volatile int fp_error = AR_STAT_OK [static] |
Definition at line 55 of file itgen.c.
Referenced by dotest32_1s(), dotest32_2(), dotest32_2c(), dotest64_1(), dotest64_1s(), dotest64_2(), dotest64_2c(), fcmp32(), fcmp64(), fperr(), setstat32(), and setstat64().
Definition at line 120 of file itgen.c.
Referenced by dotest32_2(), dotest32_2c(), and dotest64_1s().
Definition at line 73 of file itgen.c.
Referenced by dotest32_1s(), dotest64_1(), dotest64_2(), and dotest64_2c().
1.6.1