Skip to content

Commit 96f2299

Browse files
committed
feat: add support for specifying integer size
1 parent d9dfc21 commit 96f2299

File tree

7 files changed

+63
-23
lines changed

7 files changed

+63
-23
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#ifndef SROT_H
2323
#define SROT_H
2424

25+
#include "stdlib/blas/base/shared.h"
26+
2527
/*
2628
* If C++, prevent name mangling so that the compiler emits a binary file having undecorated names, thus mirroring the behavior of a C compiler.
2729
*/
@@ -32,7 +34,7 @@ extern "C" {
3234
/**
3335
* Applies a plane rotation.
3436
*/
35-
void c_srot( const int N, float *X, const int strideX, float *Y, const int strideY, const float c, const float s );
37+
void API_SUFFIX(c_srot)( const CBLAS_INT N, float *X, const CBLAS_INT strideX, float *Y, const CBLAS_INT strideY, const float c, const float s );
3638

3739
#ifdef __cplusplus
3840
}

lib/node_modules/@stdlib/blas/base/srot/include/stdlib/blas/base/srot_cblas.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#ifndef SROT_CBLAS_H
2323
#define SROT_CBLAS_H
2424

25+
#include "stdlib/blas/base/shared.h"
26+
2527
/*
2628
* If C++, prevent name mangling so that the compiler emits a binary file having undecorated names, thus mirroring the behavior of a C compiler.
2729
*/
@@ -32,7 +34,7 @@ extern "C" {
3234
/**
3335
* Applies a plane rotation.
3436
*/
35-
void cblas_srot( const int N, float *X, const int strideX, float *Y, const int strideY, const float c, const float s );
37+
void API_SUFFIX(cblas_srot)( const CBLAS_INT N, float *X, const CBLAS_INT strideX, float *Y, const CBLAS_INT strideY, const float c, const float s );
3638

3739
#ifdef __cplusplus
3840
}

lib/node_modules/@stdlib/blas/base/srot/manifest.json

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"libraries": [],
4444
"libpath": [],
4545
"dependencies": [
46+
"@stdlib/blas/base/shared",
4647
"@stdlib/napi/export",
4748
"@stdlib/napi/argv",
4849
"@stdlib/napi/argv-int64",
@@ -63,7 +64,9 @@
6364
],
6465
"libraries": [],
6566
"libpath": [],
66-
"dependencies": []
67+
"dependencies": [
68+
"@stdlib/blas/base/shared"
69+
]
6770
},
6871
{
6972
"task": "examples",
@@ -78,7 +81,9 @@
7881
],
7982
"libraries": [],
8083
"libpath": [],
81-
"dependencies": []
84+
"dependencies": [
85+
"@stdlib/blas/base/shared"
86+
]
8287
},
8388

8489
{
@@ -98,6 +103,7 @@
98103
],
99104
"libpath": [],
100105
"dependencies": [
106+
"@stdlib/blas/base/shared",
101107
"@stdlib/napi/export",
102108
"@stdlib/napi/argv",
103109
"@stdlib/napi/argv-int64",
@@ -121,7 +127,9 @@
121127
"-lpthread"
122128
],
123129
"libpath": [],
124-
"dependencies": []
130+
"dependencies": [
131+
"@stdlib/blas/base/shared"
132+
]
125133
},
126134
{
127135
"task": "examples",
@@ -139,7 +147,9 @@
139147
"-lpthread"
140148
],
141149
"libpath": [],
142-
"dependencies": []
150+
"dependencies": [
151+
"@stdlib/blas/base/shared"
152+
]
143153
},
144154

145155
{
@@ -157,6 +167,7 @@
157167
"libraries": [],
158168
"libpath": [],
159169
"dependencies": [
170+
"@stdlib/blas/base/shared",
160171
"@stdlib/napi/export",
161172
"@stdlib/napi/argv",
162173
"@stdlib/napi/argv-int64",
@@ -177,7 +188,9 @@
177188
],
178189
"libraries": [],
179190
"libpath": [],
180-
"dependencies": []
191+
"dependencies": [
192+
"@stdlib/blas/base/shared"
193+
]
181194
},
182195
{
183196
"task": "examples",
@@ -192,7 +205,9 @@
192205
],
193206
"libraries": [],
194207
"libpath": [],
195-
"dependencies": []
208+
"dependencies": [
209+
"@stdlib/blas/base/shared"
210+
]
196211
},
197212

198213
{
@@ -211,6 +226,7 @@
211226
],
212227
"libpath": [],
213228
"dependencies": [
229+
"@stdlib/blas/base/shared",
214230
"@stdlib/napi/export",
215231
"@stdlib/napi/argv",
216232
"@stdlib/napi/argv-int64",
@@ -233,7 +249,9 @@
233249
"-lblas"
234250
],
235251
"libpath": [],
236-
"dependencies": []
252+
"dependencies": [
253+
"@stdlib/blas/base/shared"
254+
]
237255
},
238256
{
239257
"task": "examples",
@@ -250,7 +268,9 @@
250268
"-lblas"
251269
],
252270
"libpath": [],
253-
"dependencies": []
271+
"dependencies": [
272+
"@stdlib/blas/base/shared"
273+
]
254274
},
255275

