Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
confidence.c File Reference
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <stdlib.h>
#include "arith.h"
#include "arith.internal.h"
Include dependency graph for confidence.c:

Go to the source code of this file.

Defines

#define RAND_ITERS   10000
#define FLAGMASK
#define AR_ERR   (AR_STAT_OVERFLOW | AR_STAT_UNDEFINED)
#define U   "_sunOS"

Functions

void fadd (float *z, float *a, float *b)
void fsub (float *z, float *a, float *b)
void fmul (float *z, float *a, float *b)
void fdiv (float *z, float *a, float *b)
void xdfadd (long double *z, long double *a, long double *b)
void xdfsub (long double *z, long double *a, long double *b)
void xdfmul (long double *z, long double *a, long double *b)
void xdfdiv (long double *z, long double *a, long double *b)
void dfadd (double *z, double *a, double *b)
void dfsub (double *z, double *a, double *b)
void dfmul (double *z, double *a, double *b)
void dfdiv (double *z, double *a, double *b)
void fperr (int sig)
int matherr ()
int getnewline (FILE *fp)
int getcray64 (FILE *fp, AR_CRAY_64 *x)
int getcray128 (FILE *fp, AR_CRAY_128 *x)
int getieee32 (FILE *fp, AR_IEEE_32 *x)
int getieee64 (FILE *fp, AR_IEEE_64 *x)
int getint64 (FILE *fp, AR_INT_64 *x)
int getint (FILE *fp, int *x)
int getcray64_2 (FILE *fp, AR_CRAY_64 *x, AR_CRAY_64 *y, AR_CRAY_64 *res, int *ansflags)
int getcray64_1 (FILE *fp, AR_CRAY_64 *x, AR_CRAY_64 *res, int *ansflags)
int getcray64_i (FILE *fp, AR_CRAY_64 *x, AR_INT_64 *y, AR_CRAY_64 *res, int *ansflags)
int getcray64_i2 (FILE *fp, AR_INT_64 *x, AR_INT_64 *y, AR_INT_64 *res, int *ansflags)
int getcray128_2 (FILE *fp, AR_CRAY_128 *x, AR_CRAY_128 *y, AR_CRAY_128 *res, int *ansflags)
int getcray128_1 (FILE *fp, AR_CRAY_128 *x, AR_CRAY_128 *res, int *ansflags)
int getcray128_1a (FILE *fp, AR_INT_64 *x, AR_CRAY_128 *res, int *ansflags)
int getcray128_1b (FILE *fp, AR_CRAY_128 *x, AR_INT_64 *res, int *ansflags)
int getcray128_1c (FILE *fp, AR_CRAY_128 *x, AR_IEEE_64 *res, int *ansflags)
int getcray128_i (FILE *fp, AR_CRAY_128 *x, AR_INT_64 *y, AR_CRAY_128 *res, int *ansflags)
int getcray128_64 (FILE *fp, AR_CRAY_128 *x, AR_CRAY_64 *y, AR_CRAY_128 *res, int *ansflags)
int getieee64_2 (FILE *fp, AR_IEEE_64 *x, AR_IEEE_64 *y, AR_IEEE_64 *res, int *ansflags)
int getieee64_2c (FILE *fp, AR_CPLX_IEEE_64 *x, AR_CPLX_IEEE_64 *y, AR_CPLX_IEEE_64 *res, int *ansflags)
int getieee64_1 (FILE *fp, AR_IEEE_64 *x, AR_IEEE_64 *res, int *ansflags)
int getieee32_2 (FILE *fp, AR_IEEE_32 *x, AR_IEEE_32 *y, AR_IEEE_32 *res, int *ansflags)
int getieee32_2c (FILE *fp, AR_CPLX_IEEE_32 *x, AR_CPLX_IEEE_32 *y, AR_CPLX_IEEE_32 *res, int *ansflags)
int getieee32_1 (FILE *fp, AR_IEEE_32 *x, AR_IEEE_32 *res, int *ansflags)
int getint64_1 (FILE *fp, AR_INT_64 *x, AR_INT_64 *res, int *ansflags)
int crayok64 (AR_CRAY_64 *ans, AR_CRAY_64 *res, int ansflags, int resflags)
int crayok64i (AR_INT_64 *ans, AR_INT_64 *res, int ansflags, int resflags)
int crayok128 (AR_CRAY_128 *ans, AR_CRAY_128 *res, int ansflags, int resflags)
int ieeeok64 (AR_IEEE_64 *ans, AR_IEEE_64 *res, int ansflags, int resflags)
int ieeeok32 (AR_IEEE_32 *ans, AR_IEEE_32 *res, int ansflags, int resflags)
int intok64 (AR_INT_64 *ans, AR_INT_64 *res, int ansflags, int resflags)
 prcray64 (AR_CRAY_64 *x)
 prcray128 (AR_CRAY_128 *x)
 print64 (AR_INT_64 *x)
 prieee64 (AR_IEEE_64 *x)
 prieee32 (AR_IEEE_32 *x)
 crayerr64_2 (char *lab, AR_CRAY_64 *x, AR_CRAY_64 *y, AR_CRAY_64 *ans, AR_CRAY_64 *res, int ansflags, int resflags)
 crayerr64_1 (char *lab, AR_CRAY_64 *x, AR_CRAY_64 *ans, AR_CRAY_64 *res, int ansflags, int resflags)
 crayerr64_i (char *lab, AR_CRAY_64 *x, AR_INT_64 *y, AR_CRAY_64 *ans, AR_CRAY_64 *res, int ansflags, int resflags)
 crayerr64_i2 (char *lab, AR_INT_64 *x, AR_INT_64 *y, AR_INT_64 *ans, AR_INT_64 *res, int ansflags, int resflags)
 crayerr128_2 (char *lab, AR_CRAY_128 *x, AR_CRAY_128 *y, AR_CRAY_128 *ans, AR_CRAY_128 *res, int ansflags, int resflags)
 crayerr128_1 (char *lab, AR_CRAY_128 *x, AR_CRAY_128 *ans, AR_CRAY_128 *res, int ansflags, int resflags)
 crayerr128_1a (char *lab, AR_INT_64 *x, AR_CRAY_128 *ans, AR_CRAY_128 *res, int ansflags, int resflags)
 crayerr128_1b (char *lab, AR_CRAY_128 *x, AR_INT_64 *ans, AR_INT_64 *res, int ansflags, int resflags)
 crayerr128_1c (char *lab, AR_CRAY_128 *x, AR_IEEE_64 *ans, AR_IEEE_64 *res, int ansflags, int resflags)
 crayerr128_i (char *lab, AR_CRAY_128 *x, AR_INT_64 *y, AR_CRAY_128 *ans, AR_CRAY_128 *res, int ansflags, int resflags)
 crayerr128_64 (char *lab, AR_CRAY_128 *x, AR_CRAY_64 *y, AR_CRAY_128 *ans, AR_CRAY_128 *res, int ansflags, int resflags)
 ieeeerr64_2 (char *lab, AR_IEEE_64 *x, AR_IEEE_64 *y, AR_IEEE_64 *ans, AR_IEEE_64 *res, int ansflags, int resflags)
 ieeeerr64_2c (char *lab, AR_CPLX_IEEE_64 *x, AR_CPLX_IEEE_64 *y, AR_CPLX_IEEE_64 *ans, AR_CPLX_IEEE_64 *res, int ansflags, int resflags)
 ieeeerr64_1 (char *lab, AR_IEEE_64 *x, AR_IEEE_64 *ans, AR_IEEE_64 *res, int ansflags, int resflags)
 ieeeerr32_2 (char *lab, AR_IEEE_32 *x, AR_IEEE_32 *y, AR_IEEE_32 *ans, AR_IEEE_32 *res, int ansflags, int resflags)
 ieeeerr32_2c (char *lab, AR_CPLX_IEEE_32 *x, AR_CPLX_IEEE_32 *y, AR_CPLX_IEEE_32 *ans, AR_CPLX_IEEE_32 *res, int ansflags, int resflags)
 ieeeerr32_1 (char *lab, AR_IEEE_32 *x, AR_IEEE_32 *ans, AR_IEEE_32 *res, int ansflags, int resflags)
 interr64_1 (char *lab, AR_INT_64 *x, AR_INT_64 *ans, AR_INT_64 *res, int ansflags, int resflags)
 craytest64_2 (char *fn, char *lab, int(*op)(), int rounding, int *tests, int *failures)
 craytest64_2t (char *fn, char *lab, int(*op)(), AR_TYPE type, int *tests, int *failures)
 craytest64_1 (char *fn, char *lab, int(*op)(), int rounding, int *tests, int *failures)
 craytest64_1t (char *fn, char *lab, int(*op)(), AR_TYPE type, int *tests, int *failures)
 craytest64_c (char *fn, char *lab, int(*op)(), AR_TYPE type1, AR_TYPE type2, int *tests, int *failures)
 craytest64_i (char *fn, char *lab, int(*op)(), AR_TYPE type, int *tests, int *failures)
 craytest64_i2 (char *fn, char *lab, int(*op)(), AR_TYPE type, int *tests, int *failures)
 craytest128_64 (char *fn, char *lab, int(*op)(), AR_TYPE type1, AR_TYPE type2, int *tests, int *failures)
 craytest128_2t (char *fn, char *lab, int(*op)(), AR_TYPE type, int *tests, int *failures)
 craytest128_1 (char *fn, char *lab, int(*op)(), int rounding, int *tests, int *failures)
 craytest128_1t (char *fn, char *lab, int(*op)(), AR_TYPE type, int *tests, int *failures)
 craytest128_i (char *fn, char *lab, int(*op)(), AR_TYPE type, int *tests, int *failures)
 ieeetest64_2c (char *fn, char *lab, int(*op)(), AR_TYPE type, int *tests, int *failures)
 ieeetest64_2cmp (char *fn, char *lab, AR_COMPARE_TYPE(*op)(), AR_TYPE type, int *tests, int *failures)
 ieeetest64_2t (char *fn, char *lab, int(*op)(), AR_TYPE type, int *tests, int *failures)
 ieeetest64_1t (char *fn, char *lab, int(*op)(), AR_TYPE type, int *tests, int *failures)
 ieeetest32_2c (char *fn, char *lab, int(*op)(), AR_TYPE type, int *tests, int *failures)
 ieeetest32_2cmp (char *fn, char *lab, AR_COMPARE_TYPE(*op)(), AR_TYPE type, int *tests, int *failures)
 ieeetest32_2t (char *fn, char *lab, int(*op)(), AR_TYPE type, int *tests, int *failures)
 ieeetest32_1t (char *fn, char *lab, int(*op)(), AR_TYPE type, int *tests, int *failures)
 ieeerand128_2 (char *lab, int(*simop)(), int rounding, void(*realop)(), int *tests, int *lowp, int *highp)
 ieeerand64_2 (char *lab, int(*simop)(), int rounding, void(*realop)(), int *tests, int *lowp, int *highp)
 ieeerand32_2 (char *lab, int(*simop)(), int rounding, void(*realop)(), int *tests, int *lowp, int *highp)
 convtest64 (char *fn, char *lab, int(*op)(), int opt1, int opt2, int *tests, int *failures)
 convtest128a (char *fn, char *lab, int(*op)(), int opt, int *tests, int *failures)
 convtest128b (char *fn, char *lab, int(*op)(), int opt, int *tests, int *failures)
 convtest128c (char *fn, char *lab, int(*op)(), int opt, int *tests, int *failures)
 misc_tests (int *failures)
 t_index ()
 t_scan ()
 t_verify ()
 validate (int status, int xstatus, int result, int xresult)
 main (int argc, char **argv)

