Skip to content

Commit 026810c

Browse files
GeoDaoyukgryte
andauthored
chore: fix C lint errors
PR-URL: #11463 Closes: #11462 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 82aae9b commit 026810c

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

lib/node_modules/@stdlib/strided/common/include/stdlib/strided/common/quinary.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,47 +34,47 @@ extern "C" {
3434
/**
3535
* Applies a quinary callback returning double-precision floating-point numbers and assigns results to elements in a strided output array.
3636
*/
37-
void stdlib_strided_ddddd_d( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn );
37+
void stdlib_strided_ddddd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn );
3838

3939
/**
4040
* Applies a quinary callback returning single-precision floating-point numbers and assigns results to elements in a strided output array.
4141
*/
42-
void stdlib_strided_fffff_f( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn );
42+
void stdlib_strided_fffff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn );
4343

4444
/**
4545
* Applies a quinary callback returning double-precision floating-point numbers, casts results to single-precision floating-point format, and assigns results to elements in a strided output array.
4646
*/
47-
void stdlib_strided_fffff_f_as_ddddd_d( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn );
47+
void stdlib_strided_fffff_f_as_ddddd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn );
4848

4949
/**
5050
* Applies a quinary callback returning unsigned 32-bit integers and assigns results to elements in a strided output array.
5151
*/
52-
void stdlib_strided_IIIII_I( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn );
52+
void stdlib_strided_IIIII_I( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn );
5353

5454
/**
5555
* Applies a quinary callback returning signed 32-bit integers and assigns results to elements in a strided output array.
5656
*/
57-
void stdlib_strided_iiiii_i( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn );
57+
void stdlib_strided_iiiii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn );
5858

5959
/**
6060
* Applies a quinary callback returning unsigned 16-bit integers and assigns results to elements in a strided output array.
6161
*/
62-
void stdlib_strided_HHHHH_H( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn );
62+
void stdlib_strided_HHHHH_H( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn );
6363

6464
/**
6565
* Applies a quinary callback returning signed 16-bit integers and assigns results to elements in a strided output array.
6666
*/
67-
void stdlib_strided_hhhhh_h( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn );
67+
void stdlib_strided_hhhhh_h( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn );
6868

6969
/**
7070
* Applies a quinary callback returning unsigned 8-bit integers and assigns results to elements in a strided output array.
7171
*/
72-
void stdlib_strided_BBBBB_B( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn );
72+
void stdlib_strided_BBBBB_B( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn );
7373

7474
/**
7575
* Applies a quinary callback returning signed 8-bit integers and assigns results to elements in a strided output array.
7676
*/
77-
void stdlib_strided_bbbbb_b( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn );
77+
void stdlib_strided_bbbbb_b( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn );
7878

7979
#ifdef __cplusplus
8080
}

