diff options
author | Igor S. Gerasimov <i.s.ger@ya.ru> | 2021-09-04 02:43:08 (GMT) |
---|---|---|
committer | Igor S. Gerasimov <i.s.ger@ya.ru> | 2021-10-05 14:41:36 (GMT) |
commit | 2cd94f3e57e843fa392f3c50d2c141c938b48112 (patch) | |
tree | ff4b7c4aa27112957b79abeac01dd1a35600f4f0 /Tests/FindBLAS/Test/main.c | |
parent | 9b69307b56376e2bd0a82539562f9e59a808194b (diff) | |
download | CMake-2cd94f3e57e843fa392f3c50d2c141c938b48112.zip CMake-2cd94f3e57e843fa392f3c50d2c141c938b48112.tar.gz CMake-2cd94f3e57e843fa392f3c50d2c141c938b48112.tar.bz2 |
Find{BLAS,LAPACK}: Specify integer type in tests
Diffstat (limited to 'Tests/FindBLAS/Test/main.c')
-rw-r--r-- | Tests/FindBLAS/Test/main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Tests/FindBLAS/Test/main.c b/Tests/FindBLAS/Test/main.c index e61b02c..8e58559 100644 --- a/Tests/FindBLAS/Test/main.c +++ b/Tests/FindBLAS/Test/main.c @@ -1,16 +1,18 @@ #include <assert.h> #include <string.h> +typedef int blas_int; + // declare what parts of the blas C-API we need -void dswap_(int* N, double* X, int* incX, double* Y, int* incY); +void dswap_(blas_int* N, double* X, blas_int* incX, double* Y, blas_int* incY); int main() { double x[4] = { 1, 2, 3, 4 }; double y[4] = { 8, 7, 7, 6 }; - int N = 4; - int incX = 1; - int incY = 1; + blas_int N = 4; + blas_int incX = 1; + blas_int incY = 1; dswap_(&N, x, &incX, y, &incY); return 0; } |