Variables

static volatile int fp_error = 0
AR_TYPE inttype
static misc_errors = 0
static char USMID [] = "\n%Z%%M% %I% %G% %U%\n"
static char rcsid [] = "$Id: confidence.c,v 1.1.1.1 2002-05-22 20:06:18 dsystem Exp $"

Define Documentation

Definition at line 57 of file confidence.c.

Referenced by crayok128(), crayok64(), crayok64i(), ieeeok32(), ieeeok64(), and intok64().

#define FLAGMASK
Value:

Definition at line 54 of file confidence.c.

Referenced by crayok128(), crayok64(), crayok64i(), ieeeok32(), ieeeok64(), and intok64().

#define RAND_ITERS   10000

Definition at line 52 of file confidence.c.

Referenced by ieeerand128_2(), ieeerand32_2(), and ieeerand64_2().

#define U   "_sunOS"

Referenced by c_atoq(), main(), Mask64(), and Targ_IntrinsicOp().


Function Documentation

convtest128a ( char *  fn,
char *  lab,
int(*)()  op,
int  opt,
int *  tests,
int *  failures 
)

Definition at line 1899 of file confidence.c.

References crayerr128_1a(), crayok128(), fp, and getcray128_1a().

Referenced by main().

Here is the call graph for this function:

convtest128b ( char *  fn,
char *  lab,
int(*)()  op,
int  opt,
int *  tests,
int *  failures 
)

