Skip to content

Commit 5f03a9c

Browse files
committed
fix: update function names and fix buffer dtype
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 7536870 commit 5f03a9c

File tree

20 files changed

+163
-162
lines changed

20 files changed

+163
-162
lines changed

lib/node_modules/@stdlib/ndarray/base/every/include/stdlib/ndarray/base/every/macros/10d.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
const int64_t *shape = stdlib_ndarray_shape( x1 ); \
4747
const int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
4848
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
49-
bool *px2 = stdlib_ndarray_data( x2 ); \
49+
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
5050
int64_t d0x1; \
5151
int64_t d1x1; \
5252
int64_t d2x1; \
@@ -179,7 +179,7 @@
179179
const tin in1 = *(tin *)px1; \
180180
if ( !( expr ) ) { \
181181
*px2 = false; \
182-
return; \
182+
return 0; \
183183
} \
184184
} \
185185
STDLIB_NDARRAY_EVERY_10D_LOOP_EPILOGUE
@@ -203,7 +203,7 @@
203203
const tin x = *(tin *)px1; \
204204
if ( !( f( x ) ) ) { \
205205
*px2 = false; \
206-
return; \
206+
return 0; \
207207
} \
208208
} \
209209
STDLIB_NDARRAY_EVERY_10D_LOOP_EPILOGUE
@@ -229,7 +229,7 @@
229229
const tin x = *(tin *)px1; \
230230
if ( !( f( (fin)x ) ) ) { \
231231
*px2 = false; \
232-
return; \
232+
return 0; \
233233
} \
234234
} \
235235
STDLIB_NDARRAY_EVERY_10D_LOOP_EPILOGUE
@@ -257,7 +257,7 @@
257257
const tin x = *(tin *)px1; \
258258
if ( !( f( cin( x ) ) ) ) { \
259259
*px2 = false; \
260-
return; \
260+
return 0; \
261261
} \
262262
} \
263263
STDLIB_NDARRAY_EVERY_10D_LOOP_EPILOGUE

lib/node_modules/@stdlib/ndarray/base/every/include/stdlib/ndarray/base/every/macros/10d_blocked.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
#ifndef STDLIB_NDARRAY_BASE_EVERY_MACROS_10D_BLOCKED_H
2020
#define STDLIB_NDARRAY_BASE_EVERY_MACROS_10D_BLOCKED_H
2121

22-
#include "stdlib/ndarray/base/nullary/macros/constants.h"
23-
#include "stdlib/ndarray/base/nullary/internal/permute.h"
24-
#include "stdlib/ndarray/base/nullary/internal/range.h"
25-
#include "stdlib/ndarray/base/nullary/internal/sort2ins.h"
22+
#include "stdlib/ndarray/base/every/macros/constants.h"
23+
#include "stdlib/ndarray/base/every/internal/permute.h"
24+
#include "stdlib/ndarray/base/every/internal/range.h"
25+
#include "stdlib/ndarray/base/every/internal/sort2ins.h"
2626
#include "stdlib/ndarray/base/bytes_per_element.h"
2727
#include "stdlib/ndarray/ctor.h"
2828
#include <stdbool.h>
@@ -48,7 +48,7 @@
4848
#define STDLIB_NDARRAY_EVERY_10D_BLOCKED_LOOP_PREAMBLE \
4949
const struct ndarray *x1 = arrays[ 0 ]; \
5050
const struct ndarray *x2 = arrays[ 1 ]; \
51-
bool *px2 = stdlib_ndarray_data( x2 ); \
51+
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
5252
int64_t shape[10]; \
5353
int64_t sx1[10]; \
5454
int64_t idx[10]; \
@@ -110,11 +110,11 @@
110110
/* Copy strides to prevent mutation to the original ndarray: */ \
111111
memcpy( sx1, stdlib_ndarray_strides( x1 ), sizeof sx1 ); \
112112
/* Create a loop interchange index array for loop order permutation: */ \
113-
stdlib_ndarray_base_nullary_internal_range( 10, idx ); \
113+
stdlib_ndarray_base_every_internal_range( 10, idx ); \
114114
/* Sort the input array strides in increasing order (of magnitude): */ \
115-
stdlib_ndarray_base_nullary_internal_sort2ins( 10, sx1, idx ); \
115+
stdlib_ndarray_base_every_internal_sort2ins( 10, sx1, idx ); \
116116
/* Permute the shape (avoiding mutation) according to loop order: */ \
117-
stdlib_ndarray_base_nullary_internal_permute( 10, stdlib_ndarray_shape( x1 ), idx, tmp ); \
117+
stdlib_ndarray_base_every_internal_permute( 10, stdlib_ndarray_shape( x1 ), idx, tmp ); \
118118
memcpy( shape, tmp, sizeof shape ); \
119119
/* Determine the block size... */ \
120120
nbx1 = stdlib_ndarray_bytes_per_element( stdlib_ndarray_dtype( x1 ) ); \
@@ -296,7 +296,7 @@
296296
const tin in1 = *(tin *)px1; \
297297
if ( !( expr ) ) { \
298298
*px2 = false; \
299-
return; \
299+
return 0; \
300300
} \
301301
} \
302302
STDLIB_NDARRAY_EVERY_10D_BLOCKED_LOOP_EPILOGUE
@@ -320,7 +320,7 @@
320320
const tin x = *(tin *)px1; \
321321
if ( !( f( x ) ) ) { \
322322
*px2 = false; \
323-
return; \
323+
return 0; \
324324
} \
325325
} \
326326
STDLIB_NDARRAY_EVERY_10D_BLOCKED_LOOP_EPILOGUE
@@ -346,7 +346,7 @@
346346
const tin x = *(tin *)px1; \
347347
if ( !( f( (fin)x ) ) ) { \
348348
*px2 = false; \
349-
return; \
349+
return 0; \
350350
} \
351351
} \
352352
STDLIB_NDARRAY_EVERY_10D_BLOCKED_LOOP_EPILOGUE
@@ -374,7 +374,7 @@
374374
const tin x = *(tin *)px1; \
375375
if ( !( f( cin( x ) ) ) ) { \
376376
*px2 = false; \
377-
return; \
377+
return 0; \
378378
} \
379379
} \
380380
STDLIB_NDARRAY_EVERY_10D_BLOCKED_LOOP_EPILOGUE

