diff options
Diffstat (limited to 'Tests/FindBLAS/Test/main.c')
-rw-r--r-- | Tests/FindBLAS/Test/main.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Tests/FindBLAS/Test/main.c b/Tests/FindBLAS/Test/main.c index 8e58559..4fc9fe4 100644 --- a/Tests/FindBLAS/Test/main.c +++ b/Tests/FindBLAS/Test/main.c @@ -1,7 +1,14 @@ #include <assert.h> +#include <stdint.h> #include <string.h> -typedef int blas_int; +#if BLA_SIZEOF_INTEGER == 4 +typedef int32_t blas_int; +#elif BLA_SIZEOF_INTEGER == 8 +typedef int64_t blas_int; +#else +# error BLA_SIZEOF_INTEGER is not declared! +#endif // declare what parts of the blas C-API we need void dswap_(blas_int* N, double* X, blas_int* incX, double* Y, blas_int* incY); |