Definition at line 1929 of file confidence.c.

References crayerr128_1b(), fp, getcray128_1b(), and intok64().

Referenced by main().

Here is the call graph for this function:

convtest128c ( char *  fn,
char *  lab,
int(*)()  op,
int  opt,
int *  tests,
int *  failures 
)

Definition at line 1959 of file confidence.c.

References crayerr128_1c(), fp, getcray128_1c(), and ieeeok64().

Referenced by main().

Here is the call graph for this function:

convtest64 ( char *  fn,
char *  lab,
int(*)()  op,
int  opt1,
int  opt2,
int *  tests,
int *  failures 
)

Definition at line 1870 of file confidence.c.

References fp, getint64_1(), interr64_1(), and intok64().

Referenced by main().

Here is the call graph for this function:

crayerr128_1 ( char *  lab,
AR_CRAY_128 x,
AR_CRAY_128 ans,
AR_CRAY_128 res,
int  ansflags,
int  resflags 
)

Definition at line 727 of file confidence.c.

References prcray128().

Referenced by craytest128_1(), and craytest128_1t().

Here is the call graph for this function:

crayerr128_1a ( char *  lab,
AR_INT_64 x,
AR_CRAY_128 ans,
AR_CRAY_128 res,
int  ansflags,
int  resflags 
)