lib/node_modules/@stdlib/strided/common/src/quinary.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
* // Apply the callback:
106106
* stdlib_strided_ddddd_d( arrays, shape, strides, (void *)add5 );
107107
*/
108-
void stdlib_strided_ddddd_d( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) {
108+
void stdlib_strided_ddddd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) {
109109
QuinaryFcnFloat64 *f = (QuinaryFcnFloat64 *)fcn;
110110
STDLIB_QUINARY_LOOP_CLBK( double, double )
111111
}
@@ -147,7 +147,7 @@ void stdlib_strided_ddddd_d( uint8_t *arrays[], int64_t *shape, int64_t *strides
147147
* // Apply the callback:
148148
* stdlib_strided_fffff_f( arrays, shape, strides, (void *)add5 );
149149
*/
150-
void stdlib_strided_fffff_f( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) {
150+
void stdlib_strided_fffff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) {
151151
QuinaryFcnFloat32 *f = (QuinaryFcnFloat32 *)fcn;
152152
STDLIB_QUINARY_LOOP_CLBK( float, float )
153153
}
@@ -189,7 +189,7 @@ void stdlib_strided_fffff_f( uint8_t *arrays[], int64_t *shape, int64_t *strides
189189
* // Apply the callback:
190190
* stdlib_strided_fffff_f_as_ddddd_d( arrays, shape, strides, (void *)add5 );
191191
*/
192-
void stdlib_strided_fffff_f_as_ddddd_d( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) {
192+
void stdlib_strided_fffff_f_as_ddddd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) {
193193
QuinaryFcnFloat64 *f = (QuinaryFcnFloat64 *)fcn;
194194
STDLIB_QUINARY_LOOP_CLBK_ARG_CAST( float, float, double )
195195
}
@@ -231,7 +231,7 @@ void stdlib_strided_fffff_f_as_ddddd_d( uint8_t *arrays[], int64_t *shape, int64
231231
* // Apply the callback:
232232
* stdlib_strided_IIIII_I( arrays, shape, strides, (void *)add5 );
233233
*/
234-
void stdlib_strided_IIIII_I( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) {
234+
void stdlib_strided_IIIII_I( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) {
235235
QuinaryFcnUint32 *f = (QuinaryFcnUint32 *)fcn;
236236
STDLIB_QUINARY_LOOP_CLBK( uint32_t, uint32_t )
237237
}
@@ -273,7 +273,7 @@ void stdlib_strided_IIIII_I( uint8_t *arrays[], int64_t *shape, int64_t *strides
273273
* // Apply the callback:
274274
* stdlib_strided_iiiii_i( arrays, shape, strides, (void *)add5 );
275275
*/
276-
void stdlib_strided_iiiii_i( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) {
276+
void stdlib_strided_iiiii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) {
277277
QuinaryFcnInt32 *f = (QuinaryFcnInt32 *)fcn;
278278
STDLIB_QUINARY_LOOP_CLBK( int32_t, int32_t )
279279
}
@@ -315,7 +315,7 @@ void stdlib_strided_iiiii_i( uint8_t *arrays[], int64_t *shape, int64_t *strides
315315
* // Apply the callback:
316316
* stdlib_strided_HHHHH_H( arrays, shape, strides, (void *)add5 );
317317
*/
318-
void stdlib_strided_HHHHH_H( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) {
318+
void stdlib_strided_HHHHH_H( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) {
319319
QuinaryFcnUint16 *f = (QuinaryFcnUint16 *)fcn;
320320
STDLIB_QUINARY_LOOP_CLBK( uint16_t, uint16_t )
321321
}
@@ -357,7 +357,7 @@ void stdlib_strided_HHHHH_H( uint8_t *arrays[], int64_t *shape, int64_t *strides
357357
* // Apply the callback:
358358
* stdlib_strided_hhhhh_h( arrays, shape, strides, (void *)add5 );
359359
*/
360-
void stdlib_strided_hhhhh_h( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) {
360+
void stdlib_strided_hhhhh_h( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) {
361361
QuinaryFcnInt16 *f = (QuinaryFcnInt16 *)fcn;
362362
STDLIB_QUINARY_LOOP_CLBK( int16_t, int16_t )
363363
}
@@ -399,7 +399,7 @@ void stdlib_strided_hhhhh_h( uint8_t *arrays[], int64_t *shape, int64_t *strides
399399
* // Apply the callback:
400400
* stdlib_strided_BBBBB_B( arrays, shape, strides, (void *)add5 );
401401
*/
402-
void stdlib_strided_BBBBB_B( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) {
402+
void stdlib_strided_BBBBB_B( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) {
403403
QuinaryFcnUint8 *f = (QuinaryFcnUint8 *)fcn;
404404
STDLIB_QUINARY_LOOP_CLBK( uint8_t, uint8_t )
405405
}
@@ -441,7 +441,7 @@ void stdlib_strided_BBBBB_B( uint8_t *arrays[], int64_t *shape, int64_t *strides
441441
* // Apply the callback:
442442
* stdlib_strided_bbbbb_b( arrays, shape, strides, (void *)add5 );
443443
*/
444-
void stdlib_strided_bbbbb_b( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) {
444+
void stdlib_strided_bbbbb_b( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) {
445445
QuinaryFcnInt8 *f = (QuinaryFcnInt8 *)fcn;
446446
STDLIB_QUINARY_LOOP_CLBK( int8_t, int8_t )
447447
}

0 commit comments

Comments
 (0)