summaryrefslogtreecommitdiff
path: root/CBLAS/include
diff options
context:
space:
mode:
authorjulie <julielangou@users.noreply.github.com>2015-01-10 05:57:14 +0000
committerjulie <julielangou@users.noreply.github.com>2015-01-10 05:57:14 +0000
commit83fc0b48afd1f9a6d6f8dddb16e69ed7ed0e7242 (patch)
tree2b720245e2149022b751424cb59772c176880bec /CBLAS/include
parent6d9b1a2737bc9c7d59422738bc3d99b922f95e36 (diff)
downloadlapack-83fc0b48afd1f9a6d6f8dddb16e69ed7ed0e7242.tar.gz
lapack-83fc0b48afd1f9a6d6f8dddb16e69ed7ed0e7242.tar.bz2
lapack-83fc0b48afd1f9a6d6f8dddb16e69ed7ed0e7242.zip
Applied Jakub's CBLAS patch sent on Jan 9th
Netlib CBLAS can be put on top of BLAS with 64-bit integers. It can be accomplished using the flag "WeirdNEC" :) It basically redefines int to long, but at the same time, it had multiple bugs.
Diffstat (limited to 'CBLAS/include')
-rw-r--r--CBLAS/include/cblas.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/CBLAS/include/cblas.h b/CBLAS/include/cblas.h
index 8aa4d2f6..7523a779 100644
--- a/CBLAS/include/cblas.h
+++ b/CBLAS/include/cblas.h
@@ -10,7 +10,11 @@ extern "C" { /* Assume C declarations for C++ */
/*
* Enumerated and derived types
*/
-#define CBLAS_INDEX size_t /* this may vary between platforms */
+#ifdef WeirdNEC
+ #define CBLAS_INDEX long
+#else
+ #define CBLAS_INDEX int
+#endif
typedef enum {CblasRowMajor=101, CblasColMajor=102} CBLAS_LAYOUT;
typedef enum {CblasNoTrans=111, CblasTrans=112, CblasConjTrans=113} CBLAS_TRANSPOSE;