Definition at line 742 of file confidence.c.

References prcray128(), and print64().

Referenced by convtest128a().

Here is the call graph for this function:

crayerr128_1b ( char *  lab,
AR_CRAY_128 x,
AR_INT_64 ans,
AR_INT_64 res,
int  ansflags,
int  resflags 
)

Definition at line 757 of file confidence.c.

References prcray128(), and print64().

Referenced by convtest128b().

Here is the call graph for this function:

crayerr128_1c ( char *  lab,
AR_CRAY_128 x,
AR_IEEE_64 ans,
AR_IEEE_64 res,
int  ansflags,
int  resflags 
)

Definition at line 772 of file confidence.c.

References prcray128(), and prieee64().

Referenced by convtest128c().

Here is the call graph for this function:

crayerr128_2 ( char *  lab,
AR_CRAY_128 x,
AR_CRAY_128 y,
AR_CRAY_128 ans,
AR_CRAY_128 res,
int  ansflags,
int  resflags 
)

Definition at line 709 of file confidence.c.

References prcray128().

Referenced by craytest128_2t().

Here is the call graph for this function:

crayerr128_64 ( char *  lab,
AR_CRAY_128 x,
AR_CRAY_64 y,
AR_CRAY_128 ans,
AR_CRAY_128 res,
int  ansflags,
int  resflags 
)

Definition at line 805 of file confidence.c.

References prcray128(), and prcray64().

Referenced by craytest128_64().

Here is the call graph for this function:

crayerr128_i ( char *  lab,
AR_CRAY_128 x,
AR_INT_64 y,
AR_CRAY_128 ans,
AR_CRAY_128 res,
int  ansflags,
int  resflags 
)

Definition at line 787 of file confidence.c.

References prcray128(), and print64().

Referenced by craytest128_i().

Here is the call graph for this function:

crayerr64_1 ( char *  lab,
AR_CRAY_64 x,
AR_CRAY_64 ans,
AR_CRAY_64 res,
int  ansflags,
int  resflags 
)

Definition at line 658 of file confidence.c.

References prcray64().

Referenced by craytest64_1(), and craytest64_1t().

Here is the call graph for this function:

crayerr64_2 ( char *  lab,
AR_CRAY_64 x,
AR_CRAY_64 y,
AR_CRAY_64 ans,
AR_CRAY_64 res,
int  ansflags,
int  resflags 
)

Definition at line 640 of file confidence.c.

References prcray64().

Referenced by craytest64_2(), craytest64_2t(), and craytest64_c().

Here is the call graph for this function:

crayerr64_i ( char *  lab,
AR_CRAY_64 x,
AR_INT_64 y,
AR_CRAY_64 ans,
AR_CRAY_64 res,
int  ansflags,
int  resflags 
)

Definition at line 673 of file confidence.c.

References prcray64(), and print64().

Referenced by craytest64_i().

Here is the call graph for this function:

crayerr64_i2 ( char *  lab,
AR_INT_64 x,
AR_INT_64 y,
AR_INT_64 ans,
AR_INT_64 res,
int  ansflags,
int  resflags 
)

Definition at line 691 of file confidence.c.

References print64().

Referenced by craytest64_i2().

Here is the call graph for this function:

int crayok64i ( AR_INT_64 ans,
AR_INT_64 res,
int  ansflags,
int  resflags 
)

Definition at line 507 of file confidence.c.

References AR_ERR, FLAGMASK, AR_INT_64::part1, AR_INT_64::part2, AR_INT_64::part3, and AR_INT_64::part4.

Referenced by craytest64_i2().

craytest128_1 ( char *  fn,
char *  lab,
int(*)()  op,
int  rounding,
int *  tests,
int *  failures 
)

Definition at line 1258 of file confidence.c.

References crayerr128_1(), crayok128(), fp, and getcray128_1().

Here is the call graph for this function:

craytest128_1t ( char *  fn,
char *  lab,
int(*)()  op,
AR_TYPE  type,
int *  tests,
int *  failures 
)

Definition at line 1287 of file confidence.c.

References crayerr128_1(), crayok128(), fp, and getcray128_1().

Referenced by main().

Here is the call graph for this function:

craytest128_2t ( char *  fn,
char *  lab,
int(*)()  op,
AR_TYPE  type,
int *  tests,
int *  failures 
)

Definition at line 1229 of file confidence.c.

References crayerr128_2(), crayok128(), fp, and getcray128_2().

Referenced by main().

Here is the call graph for this function:

craytest128_64 ( char *  fn,
char *  lab,
int(*)()  op,
AR_TYPE  type1,
AR_TYPE  type2,
int *  tests,
int *  failures 
)

Definition at line 1198 of file confidence.c.

