Merge pull request #3549 from martin-frbg/issue3543

Annotate LAPACKE_lsame with attribute const for GCC(+compatible)
This commit is contained in:
Martin Kroeker 2022-02-26 21:49:05 +01:00 committed by GitHub
commit 10b0428b2c
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,