Skip to content

Commit 3270c9a

Browse files
committed
chore: cleanup
1 parent e9280c8 commit 3270c9a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/node_modules/@stdlib/blas/ext/base/dnancusumpw/benchmark/c/benchmark.length.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ static double benchmark1( int iterations, int len ) {
114114
}
115115
t = tic();
116116
for ( i = 0; i < iterations; i++ ) {
117+
x[ 0 ] += 1.0;
117118
stdlib_strided_dnancusumpw( len, 0.0, x, 1, y, 1 );
118119
if ( y[ 0 ] != y[ 0 ] ) {
119120
printf( "should not return NaN\n" );
@@ -156,6 +157,7 @@ static double benchmark2( int iterations, int len ) {
156157
}
157158
t = tic();
158159
for ( i = 0; i < iterations; i++ ) {
160+
x[ 0 ] += 1.0;
159161
stdlib_strided_dnancusumpw_ndarray( len, 0.0, x, 1, 0, y, 1, 0 );
160162
if ( y[ 0 ] != y[ 0 ] ) {
161163
printf( "should not return NaN\n" );

0 commit comments

Comments
 (0)