Skip to content

Commit 35f0c42

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

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/math/base/special/fast/absf/benchmark

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
var bench = require( '@stdlib/bench' );
2424
var uniform = require( '@stdlib/random/array/uniform' );
25-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
25+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2626
var pkg = require( './../package.json' ).name;
2727
var absf = require( './../lib' );
2828

@@ -41,12 +41,12 @@ bench( pkg, function benchmark( b ) {
4141
b.tic();
4242
for ( i = 0; i < b.iterations; i++ ) {
4343
y = absf( x[ i % x.length ] );
44-
if ( isnan( y ) ) {
44+
if ( isnanf( y ) ) {
4545
b.fail( 'should not return NaN' );
4646
}
4747
}
4848
b.toc();
49-
if ( isnan( y ) ) {
49+
if ( isnanf( y ) ) {
5050
b.fail( 'should not return NaN' );
5151
}
5252
b.pass( 'benchmark finished' );

0 commit comments

Comments
 (0)