Skip to content

Commit d5ea3c4

Browse files
committed
Auto-generated commit
1 parent 4cb180c commit d5ea3c4

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

include/stdlib/blas/base/cswap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extern "C" {
3434
/**
3535
* Interchanges two complex single-precision floating-point vectors.
3636
*/
37-
void c_cswap( const CBLAS_INT N, void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY );
37+
void API_SUFFIX(c_cswap)( const CBLAS_INT N, void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY );
3838

3939
#ifdef __cplusplus
4040
}

include/stdlib/blas/base/cswap_cblas.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extern "C" {
3434
/**
3535
* Interchanges two complex single-precision floating-point vectors.
3636
*/
37-
void cblas_cswap( const CBLAS_INT N, void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY );
37+
void API_SUFFIX(cblas_cswap)( const CBLAS_INT N, void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY );
3838

3939
#ifdef __cplusplus
4040
}

include/stdlib/blas/base/cswap_fortran.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extern "C" {
3232
/**
3333
* Interchanges two complex single-precision floating-point vectors.
3434
*/
35-
void cswap( const int *, void *, const int *, void *, const int * );
35+
void cswap( const CBLAS_INT *, void *, const CBLAS_INT *, void *, const CBLAS_INT * );
3636

3737
#ifdef __cplusplus
3838
}

src/addon.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
#include "stdlib/blas/base/cswap.h"
20+
#include "stdlib/blas/base/shared.h"
2021
#include "stdlib/napi/export.h"
2122
#include "stdlib/napi/argv.h"
2223
#include "stdlib/napi/argv_int64.h"
@@ -38,7 +39,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
3839
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
3940
STDLIB_NAPI_ARGV_STRIDED_COMPLEX64ARRAY( env, X, N, strideX, argv, 1 );
4041
STDLIB_NAPI_ARGV_STRIDED_COMPLEX64ARRAY( env, Y, N, strideY, argv, 3 );
41-
c_cswap( N, (void *)X, strideX, (void *)Y, strideY );
42+
API_SUFFIX(c_cswap)( N, (void *)X, strideX, (void *)Y, strideY );
4243
return NULL;
4344
}
4445

src/cswap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* @param Y second input array
2929
* @param strideY Y stride length
3030
*/
31-
void c_cswap( const CBLAS_INT N, void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY ) {
31+
void API_SUFFIX(c_cswap)( const CBLAS_INT N, void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY ) {
3232
float *x = (float *)X;
3333
float *y = (float *)Y;
3434
float tmp;

src/cswap_cblas.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
* @param Y second input array
3030
* @param strideY Y stride length
3131
*/
32-
void c_cswap( const CBLAS_INT N, void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY ) {
33-
cblas_cswap( N, X, strideX, Y, strideY );
32+
void API_SUFFIX(c_cswap)( const CBLAS_INT N, void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY ) {
33+
API_SUFFIX(cblas_cswap)( N, X, strideX, Y, strideY );
3434
}

src/cswap_f.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
* @param Y second input array
3030
* @param strideY Y stride length
3131
*/
32-
void c_cswap( const CBLAS_INT N, void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY ) {
32+
void API_SUFFIX(c_cswap)( const CBLAS_INT N, void *X, const CBLAS_INT strideX, void *Y, const CBLAS_INT strideY ) {
3333
cswap( &N, X, &strideX, Y, &strideY );
3434
}

0 commit comments

Comments
 (0)