lib/node_modules/@stdlib/ndarray/base/every/include/stdlib/ndarray/base/every/macros/1d.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
const int64_t *shape = stdlib_ndarray_shape( x1 ); \
4646
const int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
4747
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
48-
bool *px2 = stdlib_ndarray_data( x2 ); \
48+
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
4949
int64_t d0x1; \
5050
int64_t S0; \
5151
int64_t i0; \
@@ -87,10 +87,10 @@
8787
*/
8888
#define STDLIB_NDARRAY_EVERY_1D_LOOP_INLINE( tin, expr ) \
8989
STDLIB_NDARRAY_EVERY_1D_LOOP_PREAMBLE { \
90-
const tin *in1 = (tin *)px1; \
90+
const tin in1 = *(tin *)px1; \
9191
if ( !( expr ) ) { \
9292
*px2 = false; \
93-
return; \
93+
return 0; \
9494
} \
9595
} \
9696
STDLIB_NDARRAY_EVERY_1D_LOOP_EPILOGUE
@@ -114,7 +114,7 @@
114114
const tin x = *(tin *)px1; \
115115
if ( !( f( x ) ) ) { \
116116
*px2 = false; \
117-
return; \
117+
return 0; \
118118
} \
119119
} \
120120
STDLIB_NDARRAY_EVERY_1D_LOOP_EPILOGUE
@@ -140,7 +140,7 @@
140140
const tin x = *(tin *)px1; \
141141
if ( !( f( (fin)x ) ) ) { \
142142
*px2 = false; \
143-
return; \
143+
return 0; \
144144
} \
145145
} \
146146
STDLIB_NDARRAY_EVERY_1D_LOOP_EPILOGUE
@@ -168,7 +168,7 @@
168168
const tin x = *(tin *)px1; \
169169
if ( !( f( cin( x ) ) ) ) { \
170170
*px2 = false; \
171-
return; \
171+
return 0; \
172172
} \
173173
} \
174174
STDLIB_NDARRAY_EVERY_1D_LOOP_EPILOGUE

