Skip to content

Commit 3381626

Browse files
authored
bench: update conditions
Signed-off-by: Athan <[email protected]>
1 parent f54fc94 commit 3381626

File tree

1 file changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/number/uint32/base/identity/benchmark/c/native

1 file changed

+4
-4
lines changed

lib/node_modules/@stdlib/number/uint32/base/identity/benchmark/c/native/benchmark.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ static double benchmark( void ) {
104104
t = tic();
105105
for ( i = 0; i < ITERATIONS; i++ ) {
106106
y = stdlib_base_uint32_identity( x[ i%100 ] );
107-
if ( y != y ) {
108-
printf( "should not return NaN\n" );
107+
if ( y > 100 ) {
108+
printf( "unexpected result\n" );
109109
break;
110110
}
111111
}
112112
elapsed = tic() - t;
113-
if ( y != y ) {
114-
printf( "should not return NaN\n" );
113+
if ( y > 100 ) {
114+
printf( "unexpected result\n" );
115115
}
116116
return elapsed;
117117
}

0 commit comments

Comments
 (0)