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 } diff --git a/lib/node_modules/@stdlib/strided/common/src/quinary.c b/lib/node_modules/@stdlib/strided/common/src/quinary.c index e4426d83e62e..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[], 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 ) { 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_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[], 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_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[], 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_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[], 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_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[], 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_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[], 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_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[], 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_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[], 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_t *shape, const int64_t *strides, void *fcn ) { QuinaryFcnInt8 *f = (QuinaryFcnInt8 *)fcn; STDLIB_QUINARY_LOOP_CLBK( int8_t, int8_t ) }