File tree Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -81,15 +81,26 @@ extern "C" {
81
81
82
82
/*----------------------------------------------------------------------------*/
83
83
#ifndef lapack_int
84
- #define lapack_int int32_t
84
+ #if defined(LAPACK_ILP64)
85
+ #define lapack_int int64_t
86
+ #else
87
+ #define lapack_int int32_t
88
+ #endif
85
89
#endif
86
90
91
+ /*
92
+ * Integer format string
93
+ */
87
94
#ifndef LAPACK_IFMT
88
- #define LAPACK_IFMT PRId32
95
+ #if defined(LAPACK_ILP64)
96
+ #define LAPACK_IFMT PRId64
97
+ #else
98
+ #define LAPACK_IFMT PRId32
99
+ #endif
89
100
#endif
90
101
91
102
#ifndef lapack_logical
92
- #define lapack_logical lapack_int
103
+ #define lapack_logical lapack_int
93
104
#endif
94
105
95
106
/* f2c, hence clapack and MacOS Accelerate, returns double instead of float
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ extern "C" {
46
46
47
47
#ifndef lapack_int
48
48
#if defined(LAPACK_ILP64)
49
- #define lapack_int int64_t
49
+ #define lapack_int int64_t
50
50
#else
51
- #define lapack_int int32_t
51
+ #define lapack_int int32_t
52
52
#endif
53
53
#endif
54
54
@@ -57,14 +57,14 @@ extern "C" {
57
57
*/
58
58
#ifndef LAPACK_IFMT
59
59
#if defined(LAPACK_ILP64)
60
- #define LAPACK_IFMT PRId64
60
+ #define LAPACK_IFMT PRId64
61
61
#else
62
- #define LAPACK_IFMT PRId32
62
+ #define LAPACK_IFMT PRId32
63
63
#endif
64
64
#endif
65
65
66
66
#ifndef lapack_logical
67
- #define lapack_logical lapack_int
67
+ #define lapack_logical lapack_int
68
68
#endif
69
69
70
70
#ifndef LAPACK_COMPLEX_CUSTOM
You can’t perform that action at this time.
0 commit comments