Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
18 changes: 9 additions & 9 deletions lib/node_modules/@stdlib/strided/common/src/quinary.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
}
Expand Down Expand Up @@ -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 )
}
Expand Down Expand Up @@ -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 )
}
Expand Down Expand Up @@ -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 )
}
Expand Down Expand Up @@ -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 )
}
Expand Down Expand Up @@ -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 )
}
Expand Down Expand Up @@ -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 )
}
Expand Down Expand Up @@ -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 )
}
Expand Down Expand Up @@ -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 )
}