-
Notifications
You must be signed in to change notification settings - Fork 124
/
arpackdef.h.in
44 lines (40 loc) · 1015 Bytes
/
arpackdef.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef __ARPACKDEF_H__
#define __ARPACKDEF_H__
/* arpackdef.h must be included only by C/C++, not by F77/F90. */
#define INTERFACE64 @INTERFACE64@
#if INTERFACE64
#include <stdint.h> /* Include this header for int64_t, uint64_t definition. */
#define a_int int64_t
#define a_uint uint64_t
#else
#define a_int int
#define a_uint unsigned int
#endif
#if !defined(__INTEL_LLVM_COMPILER) && defined(_MSC_VER)
#ifndef _CRT_USE_C_COMPLEX_H
#define _CRT_USE_C_COMPLEX_H
#include <complex.h>
#undef I
#undef _CRT_USE_C_COMPLEX_H
#else
#include <complex.h>
#endif
#define a_fcomplex _Fcomplex
#define a_dcomplex _Dcomplex
#ifndef CMPLXF
#define CMPLXF(r,i) _FCbuild(r,i)
#endif
#ifndef CMPLX
#define CMPLX(r,i) _Cbuild(r,i)
#endif
#else
#ifndef CMPLXF
#define CMPLXF(r,i) ((float _Complex)((float)(r) + _Complex_I * (float)(i)))
#endif
#ifndef CMPLX
#define CMPLX(r,i) ((double _Complex)((double)(r) + _Complex_I * (double)(i)))
#endif
#define a_fcomplex float _Complex
#define a_dcomplex double _Complex
#endif
#endif