Annotate LAPACKE_lsame with the const attribute for GCC and compatible compilers

This commit is contained in:
Martin Kroeker 2022-02-26 19:27:34 +01:00 committed by GitHub
parent ab304cca69
commit 1c1ffb0591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -67,7 +67,11 @@ extern "C" {
void LAPACKE_xerbla( const char *name, lapack_int info );
/* Compare two chars (case-insensitive) */
lapack_logical LAPACKE_lsame( char ca, char cb );
lapack_logical LAPACKE_lsame( char ca, char cb )
#if defined __GNUC__
__attribute__((const))
#endif
;
/* Functions to convert column-major to row-major 2d arrays and vice versa. */
void LAPACKE_cgb_trans( int matrix_layout, lapack_int m, lapack_int n,