From 8e7eb4c483a3656f8d678a5b8f9e027fd91df4e6 Mon Sep 17 00:00:00 2001 From: Ian Henriksen Date: Tue, 1 Mar 2016 12:23:05 -0700 Subject: [PATCH] Set default integer size for Fortran and C blas interfaces to match the standard cblas interface more closely. --- frame/include/bli_config_macro_defs.h | 4 ++-- frame/include/bli_type_defs.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frame/include/bli_config_macro_defs.h b/frame/include/bli_config_macro_defs.h index 3f33c7e66f..641afbd20c 100644 --- a/frame/include/bli_config_macro_defs.h +++ b/frame/include/bli_config_macro_defs.h @@ -152,10 +152,10 @@ // leading dimensions (ie: column strides) within the BLAS compatibility layer. // A value of 32 results in the compatibility layer using 32-bit signed integers // while 64 results in 64-bit integers. Any other value results in use of the -// C99 type "long int". Note that this ONLY affects integers used within the +// C99 type "int". Note that this ONLY affects integers used within the // BLAS compatibility layer. #ifndef BLIS_BLAS2BLIS_INT_TYPE_SIZE -#define BLIS_BLAS2BLIS_INT_TYPE_SIZE 64 +#define BLIS_BLAS2BLIS_INT_TYPE_SIZE 32 #endif diff --git a/frame/include/bli_type_defs.h b/frame/include/bli_type_defs.h index 6c95402d1e..e0486caabf 100644 --- a/frame/include/bli_type_defs.h +++ b/frame/include/bli_type_defs.h @@ -165,7 +165,7 @@ typedef int32_t f77_int; #elif BLIS_BLAS2BLIS_INT_TYPE_SIZE == 64 typedef int64_t f77_int; #else -typedef long int f77_int; +typedef int f77_int; #endif typedef char f77_char;