Skip to content

Commit de0d654

Browse files
authored
bench: use single-precision utility
Signed-off-by: Athan <[email protected]>
1 parent 35f0c42 commit de0d654

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/node_modules/@stdlib/math/base/special/fast/absf/benchmark/benchmark.native.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var resolve = require( 'path' ).resolve;
2424
var bench = require( '@stdlib/bench' );
2525
var uniform = require( '@stdlib/random/array/uniform' );
26-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
26+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2727
var tryRequire = require( '@stdlib/utils/try-require' );
2828
var pkg = require( './../package.json' ).name;
2929

@@ -50,15 +50,14 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5050
b.tic();
5151
for ( i = 0; i < b.iterations; i++ ) {
5252
y = absf( x[ i % x.length ] );
53-
if ( isnan( y ) ) {
53+
if ( isnanf( y ) ) {
5454
b.fail( 'should not return NaN' );
5555
}
5656
}
5757
b.toc();
58-
if ( isnan( y ) ) {
58+
if ( isnanf( y ) ) {
5959
b.fail( 'should not return NaN' );
60-
} else {
61-
b.pass( 'benchmark finished' );
6260
}
61+
b.pass( 'benchmark finished' );
6362
b.end();
6463
});

0 commit comments

Comments
 (0)