Blame thirdparty/superlu/SuperLU_4.1/TESTING/MATGEN/f2c.h
|
kusano |
7d535a |
/* f2c.h -- Standard Fortran to C header file */
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
/** barf [ba:rf] 2. "He suggested using FORTRAN, and everybody barfed."
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
- From The Shogakukan DICTIONARY OF NEW ENGLISH (Second edition) */
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#include "slu_Cnames.h"
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#ifndef F2C_INCLUDE
|
|
kusano |
7d535a |
#define F2C_INCLUDE
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#if 0
|
|
kusano |
7d535a |
typedef long int integer; /* 64 on 64-bit machine */
|
|
kusano |
7d535a |
typedef long int logical;
|
|
kusano |
7d535a |
#endif
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
typedef int integer;
|
|
kusano |
7d535a |
typedef int logical;
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
typedef char *address;
|
|
kusano |
7d535a |
typedef short int shortint;
|
|
kusano |
7d535a |
typedef float real;
|
|
kusano |
7d535a |
typedef double doublereal;
|
|
kusano |
7d535a |
typedef struct { real r, i; } complex;
|
|
kusano |
7d535a |
typedef struct { doublereal r, i; } doublecomplex;
|
|
kusano |
7d535a |
typedef short int shortlogical;
|
|
kusano |
7d535a |
typedef char logical1;
|
|
kusano |
7d535a |
typedef char integer1;
|
|
kusano |
7d535a |
/* typedef long long longint; */ /* system-dependent */
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define TRUE_ (1)
|
|
kusano |
7d535a |
#define FALSE_ (0)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
/* Extern is for use with -E */
|
|
kusano |
7d535a |
#ifndef Extern
|
|
kusano |
7d535a |
#define Extern extern
|
|
kusano |
7d535a |
#endif
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define abs(x) ((x) >= 0 ? (x) : -(x))
|
|
kusano |
7d535a |
#define dabs(x) (doublereal)abs(x)
|
|
kusano |
7d535a |
#define min(a,b) ((a) <= (b) ? (a) : (b))
|
|
kusano |
7d535a |
#define max(a,b) ((a) >= (b) ? (a) : (b))
|
|
kusano |
7d535a |
#define dmin(a,b) (doublereal)min(a,b)
|
|
kusano |
7d535a |
#define dmax(a,b) (doublereal)max(a,b)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#define VOID void
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#endif
|