lib/node_modules/@stdlib/ndarray/base/every/include/stdlib/ndarray/base/every/macros/2d.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
const int64_t *shape = stdlib_ndarray_shape( x1 ); \
4747
const int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
4848
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
49-
bool *px2 = stdlib_ndarray_data( x2 ); \
49+
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
5050
int64_t d0x1; \
5151
int64_t d1x1; \
5252
int64_t S0; \
@@ -104,10 +104,10 @@
104104
*/
105105
#define STDLIB_NDARRAY_EVERY_2D_LOOP_INLINE( tin, expr ) \
106106
STDLIB_NDARRAY_EVERY_2D_LOOP_PREAMBLE { \
107-
const tin *in1 = (tin *)px1; \
107+
const tin in1 = *(tin *)px1; \
108108
if ( !( expr ) ) { \
109109
*px2 = false; \
110-
return; \
110+
return 0; \
111111
} \
112112
} \
113113
STDLIB_NDARRAY_EVERY_2D_LOOP_EPILOGUE
@@ -131,7 +131,7 @@
131131
const tin x = *(tin *)px1; \
132132
if ( !( f( x ) ) ) { \
133133
*px2 = false; \
134-
return; \
134+
return 0; \
135135
} \
136136
} \
137137
STDLIB_NDARRAY_EVERY_2D_LOOP_EPILOGUE
@@ -157,7 +157,7 @@
157157
const tin x = *(tin *)px1; \
158158
if ( !( f( (fin)x ) ) ) { \
159159
*px2 = false; \
160-
return; \
160+
return 0; \
161161
} \
162162
} \
163163
STDLIB_NDARRAY_EVERY_2D_LOOP_EPILOGUE
@@ -185,7 +185,7 @@
185185
const tin x = *(tin *)px1; \
186186
if ( !( f( cin( x ) ) ) ) { \
187187
*px2 = false; \
188-
return; \
188+
return 0; \
189189
} \
190190
} \
191191
STDLIB_NDARRAY_EVERY_2D_LOOP_EPILOGUE

lib/node_modules/@stdlib/ndarray/base/every/include/stdlib/ndarray/base/every/macros/2d_blocked.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
#ifndef STDLIB_NDARRAY_BASE_EVERY_MACROS_2D_BLOCKED_H
2020
#define STDLIB_NDARRAY_BASE_EVERY_MACROS_2D_BLOCKED_H
2121

22-
#include "stdlib/ndarray/base/nullary/macros/constants.h"
23-
#include "stdlib/ndarray/base/nullary/internal/permute.h"
24-
#include "stdlib/ndarray/base/nullary/internal/range.h"
25-
#include "stdlib/ndarray/base/nullary/internal/sort2ins.h"
22+
#include "stdlib/ndarray/base/every/macros/constants.h"
23+
#include "stdlib/ndarray/base/every/internal/permute.h"
24+
#include "stdlib/ndarray/base/every/internal/range.h"
25+
#include "stdlib/ndarray/base/every/internal/sort2ins.h"
2626
#include "stdlib/ndarray/base/bytes_per_element.h"
2727
#include "stdlib/ndarray/ctor.h"
2828
#include <stdbool.h>
@@ -48,12 +48,13 @@
4848
#define STDLIB_NDARRAY_EVERY_2D_BLOCKED_LOOP_PREAMBLE \
4949
const struct ndarray *x1 = arrays[ 0 ]; \
5050
const struct ndarray *x2 = arrays[ 1 ]; \
51-
bool *px2 = stdlib_ndarray_data( x2 ); \
51+
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
5252
int64_t shape[2]; \
5353
int64_t sx1[2]; \
5454
int64_t idx[2]; \
5555
int64_t tmp[2]; \
5656
int64_t bsize; \
57+
uint8_t *pbx1; \
5758
uint8_t *px1; \
5859
int64_t d0x1; \
5960
int64_t d1x1; \
@@ -151,7 +152,7 @@
151152
const tin in1 = *(tin *)px1; \
152153
if ( !( expr ) ) { \
153154
*px2 = false; \
154-
return; \
155+
return 0; \
155156
} \
156157
} \
157158
STDLIB_NDARRAY_EVERY_2D_BLOCKED_LOOP_EPILOGUE
@@ -175,7 +176,7 @@
175176
const tin x = *(tin *)px1; \
176177
if ( !( f( x ) ) ) { \
177178
*px2 = false; \
178-
return; \
179+
return 0; \
179180
} \
180181
} \
181182
STDLIB_NDARRAY_EVERY_2D_BLOCKED_LOOP_EPILOGUE
@@ -201,7 +202,7 @@
201202
const tin x = *(tin *)px1; \
202203
if ( !( f( (fin)x ) ) ) { \
203204
*px2 = false; \
204-
return; \
205+
return 0; \
205206
} \
206207
} \
207208
STDLIB_NDARRAY_EVERY_2D_BLOCKED_LOOP_EPILOGUE
@@ -229,7 +230,7 @@
229230
const tin x = *(tin *)px1; \
230231
if ( !( f( cin( x ) ) ) ) { \
231232
*px2 = false; \
232-
return; \
233+
return 0; \
233234
} \
234235
} \
235236
STDLIB_NDARRAY_EVERY_2D_BLOCKED_LOOP_EPILOGUE

0 commit comments

Comments
 (0)