summaryrefslogtreecommitdiff
path: root/numpy/linalg/lapack_lite/f2c.h
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2020-01-02 02:50:10 +0200
committerPauli Virtanen <pav@iki.fi>2020-01-14 00:19:50 +0200
commitd611d2e3722ea9ba4ae1a6e333a02ab8c4005f85 (patch)
treec5da148629e49f96e1ebcf793947d23e2f48c533 /numpy/linalg/lapack_lite/f2c.h
parent33d5be08046c2e8a3cbbd35f3c2367f925ee2bdc (diff)
downloadnumpy-d611d2e3722ea9ba4ae1a6e333a02ab8c4005f85.tar.gz
MAINT: linalg: use symbol suffix in fallback lapack_lite
When building the fallback lapack_lite library for numpy.linalg, add symbol suffix to the routines when using 64-bit integer indices. Adjust the lapack_lite generator script to also output a header file that renames the symbols. Moreover, also rename symbols from f2c.c, to be sure (because they have short and generic names that may clash). This avoids a name clash with BLAS/LAPACK names, which can cause problems in corner cases on platforms where inadvertent symbol overriding in dynamic libraries can occur.
Diffstat (limited to 'numpy/linalg/lapack_lite/f2c.h')
-rw-r--r--numpy/linalg/lapack_lite/f2c.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/linalg/lapack_lite/f2c.h b/numpy/linalg/lapack_lite/f2c.h
index 4462eaa74..d3fbfc177 100644
--- a/numpy/linalg/lapack_lite/f2c.h
+++ b/numpy/linalg/lapack_lite/f2c.h
@@ -11,6 +11,8 @@
#include "numpy/npy_common.h"
#include "npy_cblas.h"
+#include "lapack_lite_names.h"
+
typedef CBLAS_INT integer;
typedef char *address;
typedef short int shortint;
@@ -383,6 +385,9 @@ extern void z_log(doublecomplex *, doublecomplex *);
extern void z_sin(doublecomplex *, doublecomplex *);
extern void z_sqrt(doublecomplex *, doublecomplex *);
+extern double f__cabs(double, double);
+extern double f__cabsf(float, float);
+
#ifdef __cplusplus
}
#endif