Skip to content

Commit

Permalink
refactor: apply review suggestion
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Haris <[email protected]>
  • Loading branch information
headlessNode authored Nov 29, 2024
1 parent e7e26af commit add5315
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ static double benchmark1( int iterations, int len ) {
t = tic();
for ( i = 0; i < iterations; i++ ) {
stdlib_strided_dsort2hp( len, 1, x, 1, y, 1 );
if ( y[ i%len ] != y[ i%len ] ) {
if ( y[ 0 ] != y[ 0 ] ) {
printf( "should not return NaN\n" );
break;
}
}
elapsed = tic() - t;
if ( y[ i%len ] != y[ i%len ] ) {
if ( y[ 0 ] != y[ 0 ] ) {
printf( "should not return NaN\n" );
}
return elapsed;
Expand Down

0 comments on commit add5315

Please sign in to comment.