References crayerr128_64(), crayok128(), fp, and getcray128_64().

Referenced by main().

Here is the call graph for this function:

craytest128_i ( char *  fn,
char *  lab,
int(*)()  op,
AR_TYPE  type,
int *  tests,
int *  failures 
)

Definition at line 1316 of file confidence.c.

References AR_Int_64_S, crayerr128_i(), crayok128(), fp, getcray128_i(), and inttype.

Referenced by main().

Here is the call graph for this function:

craytest64_1 ( char *  fn,
char *  lab,
int(*)()  op,
int  rounding,
int *  tests,
int *  failures 
)

Definition at line 1049 of file confidence.c.

References crayerr64_1(), crayok64(), fp, and getcray64_1().

Referenced by main().

Here is the call graph for this function:

craytest64_1t ( char *  fn,
char *  lab,
int(*)()  op,
AR_TYPE  type,
int *  tests,
int *  failures 
)

Definition at line 1078 of file confidence.c.

References crayerr64_1(), crayok64(), fp, and getcray64_1().

Referenced by main().

Here is the call graph for this function:

craytest64_2 ( char *  fn,
char *  lab,
int(*)()  op,
int  rounding,
int *  tests,
int *  failures 
)

Definition at line 988 of file confidence.c.

References crayerr64_2(), crayok64(), fp, and getcray64_2().

Referenced by main().

Here is the call graph for this function:

craytest64_2t ( char *  fn,
char *  lab,
int(*)()  op,
AR_TYPE  type,
int *  tests,
int *  failures 
)

Definition at line 1020 of file confidence.c.

References crayerr64_2(), crayok64(), fp, and getcray64_2().

Referenced by main().

Here is the call graph for this function:

craytest64_c ( char *  fn,
char *  lab,
int(*)()  op,
AR_TYPE  type1,
AR_TYPE  type2,
int *  tests,
int *  failures 
)

Definition at line 1107 of file confidence.c.

References crayerr64_2(), crayok64(), fp, getcray64_2(), AR_CPLX_CRAY_64::imag, and AR_CPLX_CRAY_64::real.

Referenced by main().

Here is the call graph for this function:

craytest64_i ( char *  fn,
char *  lab,
int(*)()  op,
AR_TYPE  type,
int *  tests,
int *  failures 
)

Definition at line 1138 of file confidence.c.

References AR_Int_64_S, crayerr64_i(), crayok64(), fp, getcray64_i(), and inttype.

Referenced by main().

Here is the call graph for this function:

craytest64_i2 ( char *  fn,
char *  lab,
int(*)()  op,
AR_TYPE  type,
int *  tests,
int *  failures 
)

Definition at line 1169 of file confidence.c.

References crayerr64_i2(), crayok64i(), fp, and getcray64_i2().

Referenced by main().

Here is the call graph for this function:

void dfadd ( double *  z,
double *  a,
double *  b 
)

Definition at line 97 of file confidence.c.

Referenced by main().

void dfdiv ( double *  z,
double *  a,
double *  b 
)

Definition at line 100 of file confidence.c.

Referenced by main().

void dfmul ( double *  z,
double *  a,
double *  b 
)

Definition at line 99 of file confidence.c.

Referenced by main().

void dfsub ( double *  z,
double *  a,
double *  b 
)

Definition at line 98 of file confidence.c.

Referenced by main().

void fadd ( float *  z,
float *  a,
float *  b 
)

Definition at line 60 of file confidence.c.

Referenced by main().

void fdiv ( float *  z,
float *  a,
float *  b 
)

Definition at line 63 of file confidence.c.

Referenced by main().

void fmul ( float *  z,
float *  a,
float *  b 
)

Definition at line 62 of file confidence.c.

Referenced by main().

void fperr ( int  sig)

Definition at line 108 of file confidence.c.

Referenced by fperr(), and main().

void fsub ( float *  z,
float *  a,
float *  b 
)

Definition at line 61 of file confidence.c.

Referenced by main().

int getcray128_1 ( FILE *  fp,
AR_CRAY_128 x,
AR_CRAY_128 res,
int *  ansflags 
)

Definition at line 300 of file confidence.c.

References getcray128(), getint(), and getnewline().

Referenced by craytest128_1(), and craytest128_1t().

Here is the call graph for this function:

int getcray128_1a ( FILE *  fp,
AR_INT_64 x,
AR_CRAY_128 res,
int *  ansflags 
)

Definition at line 311 of file confidence.c.

References getcray128(), getint(), getint64(), and getnewline().

Referenced by convtest128a().

Here is the call graph for this function:

int getcray128_1b ( FILE *  fp,
AR_CRAY_128 x,
AR_INT_64 res,
int *  ansflags 
)

Definition at line 322 of file confidence.c.

References getcray128(), getint(), getint64(), and getnewline().

