@@ -100,8 +100,8 @@ static double benchmark1( void ) {
100
100
int i ;
101
101
102
102
int64_t ndims = 3 ;
103
- int64_t shape [] = { 10 , 10 , 10 };
104
- int64_t strides [] = { 100 , -10 , 1 };
103
+ const int64_t shape [] = { 10 , 10 , 10 };
104
+ const int64_t strides [] = { 100 , -10 , 1 };
105
105
int64_t offset = 90 ;
106
106
int64_t len = 1000 ;
107
107
@@ -136,8 +136,8 @@ static double benchmark2( void ) {
136
136
int i ;
137
137
138
138
int64_t ndims = 3 ;
139
- int64_t shape [] = { 10 , 10 , 10 };
140
- int64_t strides [] = { 1 , -10 , 100 };
139
+ const int64_t shape [] = { 10 , 10 , 10 };
140
+ const int64_t strides [] = { 1 , -10 , 100 };
141
141
int64_t offset = 90 ;
142
142
int64_t len = 1000 ;
143
143
@@ -172,8 +172,8 @@ static double benchmark3( void ) {
172
172
int i ;
173
173
174
174
int64_t ndims = 3 ;
175
- int64_t shape [] = { 10 , 10 , 10 };
176
- int64_t strides [] = { 100 , 10 , 1 };
175
+ const int64_t shape [] = { 10 , 10 , 10 };
176
+ const int64_t strides [] = { 100 , 10 , 1 };
177
177
int64_t offset = 0 ;
178
178
int64_t len = 1000 ;
179
179
@@ -208,8 +208,8 @@ static double benchmark4( void ) {
208
208
int i ;
209
209
210
210
int64_t ndims = 3 ;
211
- int64_t shape [] = { 10 , 10 , 10 };
212
- int64_t strides [] = { 1 , 10 , 100 };
211
+ const int64_t shape [] = { 10 , 10 , 10 };
212
+ const int64_t strides [] = { 1 , 10 , 100 };
213
213
int64_t offset = 0 ;
214
214
int64_t len = 1000 ;
215
215
@@ -244,8 +244,8 @@ static double benchmark5( void ) {
244
244
int i ;
245
245
246
246
int64_t ndims = 3 ;
247
- int64_t shape [] = { 10 , 10 , 10 };
248
- int64_t strides [] = { 100 , -10 , 1 };
247
+ const int64_t shape [] = { 10 , 10 , 10 };
248
+ const int64_t strides [] = { 100 , -10 , 1 };
249
249
int64_t offset = 90 ;
250
250
int64_t len = 1000 ;
251
251
@@ -280,8 +280,8 @@ static double benchmark6( void ) {
280
280
int i ;
281
281
282
282
int64_t ndims = 3 ;
283
- int64_t shape [] = { 10 , 10 , 10 };
284
- int64_t strides [] = { 1 , -10 , 100 };
283
+ const int64_t shape [] = { 10 , 10 , 10 };
284
+ const int64_t strides [] = { 1 , -10 , 100 };
285
285
int64_t offset = 90 ;
286
286
int64_t len = 1000 ;
287
287
@@ -316,8 +316,8 @@ static double benchmark7( void ) {
316
316
int i ;
317
317
318
318
int64_t ndims = 3 ;
319
- int64_t shape [] = { 10 , 10 , 10 };
320
- int64_t strides [] = { 100 , 10 , 1 };
319
+ const int64_t shape [] = { 10 , 10 , 10 };
320
+ const int64_t strides [] = { 100 , 10 , 1 };
321
321
int64_t offset = 0 ;
322
322
int64_t len = 1000 ;
323
323
@@ -352,8 +352,8 @@ static double benchmark8( void ) {
352
352
int i ;
353
353
354
354
int64_t ndims = 3 ;
355
- int64_t shape [] = { 10 , 10 , 10 };
356
- int64_t strides [] = { 1 , 10 , 100 };
355
+ const int64_t shape [] = { 10 , 10 , 10 };
356
+ const int64_t strides [] = { 1 , 10 , 100 };
357
357
int64_t offset = 0 ;
358
358
int64_t len = 1000 ;
359
359
@@ -388,8 +388,8 @@ static double benchmark9( void ) {
388
388
int i ;
389
389
390
390
int64_t ndims = 3 ;
391
- int64_t shape [] = { 10 , 10 , 10 };
392
- int64_t strides [] = { 100 , -10 , 1 };
391
+ const int64_t shape [] = { 10 , 10 , 10 };
392
+ const int64_t strides [] = { 100 , -10 , 1 };
393
393
int64_t offset = 90 ;
394
394
int64_t len = 1000 ;
395
395
@@ -424,8 +424,8 @@ static double benchmark10( void ) {
424
424
int i ;
425
425
426
426
int64_t ndims = 3 ;
427
- int64_t shape [] = { 10 , 10 , 10 };
428
- int64_t strides [] = { 1 , -10 , 100 };
427
+ const int64_t shape [] = { 10 , 10 , 10 };
428
+ const int64_t strides [] = { 1 , -10 , 100 };
429
429
int64_t offset = 90 ;
430
430
int64_t len = 1000 ;
431
431
@@ -460,8 +460,8 @@ static double benchmark11( void ) {
460
460
int i ;
461
461
462
462
int64_t ndims = 3 ;
463
- int64_t shape [] = { 10 , 10 , 10 };
464
- int64_t strides [] = { 100 , 10 , 1 };
463
+ const int64_t shape [] = { 10 , 10 , 10 };
464
+ const int64_t strides [] = { 100 , 10 , 1 };
465
465
int64_t offset = 0 ;
466
466
int64_t len = 1000 ;
467
467
@@ -496,8 +496,8 @@ static double benchmark12( void ) {
496
496
int i ;
497
497
498
498
int64_t ndims = 3 ;
499
- int64_t shape [] = { 10 , 10 , 10 };
500
- int64_t strides [] = { 1 , 10 , 100 };
499
+ const int64_t shape [] = { 10 , 10 , 10 };
500
+ const int64_t strides [] = { 1 , 10 , 100 };
501
501
int64_t offset = 0 ;
502
502
int64_t len = 1000 ;
503
503
@@ -532,8 +532,8 @@ static double benchmark13( void ) {
532
532
int i ;
533
533
534
534
int64_t ndims = 3 ;
535
- int64_t shape [] = { 10 , 10 , 10 };
536
- int64_t strides [] = { 100 , -10 , 1 };
535
+ const int64_t shape [] = { 10 , 10 , 10 };
536
+ const int64_t strides [] = { 100 , -10 , 1 };
537
537
int64_t offset = 90 ;
538
538
int64_t len = 1000 ;
539
539
@@ -568,8 +568,8 @@ static double benchmark14( void ) {
568
568
int i ;
569
569
570
570
int64_t ndims = 3 ;
571
- int64_t shape [] = { 10 , 10 , 10 };
572
- int64_t strides [] = { 1 , -10 , 100 };
571
+ const int64_t shape [] = { 10 , 10 , 10 };
572
+ const int64_t strides [] = { 1 , -10 , 100 };
573
573
int64_t offset = 90 ;
574
574
int64_t len = 1000 ;
575
575
@@ -604,8 +604,8 @@ static double benchmark15( void ) {
604
604
int i ;
605
605
606
606
int64_t ndims = 3 ;
607
- int64_t shape [] = { 10 , 10 , 10 };
608
- int64_t strides [] = { 100 , 10 , 1 };
607
+ const int64_t shape [] = { 10 , 10 , 10 };
608
+ const int64_t strides [] = { 100 , 10 , 1 };
609
609
int64_t offset = 0 ;
610
610
int64_t len = 1000 ;
611
611
@@ -640,8 +640,8 @@ static double benchmark16( void ) {
640
640
int i ;
641
641
642
642
int64_t ndims = 3 ;
643
- int64_t shape [] = { 10 , 10 , 10 };
644
- int64_t strides [] = { 1 , 10 , 100 };
643
+ const int64_t shape [] = { 10 , 10 , 10 };
644
+ const int64_t strides [] = { 1 , 10 , 100 };
645
645
int64_t offset = 0 ;
646
646
int64_t len = 1000 ;
647
647
0 commit comments