Skip to content

Commit 4dcbec5

Browse files
chore: address commit comments for commit 4d0f11a
PR-URL: #6770 Closes: #6715 Reviewed-by: Philipp Burckhardt <[email protected]>
1 parent 43cd244 commit 4dcbec5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/node_modules/@stdlib/math/base/assert/uint32-is-pow2/benchmark/benchmark.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
var bench = require( '@stdlib/bench' );
2424
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
25-
var float64ToUint32 = require( '@stdlib/number/float64/base/to-uint32' );
2625
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
2726
var pkg = require( './../package.json' ).name;
2827
var isPow2 = require( './../lib' );
@@ -43,7 +42,7 @@ bench( pkg, function benchmark( b ) {
4342

4443
b.tic();
4544
for ( i = 0; i < b.iterations; i++ ) {
46-
y = isPow2( float64ToUint32( x[ i%x.length ] ) );
45+
y = isPow2( x[ i%x.length ] );
4746
if ( typeof y !== 'boolean' ) {
4847
b.fail( 'should return a boolean' );
4948
}

lib/node_modules/@stdlib/math/base/assert/uint32-is-pow2/benchmark/benchmark.native.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
var resolve = require( 'path' ).resolve;
2424
var bench = require( '@stdlib/bench' );
2525
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
26-
var float64ToUint32 = require( '@stdlib/number/float64/base/to-uint32' );
2726
var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
2827
var tryRequire = require( '@stdlib/utils/try-require' );
2928
var pkg = require( './../package.json' ).name;
@@ -52,7 +51,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5251

5352
b.tic();
5453
for ( i = 0; i < b.iterations; i++ ) {
55-
y = isPow2( float64ToUint32( x[ i%x.length ] ) );
54+
y = isPow2( x[ i%x.length ] );
5655
if ( typeof y !== 'boolean' ) {
5756
b.fail( 'should return a boolean' );
5857
}

0 commit comments

Comments
 (0)