Referenced by convtest128b().

Here is the call graph for this function:

int getcray128_1c ( FILE *  fp,
AR_CRAY_128 x,
AR_IEEE_64 res,
int *  ansflags 
)

Definition at line 333 of file confidence.c.

References getcray128(), getieee64(), getint(), and getnewline().

Referenced by convtest128c().

Here is the call graph for this function:

int getcray128_2 ( FILE *  fp,
AR_CRAY_128 x,
AR_CRAY_128 y,
AR_CRAY_128 res,
int *  ansflags 
)

Definition at line 287 of file confidence.c.

References getcray128(), getint(), and getnewline().

Referenced by craytest128_2t().

Here is the call graph for this function:

int getcray128_64 ( FILE *  fp,
AR_CRAY_128 x,
AR_CRAY_64 y,
AR_CRAY_128 res,
int *  ansflags 
)

Definition at line 357 of file confidence.c.

References getcray128(), getcray64(), getint(), and getnewline().

Referenced by craytest128_64().

Here is the call graph for this function:

int getcray128_i ( FILE *  fp,
AR_CRAY_128 x,
AR_INT_64 y,
AR_CRAY_128 res,
int *  ansflags 
)

Definition at line 344 of file confidence.c.

References getcray128(), getint(), getint64(), and getnewline().

Referenced by craytest128_i().

Here is the call graph for this function:

int getcray64_1 ( FILE *  fp,
AR_CRAY_64 x,
AR_CRAY_64 res,
int *  ansflags 
)

Definition at line 250 of file confidence.c.

References getcray64(), getint(), and getnewline().

Referenced by craytest64_1(), and craytest64_1t().

Here is the call graph for this function:

int getcray64_2 ( FILE *  fp,
AR_CRAY_64 x,
AR_CRAY_64 y,
AR_CRAY_64 res,
int *  ansflags 
)

Definition at line 237 of file confidence.c.

References getcray64(), getint(), and getnewline().

Referenced by craytest64_2(), craytest64_2t(), and craytest64_c().

Here is the call graph for this function:

int getcray64_i ( FILE *  fp,
AR_CRAY_64 x,
AR_INT_64 y,
AR_CRAY_64 res,
int *  ansflags 
)

Definition at line 261 of file confidence.c.

References getcray64(), getint(), getint64(), and getnewline().

Referenced by craytest64_i().

Here is the call graph for this function:

int getcray64_i2 ( FILE *  fp,
AR_INT_64 x,
AR_INT_64 y,
AR_INT_64 res,
int *  ansflags 
)

Definition at line 274 of file confidence.c.

References getint(), getint64(), and getnewline().

Referenced by craytest64_i2().

Here is the call graph for this function:

int getieee32 ( FILE *  fp,
AR_IEEE_32 x 
)
int getieee32_1 ( FILE *  fp,
AR_IEEE_32 x,
AR_IEEE_32 res,
int *  ansflags 
)

Definition at line 465 of file confidence.c.

References getieee32(), getint(), and getnewline().

Referenced by ieeetest32_1t().

Here is the call graph for this function:

int getieee32_2 ( FILE *  fp,
AR_IEEE_32 x,
AR_IEEE_32 y,
AR_IEEE_32 res,
int *  ansflags 
)

Definition at line 410 of file confidence.c.

References getieee32(), getint(), and getnewline().

Referenced by ieeetest32_2cmp(), and ieeetest32_2t().

Here is the call graph for this function:

int getieee64_1 ( FILE *  fp,
AR_IEEE_64 x,
AR_IEEE_64 res,
int *  ansflags 
)

Definition at line 399 of file confidence.c.

References getieee64(), getint(), and getnewline().

Referenced by ieeetest64_1t().

Here is the call graph for this function:

int getieee64_2 ( FILE *  fp,
AR_IEEE_64 x,
AR_IEEE_64 y,
AR_IEEE_64 res,
int *  ansflags 
)

Definition at line 370 of file confidence.c.

References getieee64(), getint(), and getnewline().

Referenced by ieeetest64_2cmp(), and ieeetest64_2t().

Here is the call graph for this function:

int getieee64_2c ( FILE *  fp,
AR_CPLX_IEEE_64 x,
AR_CPLX_IEEE_64 y,
AR_CPLX_IEEE_64 res,
int *  ansflags 
)

Definition at line 383 of file confidence.c.

References getieee64(), getint(), getnewline(), AR_CPLX_IEEE_64::imag, and AR_CPLX_IEEE_64::real.

Referenced by ieeetest64_2c().

Here is the call graph for this function:

int getint64_1 ( FILE *  fp,
AR_INT_64 x,
AR_INT_64 res,
int *  ansflags 
)

Definition at line 476 of file confidence.c.

References getint(), getint64(), and getnewline().

Referenced by convtest64().

Here is the call graph for this function:

