Skip to content

Commit 3da4848

Browse files
committed
refactor: support building with API suffix
1 parent 2efa65e commit 3da4848

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

lib/node_modules/@stdlib/blas/base/daxpy/include/stdlib/blas/base/daxpy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extern "C" {
3434
/**
3535
* Multiplies a vector `X` by a constant and adds the result to `Y`.
3636
*/
37-
void c_daxpy( const CBLAS_INT N, const double alpha, const double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY );
37+
void API_SUFFIX(c_daxpy)( const CBLAS_INT N, const double alpha, const double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY );
3838

3939
#ifdef __cplusplus
4040
}

lib/node_modules/@stdlib/blas/base/daxpy/include/stdlib/blas/base/daxpy_cblas.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extern "C" {
3434
/**
3535
* Multiplies a vector `X` by a constant and adds the result to `Y`.
3636
*/
37-
void cblas_daxpy( const CBLAS_INT N, const double alpha, const double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY );
37+
void API_SUFFIX(cblas_daxpy)( const CBLAS_INT N, const double alpha, const double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY );
3838

3939
#ifdef __cplusplus
4040
}

lib/node_modules/@stdlib/blas/base/daxpy/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/daxpy.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_double.h"
@@ -40,7 +41,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
4041
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 5 );
4142
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 2 );
4243
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N, strideY, argv, 4 );
43-
c_daxpy( N, alpha, X, strideX, Y, strideY );
44+
API_SUFFIX(c_daxpy)( N, alpha, X, strideX, Y, strideY );
4445
return NULL;
4546
}
4647

lib/node_modules/@stdlib/blas/base/daxpy/src/daxpy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* @param Y output array
3030
* @param strideY Y stride length
3131
*/
32-
void c_daxpy( const CBLAS_INT N, const double alpha, const double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY ) {
32+
void API_SUFFIX(c_daxpy)( const CBLAS_INT N, const double alpha, const double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY ) {
3333
CBLAS_INT ix;
3434
CBLAS_INT iy;
3535
CBLAS_INT i;

lib/node_modules/@stdlib/blas/base/daxpy/src/daxpy_cblas.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
* @param Y output array
3131
* @param strideY Y stride length
3232
*/
33-
void c_daxpy( const CBLAS_INT N, const double alpha, const double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY ) {
34-
cblas_daxpy( N, alpha, X, strideX, Y, strideY );
33+
void API_SUFFIX(c_daxpy)( const CBLAS_INT N, const double alpha, const double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY ) {
34+
API_SUFFIX(cblas_daxpy)( N, alpha, X, strideX, Y, strideY );
3535
}

lib/node_modules/@stdlib/blas/base/daxpy/src/daxpy_f.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
* @param Y output array
3131
* @param strideY Y stride length
3232
*/
33-
void c_daxpy( const CBLAS_INT N, const double alpha, const double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY ) {
33+
void API_SUFFIX(c_daxpy)( const CBLAS_INT N, const double alpha, const double *X, const CBLAS_INT strideX, double *Y, const CBLAS_INT strideY ) {
3434
daxpy( &N, &alpha, X, &strideX, Y, &strideY );
3535
}

0 commit comments

Comments
 (0)