Skip to content

Commit 9186ec7

Browse files
authored
Apply suggestions from code review
Signed-off-by: Gunj Joshi <gunjjoshi8372@gmail.com>
1 parent 5a89ce5 commit 9186ec7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ var pkg = require( './../package.json' ).name;
3030

3131
// VARIABLES //
3232

33-
var exp2 = tryRequire( resolve( __dirname, './../lib/native.js' ) );
33+
var exp2f = tryRequire( resolve( __dirname, './../lib/native.js' ) );
3434
var opts = {
35-
'skip': ( exp2 instanceof Error )
35+
'skip': ( exp2f instanceof Error )
3636
};
3737

3838

@@ -49,13 +49,13 @@ bench( pkg+'::native', opts, function benchmark( b ) {
4949

5050
b.tic();
5151
for ( i = 0; i < b.iterations; i++ ) {
52-
y = exp2( x[ i%x.length ] );
53-
if ( isnan( y ) ) {
52+
y = exp2f( x[ i%x.length ] );
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' );
6060
}
6161
b.pass( 'benchmark finished' );

0 commit comments

Comments
 (0)