ieeeerr32_1 ( char *  lab,
AR_IEEE_32 x,
AR_IEEE_32 ans,
AR_IEEE_32 res,
int  ansflags,
int  resflags 
)

Definition at line 955 of file confidence.c.

References prieee32().

Referenced by ieeetest32_1t().

Here is the call graph for this function:

ieeeerr32_2 ( char *  lab,
AR_IEEE_32 x,
AR_IEEE_32 y,
AR_IEEE_32 ans,
AR_IEEE_32 res,
int  ansflags,
int  resflags 
)

Definition at line 878 of file confidence.c.

References prieee32().

Referenced by ieeetest32_2cmp(), and ieeetest32_2t().

Here is the call graph for this function:

ieeeerr64_1 ( char *  lab,
AR_IEEE_64 x,
AR_IEEE_64 ans,
AR_IEEE_64 res,
int  ansflags,
int  resflags 
)

Definition at line 863 of file confidence.c.

References prieee64().

Referenced by ieeetest64_1t().

Here is the call graph for this function:

ieeeerr64_2 ( char *  lab,
AR_IEEE_64 x,
AR_IEEE_64 y,
AR_IEEE_64 ans,
AR_IEEE_64 res,
int  ansflags,
int  resflags 
)

Definition at line 823 of file confidence.c.

References prieee64().

Referenced by ieeetest64_2cmp(), and ieeetest64_2t().

Here is the call graph for this function:

ieeeerr64_2c ( char *  lab,
AR_CPLX_IEEE_64 x,
AR_CPLX_IEEE_64 y,
AR_CPLX_IEEE_64 ans,
AR_CPLX_IEEE_64 res,
int  ansflags,
int  resflags 
)

Definition at line 841 of file confidence.c.

References AR_CPLX_IEEE_64::imag, prieee64(), and AR_CPLX_IEEE_64::real.

Referenced by ieeetest64_2c().

Here is the call graph for this function:

int ieeeok32 ( AR_IEEE_32 ans,
AR_IEEE_32 res,
int  ansflags,
int  resflags 
)
ieeerand128_2 ( char *  lab,
int(*)()  simop,
int  rounding,
void(*)()  realop,
int *  tests,
int *  lowp,
int *  highp 
)

Definition at line 1759 of file confidence.c.

References fp_error, high, low, and RAND_ITERS.

Referenced by main().

ieeerand32_2 ( char *  lab,
int(*)()  simop,
int  rounding,
void(*)()  realop,
int *  tests,
int *  lowp,
int *  highp 
)

Definition at line 1828 of file confidence.c.

References f, fp_error, high, low, and RAND_ITERS.

Referenced by main().

ieeerand64_2 ( char *  lab,
int(*)()  simop,
int  rounding,
void(*)()  realop,
int *  tests,
int *  lowp,
int *  highp 
)

Definition at line 1794 of file confidence.c.

References fp_error, high, low, and RAND_ITERS.

Referenced by main().

ieeetest32_1t ( char *  fn,
char *  lab,
int(*)()  op,
AR_TYPE  type,
int *  tests,
int *  failures 
)

Definition at line 1579 of file confidence.c.

References fp, getieee32_1(), ieeeerr32_1(), and ieeeok32().

Here is the call graph for this function:

ieeetest32_2c ( char *  fn,
char *  lab,
int(*)()  op,
AR_TYPE  type,
int *  tests,
int *  failures 
)

Definition at line 1478 of file confidence.c.

References fp, getieee32_2c(), ieeeerr32_2c(), and ieeeok64().

Referenced by main().

Here is the call graph for this function:

ieeetest32_2cmp ( char *  fn,
char *  lab,
AR_COMPARE_TYPE(*)()  op,
AR_TYPE  type,
int *  tests,
int *  failures 
)

Definition at line 1507 of file confidence.c.

References AR_Compare_EQ, AR_Compare_GT, AR_Compare_LT, AR_Compare_Unord, AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_UNDEFINED, AR_STAT_ZERO, fp, getieee32_2(), ieeeerr32_2(), and ieeeok32().

Referenced by main().

Here is the call graph for this function:

ieeetest32_2t ( char *  fn,
char *  lab,
int(*)()  op,
AR_TYPE  type,
int *  tests,
int *  failures 
)

Definition at line 1550 of file confidence.c.

References fp, getieee32_2(), ieeeerr32_2(), and ieeeok32().

Referenced by main().

Here is the call graph for this function:

ieeetest64_1t ( char *  fn,
char *  lab,
int(*)()  op,
AR_TYPE  type,
int *  tests,
int *  failures 
)

Definition at line 1449 of file confidence.c.

References fp, getieee64_1(), ieeeerr64_1(), and ieeeok64().

Referenced by main().

Here is the call graph for this function:

