Browse Source

Annotate LAPACKE_lsame with the const attribute for GCC and compatible compilers

tags/v0.3.21
Martin Kroeker GitHub 4 years ago
parent
commit
1c1ffb0591
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      lapack-netlib/LAPACKE/include/lapacke_utils.h

+ 5
- 1
lapack-netlib/LAPACKE/include/lapacke_utils.h 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,


Loading…
Cancel
Save