Skip to content

Commit b627e87

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <kgryte@gmail.com>
1 parent fad1693 commit b627e87

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

lib/node_modules/@stdlib/blas/base/drot/benchmark/c/benchmark.length.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ static double benchmark1( int iterations, int len ) {
119119
if ( y[ 0 ] != y[ 0 ] ) {
120120
printf( "should not return NaN\n" );
121121
}
122-
123122
free( x );
124123
free( y );
125124
return elapsed;
@@ -141,7 +140,6 @@ static double benchmark2( int iterations, int len ) {
141140

142141
x = (double *) malloc( len * sizeof( double ) );
143142
y = (double *) malloc( len * sizeof( double ) );
144-
145143
for ( i = 0; i < len; i++ ) {
146144
x[ i ] = ( rand_double()*200.0 ) - 100.0;
147145
y[ i ] = ( rand_double()*200.0 ) - 100.0;
@@ -158,10 +156,8 @@ static double benchmark2( int iterations, int len ) {
158156
if ( y[ 0 ] != y[ 0 ] ) {
159157
printf( "should not return NaN\n" );
160158
}
161-
162159
free( x );
163160
free( y );
164-
165161
return elapsed;
166162
}
167163

0 commit comments

Comments
 (0)