diff --git a/lib/node_modules/@stdlib/ndarray/base/ind2sub/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/ndarray/base/ind2sub/benchmark/c/benchmark.c index 8e92d66748ea..4653c2569347 100644 --- a/lib/node_modules/@stdlib/ndarray/base/ind2sub/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/ndarray/base/ind2sub/benchmark/c/benchmark.c @@ -99,11 +99,11 @@ static double benchmark1( void ) { double t; int i; - int64_t ndims = 3; - int64_t shape[] = { 10, 10, 10 }; - int64_t strides[] = { 100, -10, 1 }; - int64_t offset = 90; - int64_t len = 1000; + const int64_t ndims = 3; + const int64_t shape[] = { 10, 10, 10 }; + const int64_t strides[] = { 100, -10, 1 }; + const int64_t offset = 90; + const int64_t len = 1000; int64_t out[ 3 ]; @@ -135,11 +135,11 @@ static double benchmark2( void ) { double t; int i; - int64_t ndims = 3; - int64_t shape[] = { 10, 10, 10 }; - int64_t strides[] = { 1, -10, 100 }; - int64_t offset = 90; - int64_t len = 1000; + const int64_t ndims = 3; + const int64_t shape[] = { 10, 10, 10 }; + const int64_t strides[] = { 1, -10, 100 }; + const int64_t offset = 90; + const int64_t len = 1000; int64_t out[ 3 ]; @@ -171,11 +171,11 @@ static double benchmark3( void ) { double t; int i; - int64_t ndims = 3; - int64_t shape[] = { 10, 10, 10 }; - int64_t strides[] = { 100, 10, 1 }; - int64_t offset = 0; - int64_t len = 1000; + const int64_t ndims = 3; + const int64_t shape[] = { 10, 10, 10 }; + const int64_t strides[] = { 100, 10, 1 }; + const int64_t offset = 0; + const int64_t len = 1000; int64_t out[ 3 ]; @@ -207,11 +207,11 @@ static double benchmark4( void ) { double t; int i; - int64_t ndims = 3; - int64_t shape[] = { 10, 10, 10 }; - int64_t strides[] = { 1, 10, 100 }; - int64_t offset = 0; - int64_t len = 1000; + const int64_t ndims = 3; + const int64_t shape[] = { 10, 10, 10 }; + const int64_t strides[] = { 1, 10, 100 }; + const int64_t offset = 0; + const int64_t len = 1000; int64_t out[ 3 ]; @@ -243,11 +243,11 @@ static double benchmark5( void ) { double t; int i; - int64_t ndims = 3; - int64_t shape[] = { 10, 10, 10 }; - int64_t strides[] = { 100, -10, 1 }; - int64_t offset = 90; - int64_t len = 1000; + const int64_t ndims = 3; + const int64_t shape[] = { 10, 10, 10 }; + const int64_t strides[] = { 100, -10, 1 }; + const int64_t offset = 90; + const int64_t len = 1000; int64_t out[ 3 ]; @@ -279,11 +279,11 @@ static double benchmark6( void ) { double t; int i; - int64_t ndims = 3; - int64_t shape[] = { 10, 10, 10 }; - int64_t strides[] = { 1, -10, 100 }; - int64_t offset = 90; - int64_t len = 1000; + const int64_t ndims = 3; + const int64_t shape[] = { 10, 10, 10 }; + const int64_t strides[] = { 1, -10, 100 }; + const int64_t offset = 90; + const int64_t len = 1000; int64_t out[ 3 ]; @@ -315,11 +315,11 @@ static double benchmark7( void ) { double t; int i; - int64_t ndims = 3; - int64_t shape[] = { 10, 10, 10 }; - int64_t strides[] = { 100, 10, 1 }; - int64_t offset = 0; - int64_t len = 1000; + const int64_t ndims = 3; + const int64_t shape[] = { 10, 10, 10 }; + const int64_t strides[] = { 100, 10, 1 }; + const int64_t offset = 0; + const int64_t len = 1000; int64_t out[ 3 ]; @@ -351,11 +351,11 @@ static double benchmark8( void ) { double t; int i; - int64_t ndims = 3; - int64_t shape[] = { 10, 10, 10 }; - int64_t strides[] = { 1, 10, 100 }; - int64_t offset = 0; - int64_t len = 1000; + const int64_t ndims = 3; + const int64_t shape[] = { 10, 10, 10 }; + const int64_t strides[] = { 1, 10, 100 }; + const int64_t offset = 0; + const int64_t len = 1000; int64_t out[ 3 ]; @@ -387,11 +387,11 @@ static double benchmark9( void ) { double t; int i; - int64_t ndims = 3; - int64_t shape[] = { 10, 10, 10 }; - int64_t strides[] = { 100, -10, 1 }; - int64_t offset = 90; - int64_t len = 1000; + const int64_t ndims = 3; + const int64_t shape[] = { 10, 10, 10 }; + const int64_t strides[] = { 100, -10, 1 }; + const int64_t offset = 90; + const int64_t len = 1000; int64_t out[ 3 ]; @@ -423,11 +423,11 @@ static double benchmark10( void ) { double t; int i; - int64_t ndims = 3; - int64_t shape[] = { 10, 10, 10 }; - int64_t strides[] = { 1, -10, 100 }; - int64_t offset = 90; - int64_t len = 1000; + const int64_t ndims = 3; + const int64_t shape[] = { 10, 10, 10 }; + const int64_t strides[] = { 1, -10, 100 }; + const int64_t offset = 90; + const int64_t len = 1000; int64_t out[ 3 ]; @@ -459,11 +459,11 @@ static double benchmark11( void ) { double t; int i; - int64_t ndims = 3; - int64_t shape[] = { 10, 10, 10 }; - int64_t strides[] = { 100, 10, 1 }; - int64_t offset = 0; - int64_t len = 1000; + const int64_t ndims = 3; + const int64_t shape[] = { 10, 10, 10 }; + const int64_t strides[] = { 100, 10, 1 }; + const int64_t offset = 0; + const int64_t len = 1000; int64_t out[ 3 ]; @@ -495,11 +495,11 @@ static double benchmark12( void ) { double t; int i; - int64_t ndims = 3; - int64_t shape[] = { 10, 10, 10 }; - int64_t strides[] = { 1, 10, 100 }; - int64_t offset = 0; - int64_t len = 1000; + const int64_t ndims = 3; + const int64_t shape[] = { 10, 10, 10 }; + const int64_t strides[] = { 1, 10, 100 }; + const int64_t offset = 0; + const int64_t len = 1000; int64_t out[ 3 ]; @@ -531,11 +531,11 @@ static double benchmark13( void ) { double t; int i; - int64_t ndims = 3; - int64_t shape[] = { 10, 10, 10 }; - int64_t strides[] = { 100, -10, 1 }; - int64_t offset = 90; - int64_t len = 1000; + const int64_t ndims = 3; + const int64_t shape[] = { 10, 10, 10 }; + const int64_t strides[] = { 100, -10, 1 }; + const int64_t offset = 90; + const int64_t len = 1000; int64_t out[ 3 ]; @@ -567,11 +567,11 @@ static double benchmark14( void ) { double t; int i; - int64_t ndims = 3; - int64_t shape[] = { 10, 10, 10 }; - int64_t strides[] = { 1, -10, 100 }; - int64_t offset = 90; - int64_t len = 1000; + const int64_t ndims = 3; + const int64_t shape[] = { 10, 10, 10 }; + const int64_t strides[] = { 1, -10, 100 }; + const int64_t offset = 90; + const int64_t len = 1000; int64_t out[ 3 ]; @@ -603,11 +603,11 @@ static double benchmark15( void ) { double t; int i; - int64_t ndims = 3; - int64_t shape[] = { 10, 10, 10 }; - int64_t strides[] = { 100, 10, 1 }; - int64_t offset = 0; - int64_t len = 1000; + const int64_t ndims = 3; + const int64_t shape[] = { 10, 10, 10 }; + const int64_t strides[] = { 100, 10, 1 }; + const int64_t offset = 0; + const int64_t len = 1000; int64_t out[ 3 ]; @@ -639,11 +639,11 @@ static double benchmark16( void ) { double t; int i; - int64_t ndims = 3; - int64_t shape[] = { 10, 10, 10 }; - int64_t strides[] = { 1, 10, 100 }; - int64_t offset = 0; - int64_t len = 1000; + const int64_t ndims = 3; + const int64_t shape[] = { 10, 10, 10 }; + const int64_t strides[] = { 1, 10, 100 }; + const int64_t offset = 0; + const int64_t len = 1000; int64_t out[ 3 ];