File tree Expand file tree Collapse file tree
lib/node_modules/@stdlib/math/base/assert/uint32-is-pow2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ limitations under the License.
2020
2121# isPow2Uint32
2222
23- > Test whether an unsigned integer is a power of 2.
23+ > Test if an unsigned integer is a power of 2.
2424
2525<section class =" usage " >
2626
@@ -32,7 +32,7 @@ var isPow2Uint32 = require( '@stdlib/math/base/assert/uint32-is-pow2' );
3232
3333#### isPow2Uint32( x )
3434
35- Tests whether ` x ` is a power of 2.
35+ Tests if ` x ` is a power of 2.
3636
3737``` javascript
3838var bool = isPow2Uint32 ( 2 );
@@ -100,7 +100,7 @@ for ( i = 0; i < 100; i++ ) {
100100
101101#### stdlib_base_uint32_is_pow2( x )
102102
103- Tests whether an unsigned integer is a power of 2.
103+ Tests if an unsigned integer is a power of 2.
104104
105105``` c
106106#include < stdbool.h>
Original file line number Diff line number Diff line change 1919// TypeScript Version: 4.1
2020
2121/**
22- * Tests whether an unsigned integer is a power of 2.
22+ * Tests if an unsigned integer is a power of 2.
2323*
2424* @param x - value to test
2525* @returns boolean indicating whether a value is a power of 2
Original file line number Diff line number Diff line change 1919'use strict' ;
2020
2121/**
22- * Test whether an unsigned integer is a power of 2.
22+ * Test if an unsigned integer is a power of 2.
2323*
2424* @module @stdlib /math/base/assert/uint32-is-pow2
2525*
3535
3636// MODULES //
3737
38- var isPow2Uint32 = require ( './main.js' ) ;
38+ var main = require ( './main.js' ) ;
3939
4040
4141// EXPORTS //
4242
43- module . exports = isPow2Uint32 ;
43+ module . exports = main ;
Original file line number Diff line number Diff line change 2121// MAIN //
2222
2323/**
24- * Tests whether an unsigned integer is a power of 2.
24+ * Tests if an unsigned integer is a power of 2.
2525*
2626* @param {uinteger32 } x - value to test
2727* @returns {boolean } boolean indicating whether a value is a power of 2
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ var addon = require( './../src/addon.node' );
2727// MAIN //
2828
2929/**
30- * Tests whether an unsigned integer is a power of 2.
30+ * Tests if an unsigned integer is a power of 2.
3131*
3232* @private
3333* @param {number } x - value to test
Original file line number Diff line number Diff line change 11{
22 "name" : " @stdlib/math/base/assert/uint32-is-pow2" ,
33 "version" : " 0.0.0" ,
4- "description" : " Test whether an unsigned integer is a power of 2." ,
4+ "description" : " Test if an unsigned integer is a power of 2." ,
55 "license" : " Apache-2.0" ,
66 "author" : {
77 "name" : " The Stdlib Authors" ,
You can’t perform that action at this time.
0 commit comments