Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Apr 27, 2024
1 parent 36ad267 commit 0d9790c
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion include/stdlib/blas/base/dswap.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extern "C" {
/**
* Interchanges two double-precision floating-point vectors.
*/
void c_dswap( const CBLAS_INT N, double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY );
void API_SUFFIX(c_dswap)( const CBLAS_INT N, double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY );

#ifdef __cplusplus
}
Expand Down
2 changes: 1 addition & 1 deletion include/stdlib/blas/base/dswap_cblas.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extern "C" {
/**
* Interchanges two double-precision floating-point vectors.
*/
void cblas_dswap( const CBLAS_INT N, double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY );
void API_SUFFIX(cblas_dswap)( const CBLAS_INT N, double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY );

#ifdef __cplusplus
}
Expand Down
2 changes: 1 addition & 1 deletion include/stdlib/blas/base/dswap_fortran.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extern "C" {
/**
* Interchanges two double-precision floating-point vectors.
*/
void dswap( const int *, double *, const int *, double *, const int * );
void dswap( const CBLAS_INT *, double *, const CBLAS_INT *, double *, const CBLAS_INT * );

#ifdef __cplusplus
}
Expand Down
3 changes: 2 additions & 1 deletion src/addon.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@


#include "stdlib/blas/base/dswap.h"
#include "stdlib/blas/base/shared.h"
#include "stdlib/napi/export.h"
#include "stdlib/napi/argv.h"
#include "stdlib/napi/argv_int64.h"
Expand All @@ -39,7 +40,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N, strideY, argv, 3 );
c_dswap( N, X, strideX, Y, strideY );
API_SUFFIX(c_dswap)( N, X, strideX, Y, strideY );
return NULL;
}

Expand Down
2 changes: 1 addition & 1 deletion src/dswap.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* @param Y second input array
* @param strideY Y stride length
*/
void c_dswap( const CBLAS_INT N, double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY ) {
void API_SUFFIX(c_dswap)( const CBLAS_INT N, double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY ) {
double tmp;
CBLAS_INT ix;
CBLAS_INT iy;
Expand Down
4 changes: 2 additions & 2 deletions src/dswap_cblas.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
* @param Y second input array
* @param strideY Y stride length
*/
void c_dswap( const CBLAS_INT N, double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY ) {
cblas_dswap( N, X, strideX, Y, strideY );
void API_SUFFIX(c_dswap)( const CBLAS_INT N, double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY ) {
API_SUFFIX(cblas_dswap)( N, X, strideX, Y, strideY );
}
2 changes: 1 addition & 1 deletion src/dswap_f.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
* @param Y second input array
* @param strideY Y stride length
*/
void c_dswap( const CBLAS_INT N, double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY ) {
void API_SUFFIX(c_dswap)( const CBLAS_INT N, double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY ) {
dswap( &N, X, &strideX, Y, &strideY );
}

0 comments on commit 0d9790c

Please sign in to comment.