File tree Expand file tree Collapse file tree 20 files changed +61
-61
lines changed
lib/node_modules/@stdlib/ndarray/base/nullary/include/stdlib/ndarray/base/nullary/macros Expand file tree Collapse file tree 20 files changed +61
-61
lines changed Original file line number Diff line number Diff line change 4040* STDLIB_NDARRAY_NULLARY_10D_LOOP_EPILOGUE
4141*/
4242#define STDLIB_NDARRAY_NULLARY_10D_LOOP_PREAMBLE \
43- struct ndarray *x1 = arrays[ 0 ]; \
43+ const struct ndarray *x1 = arrays[ 0 ]; \
4444 int64_t *shape = stdlib_ndarray_shape( x1 ); \
4545 int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
4646 uint8_t *px1 = stdlib_ndarray_data( x1 ); \
151151* STDLIB_NDARRAY_NULLARY_10D_LOOP_EPILOGUE
152152*/
153153#define STDLIB_NDARRAY_NULLARY_10D_LOOP_TWO_OUT_PREAMBLE \
154- struct ndarray *x1 = arrays[ 0 ]; \
155- struct ndarray *x2 = arrays[ 1 ]; \
154+ const struct ndarray *x1 = arrays[ 0 ]; \
155+ const struct ndarray *x2 = arrays[ 1 ]; \
156156 int64_t *shape = stdlib_ndarray_shape( x1 ); \
157157 int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
158158 int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
Original file line number Diff line number Diff line change 4545* STDLIB_NDARRAY_NULLARY_10D_BLOCKED_LOOP_EPILOGUE
4646*/
4747#define STDLIB_NDARRAY_NULLARY_10D_BLOCKED_LOOP_PREAMBLE \
48- struct ndarray *x1 = arrays[ 0 ]; \
48+ const struct ndarray *x1 = arrays[ 0 ]; \
4949 int64_t shape[10]; \
5050 int64_t sx1[10]; \
5151 int64_t idx[10]; \
257257* STDLIB_NDARRAY_NULLARY_10D_BLOCKED_LOOP_EPILOGUE
258258*/
259259#define STDLIB_NDARRAY_NULLARY_10D_BLOCKED_LOOP_TWO_OUT_PREAMBLE \
260- struct ndarray *x1 = arrays[ 0 ]; \
261- struct ndarray *x2 = arrays[ 1 ]; \
260+ const struct ndarray *x1 = arrays[ 0 ]; \
261+ const struct ndarray *x2 = arrays[ 1 ]; \
262262 int64_t shape[10]; \
263263 int64_t sx1[10]; \
264264 int64_t sx2[10]; \
Original file line number Diff line number Diff line change 3939* STDLIB_NDARRAY_NULLARY_1D_LOOP_EPILOGUE
4040*/
4141#define STDLIB_NDARRAY_NULLARY_1D_LOOP_PREAMBLE \
42- struct ndarray *x1 = arrays[ 0 ]; \
42+ const struct ndarray *x1 = arrays[ 0 ]; \
4343 int64_t *shape = stdlib_ndarray_shape( x1 ); \
4444 int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
4545 uint8_t *px1 = stdlib_ndarray_data( x1 ); \
7171* STDLIB_NDARRAY_NULLARY_1D_LOOP_EPILOGUE
7272*/
7373#define STDLIB_NDARRAY_NULLARY_1D_LOOP_TWO_OUT_PREAMBLE \
74- struct ndarray *x1 = arrays[ 0 ]; \
75- struct ndarray *x2 = arrays[ 1 ]; \
74+ const struct ndarray *x1 = arrays[ 0 ]; \
75+ const struct ndarray *x2 = arrays[ 1 ]; \
7676 int64_t *shape = stdlib_ndarray_shape( x1 ); \
7777 int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
7878 int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
199199* STDLIB_NDARRAY_NULLARY_1D_VIA_STRIDED( stdlib_strided_b )
200200*/
201201#define STDLIB_NDARRAY_NULLARY_1D_VIA_STRIDED ( strided_array_fcn ) \
202- struct ndarray *x1 = arrays[ 0 ]; \
202+ const struct ndarray *x1 = arrays[ 0 ]; \
203203 int64_t shape[] = { \
204204 stdlib_ndarray_dimension( x1, 0 ) \
205205 }; \
Original file line number Diff line number Diff line change 4040* STDLIB_NDARRAY_NULLARY_2D_LOOP_EPILOGUE
4141*/
4242#define STDLIB_NDARRAY_NULLARY_2D_LOOP_PREAMBLE \
43- struct ndarray *x1 = arrays[ 0 ]; \
43+ const struct ndarray *x1 = arrays[ 0 ]; \
4444 int64_t *shape = stdlib_ndarray_shape( x1 ); \
4545 int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
4646 uint8_t *px1 = stdlib_ndarray_data( x1 ); \
8787* STDLIB_NDARRAY_NULLARY_2D_LOOP_EPILOGUE
8888*/
8989#define STDLIB_NDARRAY_NULLARY_2D_LOOP_TWO_OUT_PREAMBLE \
90- struct ndarray *x1 = arrays[ 0 ]; \
91- struct ndarray *x2 = arrays[ 1 ]; \
90+ const struct ndarray *x1 = arrays[ 0 ]; \
91+ const struct ndarray *x2 = arrays[ 1 ]; \
9292 int64_t *shape = stdlib_ndarray_shape( x1 ); \
9393 int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
9494 int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
Original file line number Diff line number Diff line change 4545* STDLIB_NDARRAY_NULLARY_2D_BLOCKED_LOOP_EPILOGUE
4646*/
4747#define STDLIB_NDARRAY_NULLARY_2D_BLOCKED_LOOP_PREAMBLE \
48- struct ndarray *x1 = arrays[ 0 ]; \
48+ const struct ndarray *x1 = arrays[ 0 ]; \
4949 int64_t shape[2]; \
5050 int64_t sx1[2]; \
5151 int64_t idx[2]; \
129129* STDLIB_NDARRAY_NULLARY_2D_BLOCKED_LOOP_EPILOGUE
130130*/
131131#define STDLIB_NDARRAY_NULLARY_2D_BLOCKED_LOOP_TWO_OUT_PREAMBLE \
132- struct ndarray *x1 = arrays[ 0 ]; \
133- struct ndarray *x2 = arrays[ 1 ]; \
132+ const struct ndarray *x1 = arrays[ 0 ]; \
133+ const struct ndarray *x2 = arrays[ 1 ]; \
134134 int64_t shape[2]; \
135135 int64_t sx1[2]; \
136136 int64_t sx2[2]; \
Original file line number Diff line number Diff line change 4040* STDLIB_NDARRAY_NULLARY_3D_LOOP_EPILOGUE
4141*/
4242#define STDLIB_NDARRAY_NULLARY_3D_LOOP_PREAMBLE \
43- struct ndarray *x1 = arrays[ 0 ]; \
43+ const struct ndarray *x1 = arrays[ 0 ]; \
4444 int64_t *shape = stdlib_ndarray_shape( x1 ); \
4545 int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
4646 uint8_t *px1 = stdlib_ndarray_data( x1 ); \
9595* STDLIB_NDARRAY_NULLARY_3D_LOOP_EPILOGUE
9696*/
9797#define STDLIB_NDARRAY_NULLARY_3D_LOOP_TWO_OUT_PREAMBLE \
98- struct ndarray *x1 = arrays[ 0 ]; \
99- struct ndarray *x2 = arrays[ 1 ]; \
98+ const struct ndarray *x1 = arrays[ 0 ]; \
99+ const struct ndarray *x2 = arrays[ 1 ]; \
100100 int64_t *shape = stdlib_ndarray_shape( x1 ); \
101101 int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
102102 int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
Original file line number Diff line number Diff line change 4545* STDLIB_NDARRAY_NULLARY_3D_BLOCKED_LOOP_EPILOGUE
4646*/
4747#define STDLIB_NDARRAY_NULLARY_3D_BLOCKED_LOOP_PREAMBLE \
48- struct ndarray *x1 = arrays[ 0 ]; \
48+ const struct ndarray *x1 = arrays[ 0 ]; \
4949 int64_t shape[3]; \
5050 int64_t sx1[3]; \
5151 int64_t idx[3]; \
145145* STDLIB_NDARRAY_NULLARY_3D_BLOCKED_LOOP_EPILOGUE
146146*/
147147#define STDLIB_NDARRAY_NULLARY_3D_BLOCKED_LOOP_TWO_OUT_PREAMBLE \
148- struct ndarray *x1 = arrays[ 0 ]; \
149- struct ndarray *x2 = arrays[ 1 ]; \
148+ const struct ndarray *x1 = arrays[ 0 ]; \
149+ const struct ndarray *x2 = arrays[ 1 ]; \
150150 int64_t shape[3]; \
151151 int64_t sx1[3]; \
152152 int64_t sx2[3]; \
Original file line number Diff line number Diff line change 4040* STDLIB_NDARRAY_NULLARY_4D_LOOP_EPILOGUE
4141*/
4242#define STDLIB_NDARRAY_NULLARY_4D_LOOP_PREAMBLE \
43- struct ndarray *x1 = arrays[ 0 ]; \
43+ const struct ndarray *x1 = arrays[ 0 ]; \
4444 int64_t *shape = stdlib_ndarray_shape( x1 ); \
4545 int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
4646 uint8_t *px1 = stdlib_ndarray_data( x1 ); \
103103* STDLIB_NDARRAY_NULLARY_4D_LOOP_EPILOGUE
104104*/
105105#define STDLIB_NDARRAY_NULLARY_4D_LOOP_TWO_OUT_PREAMBLE \
106- struct ndarray *x1 = arrays[ 0 ]; \
107- struct ndarray *x2 = arrays[ 1 ]; \
106+ const struct ndarray *x1 = arrays[ 0 ]; \
107+ const struct ndarray *x2 = arrays[ 1 ]; \
108108 int64_t *shape = stdlib_ndarray_shape( x1 ); \
109109 int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
110110 int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
Original file line number Diff line number Diff line change 4545* STDLIB_NDARRAY_NULLARY_4D_BLOCKED_LOOP_EPILOGUE
4646*/
4747#define STDLIB_NDARRAY_NULLARY_4D_BLOCKED_LOOP_PREAMBLE \
48- struct ndarray *x1 = arrays[ 0 ]; \
48+ const struct ndarray *x1 = arrays[ 0 ]; \
4949 int64_t shape[4]; \
5050 int64_t sx1[4]; \
5151 int64_t idx[4]; \
161161* STDLIB_NDARRAY_NULLARY_4D_BLOCKED_LOOP_EPILOGUE
162162*/
163163#define STDLIB_NDARRAY_NULLARY_4D_BLOCKED_LOOP_TWO_OUT_PREAMBLE \
164- struct ndarray *x1 = arrays[ 0 ]; \
165- struct ndarray *x2 = arrays[ 1 ]; \
164+ const struct ndarray *x1 = arrays[ 0 ]; \
165+ const struct ndarray *x2 = arrays[ 1 ]; \
166166 int64_t shape[4]; \
167167 int64_t sx1[4]; \
168168 int64_t sx2[4]; \
Original file line number Diff line number Diff line change 4040* STDLIB_NDARRAY_NULLARY_5D_LOOP_EPILOGUE
4141*/
4242#define STDLIB_NDARRAY_NULLARY_5D_LOOP_PREAMBLE \
43- struct ndarray *x1 = arrays[ 0 ]; \
43+ const struct ndarray *x1 = arrays[ 0 ]; \
4444 int64_t *shape = stdlib_ndarray_shape( x1 ); \
4545 int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
4646 uint8_t *px1 = stdlib_ndarray_data( x1 ); \
111111* STDLIB_NDARRAY_NULLARY_5D_LOOP_EPILOGUE
112112*/
113113#define STDLIB_NDARRAY_NULLARY_5D_LOOP_TWO_OUT_PREAMBLE \
114- struct ndarray *x1 = arrays[ 0 ]; \
115- struct ndarray *x2 = arrays[ 1 ]; \
114+ const struct ndarray *x1 = arrays[ 0 ]; \
115+ const struct ndarray *x2 = arrays[ 1 ]; \
116116 int64_t *shape = stdlib_ndarray_shape( x1 ); \
117117 int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
118118 int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
You can’t perform that action at this time.
0 commit comments