osprey/arith/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/Subroutines

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 2005/10/21 19:00:00 marcel Exp $"


Define Documentation

#define AR_ERR   (AR_STAT_OVERFLOW | AR_STAT_UNDEFINED)

Definition at line 57 of file confidence.c.

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

#define FLAGMASK

#define RAND_ITERS   10000

Definition at line 52 of file confidence.c.

#define U   "_sunOS"


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(), fclose(), fopen, fp, getcray128_1a(), op, and printf().

Referenced by main().

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

Definition at line 1929 of file confidence.c.

References crayerr128_1b(), fclose(), fopen, fp, getcray128_1b(), intok64(), op, and printf().

Referenced by main().

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

Definition at line 1959 of file confidence.c.

References crayerr128_1c(), fclose(), fopen, fp, getcray128_1c(), ieeeok64(), op, and printf().

Referenced by main().

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

Definition at line 1870 of file confidence.c.

References fclose(), fopen, fp, getint64_1(), interr64_1(), intok64(), op, and printf().

Referenced by main().

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(), and printf().

Referenced by craytest128_1(), and craytest128_1t().

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(), print64(), and printf().

Referenced by convtest128a().

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(), print64(), and printf().

Referenced by convtest128b().

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(), prieee64(), and printf().

Referenced by convtest128c().

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(), and printf().

Referenced by craytest128_2t().

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(), prcray64(), and printf().

Referenced by craytest128_64().

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(), print64(), and printf().

Referenced by craytest128_i().

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(), and printf().

Referenced by craytest64_1(), and craytest64_1t().

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(), and printf().

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

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(), print64(), and printf().

Referenced by craytest64_i().

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(), and printf().

Referenced by craytest64_i2().

int crayok128 ( AR_CRAY_128 ans,
AR_CRAY_128 res,
int  ansflags,
int  resflags 
)

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 
)

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(), fclose(), fopen, fp, getcray128_1(), i, op, printf(), and x.

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(), fclose(), fopen, fp, getcray128_1(), i, op, printf(), and x.

Referenced by main().

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(), fclose(), fopen, fp, getcray128_2(), i, op, printf(), x, and is::y.

Referenced by main().

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(), fclose(), fopen, fp, getcray128_64(), i, op, printf(), x, and is::y.

Referenced by main().

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(), fclose(), fopen, fp, getcray128_i(), i, inttype, op, printf(), x, and is::y.

Referenced by main().

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(), fclose(), fopen, fp, getcray64_1(), i, op, printf(), and x.

Referenced by main().

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(), fclose(), fopen, fp, getcray64_1(), i, op, printf(), and x.

Referenced by main().

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(), fclose(), fopen, fp, getcray64_2(), i, op, printf(), x, and is::y.

Referenced by main().

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(), fclose(), fopen, fp, getcray64_2(), i, op, printf(), x, and is::y.

Referenced by main().

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(), fclose(), fopen, fp, getcray64_2(), i, AR_CPLX_CRAY_64::imag, op, printf(), AR_CPLX_CRAY_64::real, and x.

Referenced by main().

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(), fclose(), fopen, fp, getcray64_i(), i, inttype, op, printf(), x, and is::y.

Referenced by main().

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(), fclose(), fopen, fp, getcray64_i2(), i, op, printf(), x, and is::y.

Referenced by main().

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 
)

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.

References signal().

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 ( FILE fp,
AR_CRAY_128 x 
)

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().

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().

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().

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().

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().

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().

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().

int getcray64 ( FILE fp,
AR_CRAY_64 x 
)

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().

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().

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().

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().

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().

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().

int getieee32_2c ( FILE fp,
AR_CPLX_IEEE_32 x,
AR_CPLX_IEEE_32 y,
AR_CPLX_IEEE_32 res,
int *  ansflags 
)

int getieee64 ( FILE fp,
AR_IEEE_64 x 
)

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().

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().

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().

int getint ( FILE fp,
int *  x 
)

int getint64 ( FILE fp,
AR_INT_64 x 
)

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().

int getnewline ( FILE fp  ) 

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(), and printf().

Referenced by ieeetest32_1t().

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(), and printf().

Referenced by ieeetest32_2cmp(), and ieeetest32_2t().

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 
)

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(), and printf().

Referenced by ieeetest64_1t().

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(), and printf().

Referenced by ieeetest64_2cmp(), and ieeetest64_2t().

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(), printf(), and AR_CPLX_IEEE_64::real.

Referenced by ieeetest64_2c().

int ieeeok32 ( AR_IEEE_32 ans,
AR_IEEE_32 res,
int  ansflags,
int  resflags 
)

int ieeeok64 ( AR_IEEE_64 ans,
AR_IEEE_64 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 double, drand48(), high, and printf().

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 drand48(), f, high, printf(), and UNUSED.

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 drand48(), high, and printf().

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 fclose(), fopen, fp, getieee32_1(), i, ieeeerr32_1(), ieeeok32(), op, printf(), and x.

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

Definition at line 1478 of file confidence.c.

References fclose(), fopen, fp, getieee32_2c(), i, ieeeerr32_2c(), ieeeok64(), op, printf(), x, and is::y.

Referenced by main().

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 
)

Definition at line 1550 of file confidence.c.

References fclose(), fopen, fp, getieee32_2(), i, ieeeerr32_2(), ieeeok32(), op, printf(), x, and is::y.

Referenced by main().

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

Definition at line 1449 of file confidence.c.

References fclose(), fopen, fp, getieee64_1(), i, ieeeerr64_1(), ieeeok64(), op, printf(), and x.

Referenced by main().

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 
)

Definition at line 1420 of file confidence.c.

References fclose(), fopen, fp, getieee64_2(), i, ieeeerr64_2(), ieeeok64(), op, printf(), x, and is::y.

Referenced by main().

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(), and printf().

Referenced by convtest64().

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().

int main ( int argc  ,
char **  argv 
)

Definition at line 2389 of file confidence.c.

int matherr (  ) 

misc_tests ( int *  failures  ) 

prcray128 ( AR_CRAY_128 x  ) 

prcray64 ( AR_CRAY_64 x  ) 

prieee32 ( AR_IEEE_32 x  ) 

prieee64 ( AR_IEEE_64 x  ) 

print64 ( AR_INT_64 x  ) 

t_index (  ) 

t_scan (  ) 

t_verify (  ) 

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().

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 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 2005/10/21 19:00:00 marcel 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.


Generated on Wed Apr 8 14:24:11 2009 for Open64 by  doxygen 1.5.6