From 594553dd7aafece42e64cb0a66d5b229ffe9b115 Mon Sep 17 00:00:00 2001 From: GeoDaoyu Date: Wed, 15 Apr 2026 09:50:47 +0800 Subject: [PATCH 1/3] chore: fix C lint errors (issue #11462) --- .../@stdlib/strided/common/src/quinary.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/node_modules/@stdlib/strided/common/src/quinary.c b/lib/node_modules/@stdlib/strided/common/src/quinary.c index e4426d83e62e..a1096a8650ae 100644 --- a/lib/node_modules/@stdlib/strided/common/src/quinary.c +++ b/lib/node_modules/@stdlib/strided/common/src/quinary.c @@ -105,7 +105,7 @@ * // Apply the callback: * stdlib_strided_ddddd_d( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_ddddd_d( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) { +void stdlib_strided_ddddd_d( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { QuinaryFcnFloat64 *f = (QuinaryFcnFloat64 *)fcn; STDLIB_QUINARY_LOOP_CLBK( double, double ) } @@ -147,7 +147,7 @@ void stdlib_strided_ddddd_d( uint8_t *arrays[], int64_t *shape, int64_t *strides * // Apply the callback: * stdlib_strided_fffff_f( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_fffff_f( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) { +void stdlib_strided_fffff_f( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { QuinaryFcnFloat32 *f = (QuinaryFcnFloat32 *)fcn; STDLIB_QUINARY_LOOP_CLBK( float, float ) } @@ -189,7 +189,7 @@ void stdlib_strided_fffff_f( uint8_t *arrays[], int64_t *shape, int64_t *strides * // Apply the callback: * stdlib_strided_fffff_f_as_ddddd_d( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_fffff_f_as_ddddd_d( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) { +void stdlib_strided_fffff_f_as_ddddd_d( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { QuinaryFcnFloat64 *f = (QuinaryFcnFloat64 *)fcn; STDLIB_QUINARY_LOOP_CLBK_ARG_CAST( float, float, double ) } @@ -231,7 +231,7 @@ void stdlib_strided_fffff_f_as_ddddd_d( uint8_t *arrays[], int64_t *shape, int64 * // Apply the callback: * stdlib_strided_IIIII_I( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_IIIII_I( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) { +void stdlib_strided_IIIII_I( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { QuinaryFcnUint32 *f = (QuinaryFcnUint32 *)fcn; STDLIB_QUINARY_LOOP_CLBK( uint32_t, uint32_t ) } @@ -273,7 +273,7 @@ void stdlib_strided_IIIII_I( uint8_t *arrays[], int64_t *shape, int64_t *strides * // Apply the callback: * stdlib_strided_iiiii_i( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_iiiii_i( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) { +void stdlib_strided_iiiii_i( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { QuinaryFcnInt32 *f = (QuinaryFcnInt32 *)fcn; STDLIB_QUINARY_LOOP_CLBK( int32_t, int32_t ) } @@ -315,7 +315,7 @@ void stdlib_strided_iiiii_i( uint8_t *arrays[], int64_t *shape, int64_t *strides * // Apply the callback: * stdlib_strided_HHHHH_H( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_HHHHH_H( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) { +void stdlib_strided_HHHHH_H( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { QuinaryFcnUint16 *f = (QuinaryFcnUint16 *)fcn; STDLIB_QUINARY_LOOP_CLBK( uint16_t, uint16_t ) } @@ -357,7 +357,7 @@ void stdlib_strided_HHHHH_H( uint8_t *arrays[], int64_t *shape, int64_t *strides * // Apply the callback: * stdlib_strided_hhhhh_h( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_hhhhh_h( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) { +void stdlib_strided_hhhhh_h( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { QuinaryFcnInt16 *f = (QuinaryFcnInt16 *)fcn; STDLIB_QUINARY_LOOP_CLBK( int16_t, int16_t ) } @@ -399,7 +399,7 @@ void stdlib_strided_hhhhh_h( uint8_t *arrays[], int64_t *shape, int64_t *strides * // Apply the callback: * stdlib_strided_BBBBB_B( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_BBBBB_B( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) { +void stdlib_strided_BBBBB_B( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { QuinaryFcnUint8 *f = (QuinaryFcnUint8 *)fcn; STDLIB_QUINARY_LOOP_CLBK( uint8_t, uint8_t ) } @@ -441,7 +441,7 @@ void stdlib_strided_BBBBB_B( uint8_t *arrays[], int64_t *shape, int64_t *strides * // Apply the callback: * stdlib_strided_bbbbb_b( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_bbbbb_b( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ) { +void stdlib_strided_bbbbb_b( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { QuinaryFcnInt8 *f = (QuinaryFcnInt8 *)fcn; STDLIB_QUINARY_LOOP_CLBK( int8_t, int8_t ) } From b3fd82acd712b5a487e7a8082af272d2afbdd149 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 15 Apr 2026 22:23:08 -0700 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- .../@stdlib/strided/common/src/quinary.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/node_modules/@stdlib/strided/common/src/quinary.c b/lib/node_modules/@stdlib/strided/common/src/quinary.c index a1096a8650ae..008344296e12 100644 --- a/lib/node_modules/@stdlib/strided/common/src/quinary.c +++ b/lib/node_modules/@stdlib/strided/common/src/quinary.c @@ -105,7 +105,7 @@ * // Apply the callback: * stdlib_strided_ddddd_d( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_ddddd_d( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { +void stdlib_strided_ddddd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) { QuinaryFcnFloat64 *f = (QuinaryFcnFloat64 *)fcn; STDLIB_QUINARY_LOOP_CLBK( double, double ) } @@ -147,7 +147,7 @@ void stdlib_strided_ddddd_d( uint8_t *arrays[], const int64_6 *shape, const int6 * // Apply the callback: * stdlib_strided_fffff_f( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_fffff_f( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { +void stdlib_strided_fffff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) { QuinaryFcnFloat32 *f = (QuinaryFcnFloat32 *)fcn; STDLIB_QUINARY_LOOP_CLBK( float, float ) } @@ -189,7 +189,7 @@ void stdlib_strided_fffff_f( uint8_t *arrays[], const int64_6 *shape, const int6 * // Apply the callback: * stdlib_strided_fffff_f_as_ddddd_d( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_fffff_f_as_ddddd_d( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { +void stdlib_strided_fffff_f_as_ddddd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) { QuinaryFcnFloat64 *f = (QuinaryFcnFloat64 *)fcn; STDLIB_QUINARY_LOOP_CLBK_ARG_CAST( float, float, double ) } @@ -231,7 +231,7 @@ void stdlib_strided_fffff_f_as_ddddd_d( uint8_t *arrays[], const int64_6 *shape, * // Apply the callback: * stdlib_strided_IIIII_I( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_IIIII_I( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { +void stdlib_strided_IIIII_I( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) { QuinaryFcnUint32 *f = (QuinaryFcnUint32 *)fcn; STDLIB_QUINARY_LOOP_CLBK( uint32_t, uint32_t ) } @@ -273,7 +273,7 @@ void stdlib_strided_IIIII_I( uint8_t *arrays[], const int64_6 *shape, const int6 * // Apply the callback: * stdlib_strided_iiiii_i( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_iiiii_i( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { +void stdlib_strided_iiiii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) { QuinaryFcnInt32 *f = (QuinaryFcnInt32 *)fcn; STDLIB_QUINARY_LOOP_CLBK( int32_t, int32_t ) } @@ -315,7 +315,7 @@ void stdlib_strided_iiiii_i( uint8_t *arrays[], const int64_6 *shape, const int6 * // Apply the callback: * stdlib_strided_HHHHH_H( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_HHHHH_H( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { +void stdlib_strided_HHHHH_H( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) { QuinaryFcnUint16 *f = (QuinaryFcnUint16 *)fcn; STDLIB_QUINARY_LOOP_CLBK( uint16_t, uint16_t ) } @@ -357,7 +357,7 @@ void stdlib_strided_HHHHH_H( uint8_t *arrays[], const int64_6 *shape, const int6 * // Apply the callback: * stdlib_strided_hhhhh_h( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_hhhhh_h( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { +void stdlib_strided_hhhhh_h( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) { QuinaryFcnInt16 *f = (QuinaryFcnInt16 *)fcn; STDLIB_QUINARY_LOOP_CLBK( int16_t, int16_t ) } @@ -399,7 +399,7 @@ void stdlib_strided_hhhhh_h( uint8_t *arrays[], const int64_6 *shape, const int6 * // Apply the callback: * stdlib_strided_BBBBB_B( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_BBBBB_B( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { +void stdlib_strided_BBBBB_B( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) { QuinaryFcnUint8 *f = (QuinaryFcnUint8 *)fcn; STDLIB_QUINARY_LOOP_CLBK( uint8_t, uint8_t ) } @@ -441,7 +441,7 @@ void stdlib_strided_BBBBB_B( uint8_t *arrays[], const int64_6 *shape, const int6 * // Apply the callback: * stdlib_strided_bbbbb_b( arrays, shape, strides, (void *)add5 ); */ -void stdlib_strided_bbbbb_b( uint8_t *arrays[], const int64_6 *shape, const int64_t *strides, void *fcn ) { +void stdlib_strided_bbbbb_b( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ) { QuinaryFcnInt8 *f = (QuinaryFcnInt8 *)fcn; STDLIB_QUINARY_LOOP_CLBK( int8_t, int8_t ) } From 612286d8d42c023f54afd4ca4e198f4c2e530125 Mon Sep 17 00:00:00 2001 From: GeoDaoyu Date: Thu, 16 Apr 2026 14:06:49 +0800 Subject: [PATCH 3/3] chore: fix C lint errors (issue #11462) --- .../include/stdlib/strided/common/quinary.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/node_modules/@stdlib/strided/common/include/stdlib/strided/common/quinary.h b/lib/node_modules/@stdlib/strided/common/include/stdlib/strided/common/quinary.h index 879253da5118..be18e8fcba57 100644 --- a/lib/node_modules/@stdlib/strided/common/include/stdlib/strided/common/quinary.h +++ b/lib/node_modules/@stdlib/strided/common/include/stdlib/strided/common/quinary.h @@ -34,47 +34,47 @@ extern "C" { /** * Applies a quinary callback returning double-precision floating-point numbers and assigns results to elements in a strided output array. */ -void stdlib_strided_ddddd_d( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ); +void stdlib_strided_ddddd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); /** * Applies a quinary callback returning single-precision floating-point numbers and assigns results to elements in a strided output array. */ -void stdlib_strided_fffff_f( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ); +void stdlib_strided_fffff_f( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); /** * 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. */ -void stdlib_strided_fffff_f_as_ddddd_d( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ); +void stdlib_strided_fffff_f_as_ddddd_d( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); /** * Applies a quinary callback returning unsigned 32-bit integers and assigns results to elements in a strided output array. */ -void stdlib_strided_IIIII_I( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ); +void stdlib_strided_IIIII_I( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); /** * Applies a quinary callback returning signed 32-bit integers and assigns results to elements in a strided output array. */ -void stdlib_strided_iiiii_i( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ); +void stdlib_strided_iiiii_i( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); /** * Applies a quinary callback returning unsigned 16-bit integers and assigns results to elements in a strided output array. */ -void stdlib_strided_HHHHH_H( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ); +void stdlib_strided_HHHHH_H( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); /** * Applies a quinary callback returning signed 16-bit integers and assigns results to elements in a strided output array. */ -void stdlib_strided_hhhhh_h( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ); +void stdlib_strided_hhhhh_h( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); /** * Applies a quinary callback returning unsigned 8-bit integers and assigns results to elements in a strided output array. */ -void stdlib_strided_BBBBB_B( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ); +void stdlib_strided_BBBBB_B( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); /** * Applies a quinary callback returning signed 8-bit integers and assigns results to elements in a strided output array. */ -void stdlib_strided_bbbbb_b( uint8_t *arrays[], int64_t *shape, int64_t *strides, void *fcn ); +void stdlib_strided_bbbbb_b( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); #ifdef __cplusplus }