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 add5315 commit 807d7c9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ static double benchmark2( int iterations, int len ) {
t = tic();
for ( i = 0; i < iterations; i++ ) {
stdlib_strided_dsort2hp_ndarray( len, 1, x, 1, 0, y, 1, 0 );
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 807d7c9

Please sign in to comment.