256276
{
@@ -270,6 +290,7 @@
270290
],
271291
"libpath": [],
272292
"dependencies": [
293+
"@stdlib/blas/base/shared",
273294
"@stdlib/napi/export",
274295
"@stdlib/napi/argv",
275296
"@stdlib/napi/argv-int64",
@@ -293,7 +314,9 @@
293314
"-lpthread"
294315
],
295316
"libpath": [],
296-
"dependencies": []
317+
"dependencies": [
318+
"@stdlib/blas/base/shared"
319+
]
297320
},
298321
{
299322
"task": "examples",
@@ -311,7 +334,9 @@
311334
"-lpthread"
312335
],
313336
"libpath": [],
314-
"dependencies": []
337+
"dependencies": [
338+
"@stdlib/blas/base/shared"
339+
]
315340
},
316341

317342
{
@@ -328,6 +353,7 @@
328353
"libraries": [],
329354
"libpath": [],
330355
"dependencies": [
356+
"@stdlib/blas/base/shared",
331357
"@stdlib/napi/export",
332358
"@stdlib/napi/argv",
333359
"@stdlib/napi/argv-int64",
@@ -348,7 +374,9 @@
348374
],
349375
"libraries": [],
350376
"libpath": [],
351-
"dependencies": []
377+
"dependencies": [
378+
"@stdlib/blas/base/shared"
379+
]
352380
},
353381
{
354382
"task": "examples",
@@ -363,7 +391,9 @@
363391
],
364392
"libraries": [],
365393
"libpath": [],
366-
"dependencies": []
394+
"dependencies": [
395+
"@stdlib/blas/base/shared"
396+
]
367397
},
368398

369399
{
@@ -379,7 +409,9 @@
379409
],
380410
"libraries": [],
381411
"libpath": [],
382-
"dependencies": []
412+
"dependencies": [
413+
"@stdlib/blas/base/shared"
414+
]
383415
}
384416
]
385417
}

lib/node_modules/@stdlib/blas/base/srot/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/srot.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"
@@ -41,7 +42,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
4142
STDLIB_NAPI_ARGV_FLOAT( env, s, argv, 6 );
4243
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, X, N, strideX, argv, 1 );
4344
STDLIB_NAPI_ARGV_STRIDED_FLOAT32ARRAY( env, Y, N, strideY, argv, 3 );
44-
c_srot( N, X, strideX, Y, strideY, c, s );
45+
API_SUFFIX(c_srot)( N, X, strideX, Y, strideY, c, s );
4546
return NULL;
4647
}
4748

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
#include "stdlib/blas/base/srot.h"
20+
#include "stdlib/blas/base/shared.h"
2021

2122
/**
2223
* Applies a plane rotation.
@@ -29,11 +30,11 @@
2930
* @param c cosine of the angle of rotation
3031
* @param s sine of the angle of rotation
3132
*/
32-
void c_srot( const int N, float *X, const int strideX, float *Y, const int strideY, const float c, const float s ) {
33+
void API_SUFFIX(c_srot)( const CBLAS_INT N, float *X, const CBLAS_INT strideX, float *Y, const CBLAS_INT strideY, const float c, const float s ) {
3334
float tmp;
34-
int ix;
35-
int iy;
36-
int i;
35+
CBLAS_INT ix;
36+
CBLAS_INT iy;
37+
CBLAS_INT i;
3738

3839
if ( N <= 0 ) {
3940
return;

lib/node_modules/@stdlib/blas/base/srot/src/srot_cblas.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include "stdlib/blas/base/srot.h"
2020
#include "stdlib/blas/base/srot_cblas.h"
21+
#include "stdlib/blas/base/shared.h"
2122

2223
/**
2324
* Applies a plane rotation.
@@ -30,6 +31,6 @@
3031
* @param c cosine of the angle of rotation
3132
* @param s sine of the angle of rotation
3233
*/
33-
void c_srot( const int N, float *X, const int strideX, float *Y, const int strideY, const float c, const float s ) {
34-
cblas_srot( N, X, strideX, Y, strideY, c, s );
34+
void API_SUFFIX(c_srot)( const CBLAS_INT N, float *X, const CBLAS_INT strideX, float *Y, const CBLAS_INT strideY, const float c, const float s ) {
35+
API_SUFFIX(cblas_srot)( N, X, strideX, Y, strideY, c, s );
3536
}

lib/node_modules/@stdlib/blas/base/srot/src/srot_f.c

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

1919
#include "stdlib/blas/base/srot.h"
2020
#include "stdlib/blas/base/srot_fortran.h"
21+
#include "stdlib/blas/base/shared.h"
2122

2223
/**
2324
* Applies a plane rotation.
@@ -30,6 +31,6 @@
3031
* @param c cosine of the angle of rotation
3132
* @param s sine of the angle of rotation
3233
*/
33-
void c_srot( const int N, float *X, const int strideX, float *Y, const int strideY, const float c, const float s ) {
34+
void API_SUFFIX(c_srot)( const CBLAS_INT N, float *X, const CBLAS_INT strideX, float *Y, const CBLAS_INT strideY, const float c, const float s ) {
3435
srot( &N, X, &strideX, Y, &strideY, &c, &s );
3536
}

0 commit comments

Comments
 (0)