| @@ -51,7 +51,7 @@ float LAPACKE_clansy( int matrix_order, char norm, char uplo, lapack_int n, | |||||
| #endif | #endif | ||||
| /* Allocate memory for working array(s) */ | /* Allocate memory for working array(s) */ | ||||
| if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) || | if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) || | ||||
| LAPACKE_lsame( norm, '0' ) ) { | |||||
| LAPACKE_lsame( norm, 'O' ) ) { | |||||
| work = (float*)LAPACKE_malloc( sizeof(float) * MAX(1,n) ); | work = (float*)LAPACKE_malloc( sizeof(float) * MAX(1,n) ); | ||||
| if( work == NULL ) { | if( work == NULL ) { | ||||
| info = LAPACK_WORK_MEMORY_ERROR; | info = LAPACK_WORK_MEMORY_ERROR; | ||||
| @@ -62,7 +62,7 @@ float LAPACKE_clansy( int matrix_order, char norm, char uplo, lapack_int n, | |||||
| res = LAPACKE_clansy_work( matrix_order, norm, uplo, n, a, lda, work ); | res = LAPACKE_clansy_work( matrix_order, norm, uplo, n, a, lda, work ); | ||||
| /* Release memory and exit */ | /* Release memory and exit */ | ||||
| if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) || | if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) || | ||||
| LAPACKE_lsame( norm, '0' ) ) { | |||||
| LAPACKE_lsame( norm, 'O' ) ) { | |||||
| LAPACKE_free( work ); | LAPACKE_free( work ); | ||||
| } | } | ||||
| exit_level_0: | exit_level_0: | ||||
| @@ -51,7 +51,7 @@ double LAPACKE_dlansy( int matrix_order, char norm, char uplo, lapack_int n, | |||||
| #endif | #endif | ||||
| /* Allocate memory for working array(s) */ | /* Allocate memory for working array(s) */ | ||||
| if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) || | if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) || | ||||
| LAPACKE_lsame( norm, '0' ) ) { | |||||
| LAPACKE_lsame( norm, 'O' ) ) { | |||||
| work = (double*)LAPACKE_malloc( sizeof(double) * MAX(1,n) ); | work = (double*)LAPACKE_malloc( sizeof(double) * MAX(1,n) ); | ||||
| if( work == NULL ) { | if( work == NULL ) { | ||||
| info = LAPACK_WORK_MEMORY_ERROR; | info = LAPACK_WORK_MEMORY_ERROR; | ||||
| @@ -62,7 +62,7 @@ double LAPACKE_dlansy( int matrix_order, char norm, char uplo, lapack_int n, | |||||
| res = LAPACKE_dlansy_work( matrix_order, norm, uplo, n, a, lda, work ); | res = LAPACKE_dlansy_work( matrix_order, norm, uplo, n, a, lda, work ); | ||||
| /* Release memory and exit */ | /* Release memory and exit */ | ||||
| if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) || | if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) || | ||||
| LAPACKE_lsame( norm, '0' ) ) { | |||||
| LAPACKE_lsame( norm, 'O' ) ) { | |||||
| LAPACKE_free( work ); | LAPACKE_free( work ); | ||||
| } | } | ||||
| exit_level_0: | exit_level_0: | ||||
| @@ -51,7 +51,7 @@ float LAPACKE_slansy( int matrix_order, char norm, char uplo, lapack_int n, | |||||
| #endif | #endif | ||||
| /* Allocate memory for working array(s) */ | /* Allocate memory for working array(s) */ | ||||
| if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) || | if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) || | ||||
| LAPACKE_lsame( norm, '0' ) ) { | |||||
| LAPACKE_lsame( norm, 'O' ) ) { | |||||
| work = (float*)LAPACKE_malloc( sizeof(float) * MAX(1,n) ); | work = (float*)LAPACKE_malloc( sizeof(float) * MAX(1,n) ); | ||||
| if( work == NULL ) { | if( work == NULL ) { | ||||
| info = LAPACK_WORK_MEMORY_ERROR; | info = LAPACK_WORK_MEMORY_ERROR; | ||||
| @@ -62,7 +62,7 @@ float LAPACKE_slansy( int matrix_order, char norm, char uplo, lapack_int n, | |||||
| res = LAPACKE_slansy_work( matrix_order, norm, uplo, n, a, lda, work ); | res = LAPACKE_slansy_work( matrix_order, norm, uplo, n, a, lda, work ); | ||||
| /* Release memory and exit */ | /* Release memory and exit */ | ||||
| if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) || | if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) || | ||||
| LAPACKE_lsame( norm, '0' ) ) { | |||||
| LAPACKE_lsame( norm, 'O' ) ) { | |||||
| LAPACKE_free( work ); | LAPACKE_free( work ); | ||||
| } | } | ||||
| exit_level_0: | exit_level_0: | ||||
| @@ -51,7 +51,7 @@ double LAPACKE_zlansy( int matrix_order, char norm, char uplo, lapack_int n, | |||||
| #endif | #endif | ||||
| /* Allocate memory for working array(s) */ | /* Allocate memory for working array(s) */ | ||||
| if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) || | if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) || | ||||
| LAPACKE_lsame( norm, '0' ) ) { | |||||
| LAPACKE_lsame( norm, 'O' ) ) { | |||||
| work = (double*)LAPACKE_malloc( sizeof(double) * MAX(1,n) ); | work = (double*)LAPACKE_malloc( sizeof(double) * MAX(1,n) ); | ||||
| if( work == NULL ) { | if( work == NULL ) { | ||||
| info = LAPACK_WORK_MEMORY_ERROR; | info = LAPACK_WORK_MEMORY_ERROR; | ||||
| @@ -62,7 +62,7 @@ double LAPACKE_zlansy( int matrix_order, char norm, char uplo, lapack_int n, | |||||
| res = LAPACKE_zlansy_work( matrix_order, norm, uplo, n, a, lda, work ); | res = LAPACKE_zlansy_work( matrix_order, norm, uplo, n, a, lda, work ); | ||||
| /* Release memory and exit */ | /* Release memory and exit */ | ||||
| if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) || | if( LAPACKE_lsame( norm, 'i' ) || LAPACKE_lsame( norm, '1' ) || | ||||
| LAPACKE_lsame( norm, '0' ) ) { | |||||
| LAPACKE_lsame( norm, 'O' ) ) { | |||||
| LAPACKE_free( work ); | LAPACKE_free( work ); | ||||
| } | } | ||||
| exit_level_0: | exit_level_0: | ||||