ieeetest64_2c ( char *  fn,
char *  lab,
int(*)()  op,
AR_TYPE  type,
int *  tests,
int *  failures 
)

Definition at line 1347 of file confidence.c.

References fp, getieee64_2c(), ieeeerr64_2c(), ieeeok64(), AR_CPLX_IEEE_64::imag, and AR_CPLX_IEEE_64::real.

Referenced by main().

Here is the call graph for this function:

ieeetest64_2cmp ( char *  fn,
char *  lab,
AR_COMPARE_TYPE(*)()  op,
AR_TYPE  type,
int *  tests,
int *  failures 
)

Definition at line 1377 of file confidence.c.

References AR_Compare_EQ, AR_Compare_GT, AR_Compare_LT, AR_Compare_Unord, AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_UNDEFINED, AR_STAT_ZERO, fp, getieee64_2(), ieeeerr64_2(), and ieeeok64().

Referenced by main().

Here is the call graph for this function:

ieeetest64_2t ( char *  fn,
char *  lab,
int(*)()  op,
AR_TYPE  type,
int *  tests,
int *  failures 
)

Definition at line 1420 of file confidence.c.

References fp, getieee64_2(), ieeeerr64_2(), and ieeeok64().

Referenced by main().

Here is the call graph for this function:

interr64_1 ( char *  lab,
AR_INT_64 x,
AR_INT_64 ans,
AR_INT_64 res,
int  ansflags,
int  resflags 
)

Definition at line 970 of file confidence.c.

References print64().

Referenced by convtest64().

Here is the call graph for this function:

int intok64 ( AR_INT_64 ans,
AR_INT_64 res,
int  ansflags,
int  resflags 
)

Definition at line 577 of file confidence.c.

References AR_ERR, FLAGMASK, AR_INT_64::part1, AR_INT_64::part2, AR_INT_64::part3, and AR_INT_64::part4.

Referenced by convtest128b(), and convtest64().

main ( int  argc,
char **  argv 
)
int matherr ( )

Definition at line 130 of file confidence.c.

misc_tests ( int *  failures)

Definition at line 1992 of file confidence.c.

References AR_Int_32_S, AR_Int_64_S, AR_selected_real_kind(), AR_STAT_INVALID_TYPE, fprintf(), misc_errors, result, t_index(), t_scan(), and t_verify().

Referenced by main().

Here is the call graph for this function:

t_index ( )

Definition at line 2025 of file confidence.c.

References AR_const_false, AR_const_true, ar_data::ar_i64, AR_index(), AR_Logical, AR_STAT_ZERO, NULL, AR_INT_64::part4, result, and validate().

Referenced by misc_tests().

Here is the call graph for this function:

t_scan ( )

Definition at line 2142 of file confidence.c.

References AR_const_false, AR_const_true, ar_data::ar_i64, AR_Logical, AR_scan(), AR_STAT_ZERO, NULL, AR_INT_64::part4, result, and validate().

Referenced by misc_tests().

Here is the call graph for this function:

t_verify ( )

Definition at line 2259 of file confidence.c.

References AR_const_false, AR_const_true, ar_data::ar_i64, AR_Logical, AR_STAT_ZERO, AR_verify(), NULL, AR_INT_64::part4, result, and validate().

Referenced by misc_tests().

Here is the call graph for this function:

validate ( int  status,
int  xstatus,
int  result,
int  xresult 
)

Definition at line 2376 of file confidence.c.

References fprintf(), and misc_errors.

Referenced by t_index(), t_scan(), and t_verify().

Here is the call graph for this function:

void xdfadd ( long double *  z,
long double *  a,
long double *  b 
)

Definition at line 92 of file confidence.c.

Referenced by main().

void xdfdiv ( long double *  z,
long double *  a,
long double *  b 
)

Definition at line 95 of file confidence.c.

Referenced by main().

void xdfmul ( long double *  z,
long double *  a,
long double *  b 
)

Definition at line 94 of file confidence.c.

Referenced by main().

void xdfsub ( long double *  z,
long double *  a,
long double *  b 
)

Definition at line 93 of file confidence.c.

Referenced by main().


Variable Documentation

volatile int fp_error = 0 [static]

Definition at line 106 of file confidence.c.

Referenced by ieeerand128_2(), ieeerand32_2(), and ieeerand64_2().

Definition at line 1989 of file confidence.c.

Referenced by ar_power(), ar_transfer(), craytest128_i(), and craytest64_i().

misc_errors = 0 [static]

Definition at line 1990 of file confidence.c.

Referenced by misc_tests(), and validate().

char rcsid[] = "$Id: confidence.c,v 1.1.1.1 2002-05-22 20:06:18 dsystem Exp $" [static]

Definition at line 2635 of file confidence.c.

char USMID[] = "\n%Z%%M% %I% %G% %U%\n" [static]

Definition at line 2634 of file confidence.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines