OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [newlib/] [libm/] [test/] [test.h] - Diff between revs 207 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 207 Rev 816
#define HAVE_FLOAT 1
#define HAVE_FLOAT 1
#define X(x) (char *)x
#define X(x) (char *)x
 
 
#include <_ansi.h>
#include <_ansi.h>
#include <math.h>
#include <math.h>
#include <float.h>
#include <float.h>
#include <ieeefp.h>
#include <ieeefp.h>
#include <stdio.h>
#include <stdio.h>
 
 
void checkf();
void checkf();
void enter();
void enter();
 
 
 
 
double translate_from();
double translate_from();
 
 
typedef struct
typedef struct
{
{
  long msw, lsw;
  long msw, lsw;
} question_struct_type;
} question_struct_type;
 
 
 
 
typedef struct
typedef struct
{
{
  char error_bit;
  char error_bit;
  char errno_val;
  char errno_val;
  char merror;
  char merror;
  int line;
  int line;
 
 
  question_struct_type qs[3];
  question_struct_type qs[3];
} one_line_type;
} one_line_type;
 
 
 
 
#define MVEC_START(x) one_line_type x[] =  {
#define MVEC_START(x) one_line_type x[] =  {
#define MVEC_END    0,};
#define MVEC_END    0,};
 
 
 
 
int _EXFUN(mag_of_error,(double, double));
int _EXFUN(mag_of_error,(double, double));
 
 
 
 
#define ERROR_PERFECT 20
#define ERROR_PERFECT 20
#define ERROR_FAIL -1
#define ERROR_FAIL -1
 
 
#define AAAA 15
#define AAAA 15
#define AAA 10
#define AAA 10
#define AA  6
#define AA  6
#define A   5
#define A   5
#define B   3
#define B   3
#define C   1 
#define C   1 
#define VECOPEN(x,f) \
#define VECOPEN(x,f) \
{\
{\
  char buffer[100];\
  char buffer[100];\
   sprintf(buffer,"%s_vec.c",x);\
   sprintf(buffer,"%s_vec.c",x);\
    f = fopen(buffer,"w");\
    f = fopen(buffer,"w");\
     fprintf(f,"#include \"test.h\"\n");\
     fprintf(f,"#include \"test.h\"\n");\
      fprintf(f," one_line_type %s_vec[] = {\n", x);\
      fprintf(f," one_line_type %s_vec[] = {\n", x);\
}
}
 
 
#define VECCLOSE(f,name,args)\
#define VECCLOSE(f,name,args)\
{\
{\
  fprintf(f,"0,};\n");      \
  fprintf(f,"0,};\n");      \
   fprintf(f,"test_%s(m)   {run_vector_1(m,%s_vec,(char *)(%s),\"%s\",\"%s\");   }      \n",\
   fprintf(f,"test_%s(m)   {run_vector_1(m,%s_vec,(char *)(%s),\"%s\",\"%s\");   }      \n",\
           name,\
           name,\
           name,name,name,args);\
           name,name,name,args);\
            fclose(f);\
            fclose(f);\
}
}
 
 
 
 
 
 
typedef struct
typedef struct
{
{
  int line;
  int line;
 
 
  char *string;
  char *string;
  double value;
  double value;
  int endscan;
  int endscan;
} double_type;
} double_type;
 
 
 
 
typedef struct {
typedef struct {
  long int value;
  long int value;
  char end;
  char end;
  char errno_val;
  char errno_val;
} int_scan_type;
} int_scan_type;
 
 
typedef struct
typedef struct
{
{
  int line;
  int line;
  int_scan_type octal;
  int_scan_type octal;
  int_scan_type decimal;
  int_scan_type decimal;
  int_scan_type hex;
  int_scan_type hex;
  int_scan_type normal;
  int_scan_type normal;
  int_scan_type alphabetical;
  int_scan_type alphabetical;
  char *string;
  char *string;
} int_type;
} int_type;
 
 
 
 
typedef struct
typedef struct
{
{
  int line;
  int line;
  double value;
  double value;
  char *estring;
  char *estring;
  int e1;
  int e1;
  int e2;
  int e2;
  int e3;
  int e3;
  char *fstring;
  char *fstring;
  int f1;
  int f1;
  int f2;
  int f2;
  int f3;
  int f3;
  char *gstring;
  char *gstring;
  int g1;
  int g1;
} ddouble_type;
} ddouble_type;
 
 
typedef struct
typedef struct
{
{
  int line;
  int line;
  double value;
  double value;
  char *result;
  char *result;
  char *format_string;
  char *format_string;
} sprint_double_type;
} sprint_double_type;
 
 
 
 
typedef struct
typedef struct
{
{
  int line;
  int line;
  int value;
  int value;
  char *result;
  char *result;
  char *format_string;
  char *format_string;
} sprint_int_type;
} sprint_int_type;
 
 
 
 
void _EXFUN(test_ieee,(void));
void _EXFUN(test_ieee,(void));
void _EXFUN(test_math2,(void));
void _EXFUN(test_math2,(void));
void _EXFUN(test_math,(void));
void _EXFUN(test_math,(void));
void _EXFUN(test_string,(void));
void _EXFUN(test_string,(void));
void _EXFUN(test_is,(void));
void _EXFUN(test_is,(void));
void _EXFUN(test_cvt,(void));
void _EXFUN(test_cvt,(void));
 
 
void _EXFUN(line,(int));
void _EXFUN(line,(int));
 
 
void _EXFUN(test_mok, (double, double, int));
void _EXFUN(test_mok, (double, double, int));
void _EXFUN(test_iok, (int, int));
void _EXFUN(test_iok, (int, int));
void _EXFUN(test_eok, (int, int));
void _EXFUN(test_eok, (int, int));
void _EXFUN(test_sok, (char *, char*));
void _EXFUN(test_sok, (char *, char*));
void _EXFUN(test_scok, (char *, char*, int));
void _EXFUN(test_scok, (char *, char*, int));
void _EXFUN(newfunc,(_CONST char *));
void _EXFUN(newfunc,(_CONST char *));
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.