From acb36b23ddc2d8dc9ceaf4a577717a947b7cf191 Mon Sep 17 00:00:00 2001 From: Abdul Kaium Date: Sun, 19 Jul 2026 00:42:41 +0600 Subject: [PATCH 1/4] feat: add `number/uint64/base/get-low-word` --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown_pkg_readmes status: passed - task: lint_markdown_docs status: na - task: lint_markdown status: na - task: lint_package_json status: passed - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed --- --- .../number/uint64/base/get-low-word/README.md | 100 ++++++++++++++++++ .../base/get-low-word/benchmark/benchmark.js | 66 ++++++++++++ .../uint64/base/get-low-word/docs/repl.txt | 25 +++++ .../base/get-low-word/docs/types/index.d.ts | 43 ++++++++ .../base/get-low-word/docs/types/test.ts | 47 ++++++++ .../base/get-low-word/examples/index.js | 38 +++++++ .../uint64/base/get-low-word/lib/index.js | 42 ++++++++ .../uint64/base/get-low-word/lib/main.js | 43 ++++++++ .../uint64/base/get-low-word/package.json | 70 ++++++++++++ .../uint64/base/get-low-word/test/test.js | 83 +++++++++++++++ 10 files changed, 557 insertions(+) create mode 100644 lib/node_modules/@stdlib/number/uint64/base/get-low-word/README.md create mode 100644 lib/node_modules/@stdlib/number/uint64/base/get-low-word/benchmark/benchmark.js create mode 100644 lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/number/uint64/base/get-low-word/examples/index.js create mode 100644 lib/node_modules/@stdlib/number/uint64/base/get-low-word/lib/index.js create mode 100644 lib/node_modules/@stdlib/number/uint64/base/get-low-word/lib/main.js create mode 100644 lib/node_modules/@stdlib/number/uint64/base/get-low-word/package.json create mode 100644 lib/node_modules/@stdlib/number/uint64/base/get-low-word/test/test.js diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/README.md b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/README.md new file mode 100644 index 000000000000..49b3cd72f222 --- /dev/null +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/README.md @@ -0,0 +1,100 @@ + + +# Low Word + +> Return an unsigned 32-bit integer corresponding to the low 32-bit word of a [64-bit unsigned integer][@stdlib/number/uint64/ctor]. + +
+ +## Usage + +```javascript +var getLowWord = require( '@stdlib/number/uint64/base/get-low-word' ); +``` + +#### getLowWord( a ) + +Returns an unsigned 32-bit integer corresponding to the low 32-bit word of a [64-bit unsigned integer][@stdlib/number/uint64/ctor]. + +```javascript +var Uint64 = require( '@stdlib/number/uint64/ctor' ); + +var a = new Uint64( 4294967296 ); +var w = getLowWord( a ); +// returns 0 +``` + +
+ + + +
+ +## Examples + + + +```javascript +var Uint64 = require( '@stdlib/number/uint64/ctor' ); +var getLowWord = require( '@stdlib/number/uint64/base/get-low-word' ); + +var a = new Uint64( 4294967296 ); +console.log( getLowWord( a ) ); +// => 0 + +a = new Uint64( 0xffffffff ); +console.log( getLowWord( a ) ); +// => 4294967295 + +a = new Uint64( 0x123400005678 ); +console.log( getLowWord( a ) ); +// => 22136 + +a = Uint64.of( 1234, 5678 ); +console.log( getLowWord( a ) ); +// => 5678 +``` + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/benchmark/benchmark.js b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/benchmark/benchmark.js new file mode 100644 index 000000000000..7266ac325caa --- /dev/null +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/benchmark/benchmark.js @@ -0,0 +1,66 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var isnan = require( '@stdlib/assert/is-nan' ).isPrimitive; +var bench = require( '@stdlib/bench' ); +var MAX_SAFE_INTEGER = require( '@stdlib/constants/float64/max-safe-integer' ); +var Uint64 = require( '@stdlib/number/uint64/ctor' ); +var discreteUniform = require( '@stdlib/random/base/discrete-uniform' ); +var pkg = require( './../package.json' ).name; +var getLowWord = require( './../lib' ); + + +// VARIABLES // + +var rand = discreteUniform.factory( 0, MAX_SAFE_INTEGER ); + + +// MAIN // + +bench( pkg, function benchmark( b ) { + var values; + var N; + var a; + var i; + var w; + + N = 100; + values = []; + for ( i = 0; i < N; i++ ) { + values.push( new Uint64( rand() ) ); + } + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + a = values[ i % N ]; + w = getLowWord( a ); + if ( isnan( w ) ) { + b.fail( 'should not return NaN' ); + } + } + b.toc(); + if ( isnan( w ) ) { + b.fail( 'should not return NaN' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/repl.txt b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/repl.txt new file mode 100644 index 000000000000..66ada3c3344c --- /dev/null +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/repl.txt @@ -0,0 +1,25 @@ + +{{alias}}( a ) + Returns an unsigned 32-bit integer corresponding to the low 32-bit word of + a 64-bit unsigned integer. + + Parameters + ---------- + a: Uint64 + Input value. + + Returns + ------- + out: integer + Lower order word (unsigned 32-bit integer). + + Examples + -------- + > var a = new {{alias:@stdlib/number/uint64/ctor}}( 4294967296 ) + [ 4294967296n ] + > var w = {{alias}}( a ) + 0 + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/index.d.ts b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/index.d.ts new file mode 100644 index 000000000000..7e0c5328228d --- /dev/null +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/index.d.ts @@ -0,0 +1,43 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/// + +import { Uint64 } from '@stdlib/types/number'; + +/** +* Returns an unsigned 32-bit integer corresponding to the low 32-bit word of a 64-bit unsigned integer. +* +* @param a - input value +* @returns higher order word (unsigned 32-bit integer) +* +* @example +* var Uint64 = require( '@stdlib/number/uint64/ctor' ); +* +* var a = new Uint64( 4294967296 ); +* var w = getLowWord( a ); +* // returns 0 +*/ +declare function getLowWord( a: Uint64 ): number; + + +// EXPORTS // + +export = getLowWord; diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/test.ts b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/test.ts new file mode 100644 index 000000000000..ef56f70c0e39 --- /dev/null +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/test.ts @@ -0,0 +1,47 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import Uint64 = require( '@stdlib/number/uint64/ctor' ); +import getLowWord = require( './index' ); + + +// TESTS // + +// The function returns a number... +{ + const a = new Uint64( 5 ); + getLowWord( a ); // $ExpectType number +} + +// The compiler throws an error if the function is provided an argument that is not a 64-bit unsigned integer... +{ + getLowWord( 5 ); // $ExpectError + getLowWord( '5' ); // $ExpectError + getLowWord( true ); // $ExpectError + getLowWord( false ); // $ExpectError + getLowWord( [] ); // $ExpectError + getLowWord( {} ); // $ExpectError + getLowWord( ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + const a = new Uint64( 5 ); + getLowWord(); // $ExpectError + getLowWord( a, a ); // $ExpectError +} diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/examples/index.js b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/examples/index.js new file mode 100644 index 000000000000..7192c2c6669d --- /dev/null +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/examples/index.js @@ -0,0 +1,38 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var Uint64 = require( '@stdlib/number/uint64/ctor' ); +var getLowWord = require( './../lib' ); + +var a = new Uint64( 4294967296 ); +console.log( getLowWord( a ) ); +// => 0 + +a = new Uint64( 0xffffffff ); +console.log( getLowWord( a ) ); +// => 4294967295 + +a = new Uint64( 0x123400005678 ); +console.log( getLowWord( a ) ); +// => 22136 + +a = Uint64.of( 1234, 5678 ); +console.log( getLowWord( a ) ); +// => 5678 diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/lib/index.js b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/lib/index.js new file mode 100644 index 000000000000..35168544ea18 --- /dev/null +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/lib/index.js @@ -0,0 +1,42 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* Return an unsigned 32-bit integer corresponding to the low 32-bit word of a 64-bit unsigned integer. +* +* @module @stdlib/number/uint64/base/get-low-word +* +* @example +* var Uint64 = require( '@stdlib/number/uint64/ctor' ); +* var getLowWord = require( '@stdlib/number/uint64/base/get-low-word' ); +* +* var a = new Uint64( 4294967296 ); +* var w = getLowWord( a ); +* // returns 0 +*/ + +// MODULES // + +var main = require( './main.js' ); + + +// EXPORTS // + +module.exports = main; diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/lib/main.js b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/lib/main.js new file mode 100644 index 000000000000..51ba788af2d1 --- /dev/null +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/lib/main.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MAIN // + +/** +* Returns an unsigned 32-bit integer corresponding to the low 32-bit word of a 64-bit unsigned integer. +* +* @param {Uint64} a - input value +* @returns {uinteger32} higher order word +* +* @example +* var Uint64 = require( '@stdlib/number/uint64/ctor' ); +* +* var a = new Uint64( 4294967296 ); +* var w = getLowWord( a ); +* // returns 0 +*/ +function getLowWord( a ) { + return a.lo; +} + + +// EXPORTS // + +module.exports = getLowWord; diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/package.json b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/package.json new file mode 100644 index 000000000000..c74df9a5dd4a --- /dev/null +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/package.json @@ -0,0 +1,70 @@ +{ + "name": "@stdlib/number/uint64/base/get-low-word", + "version": "0.0.0", + "description": "Return an unsigned 32-bit integer corresponding to the low 32-bit word of a 64-bit unsigned integer.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "directories": { + "benchmark": "./benchmark", + "doc": "./docs", + "example": "./examples", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdtypes", + "base", + "utilities", + "utility", + "utils", + "util", + "types", + "type", + "uint64", + "unsigned", + "64-bit", + "integer", + "int", + "get", + "low", + "word" + ] +} diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/test/test.js b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/test/test.js new file mode 100644 index 000000000000..a5eeeaddfa5f --- /dev/null +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/test/test.js @@ -0,0 +1,83 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive; +var UINT32_MAX = require( '@stdlib/constants/uint32/max' ); +var Uint64 = require( '@stdlib/number/uint64/ctor' ); +var getLowWord = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof getLowWord, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function returns an integer', function test( t ) { + var a; + var w; + + a = new Uint64( 4294967296 ); + w = getLowWord( a ); + + t.ok( isInteger( w ), 'returns expected value' ); + + t.end(); +}); + +tape( 'the function returns the low 32-bit word of a 64-bit unsigned integer', function test( t ) { + var values; + var a; + var v; + var w; + var i; + + values = [ + 0, + 1, + 2, + 3, + 4, + 5, + 10, + 99, + 100, + 999, + 1000, + 999999, + 1000000, + 999999999, + 1000000000, + UINT32_MAX + ]; + + for ( i = 0; i < values.length; i++ ) { + v = values[ i ]; + a = Uint64.of( 0, v ); + w = getLowWord( a ); + t.strictEqual( w, v, 'returns expected value' ); + } + t.end(); +}); From 1dc8a62bab6a7265fedde1b5d83b016dbbe7b778 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 18 Jul 2026 14:50:20 -0700 Subject: [PATCH 2/4] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- .../@stdlib/number/uint64/base/get-low-word/README.md | 4 ++-- .../@stdlib/number/uint64/base/get-low-word/docs/repl.txt | 4 ++-- .../number/uint64/base/get-low-word/docs/types/index.d.ts | 4 ++-- .../@stdlib/number/uint64/base/get-low-word/lib/index.js | 2 +- .../@stdlib/number/uint64/base/get-low-word/lib/main.js | 4 ++-- .../@stdlib/number/uint64/base/get-low-word/package.json | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/README.md b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/README.md index 49b3cd72f222..0bfadb045bed 100644 --- a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/README.md +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/README.md @@ -20,7 +20,7 @@ limitations under the License. # Low Word -> Return an unsigned 32-bit integer corresponding to the low 32-bit word of a [64-bit unsigned integer][@stdlib/number/uint64/ctor]. +> Return a 32-bit unsigned integer corresponding to the low 32-bit word of a [64-bit unsigned integer][@stdlib/number/uint64/ctor].
@@ -32,7 +32,7 @@ var getLowWord = require( '@stdlib/number/uint64/base/get-low-word' ); #### getLowWord( a ) -Returns an unsigned 32-bit integer corresponding to the low 32-bit word of a [64-bit unsigned integer][@stdlib/number/uint64/ctor]. +Returns a 32-bit unsigned integer corresponding to the low 32-bit word of a [64-bit unsigned integer][@stdlib/number/uint64/ctor]. ```javascript var Uint64 = require( '@stdlib/number/uint64/ctor' ); diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/repl.txt b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/repl.txt index 66ada3c3344c..9f6a9d8f8e85 100644 --- a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/repl.txt +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/repl.txt @@ -1,7 +1,7 @@ {{alias}}( a ) - Returns an unsigned 32-bit integer corresponding to the low 32-bit word of - a 64-bit unsigned integer. + Returns a 32-bit unsigned integer corresponding to the low 32-bit word of a + 64-bit unsigned integer. Parameters ---------- diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/index.d.ts b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/index.d.ts index 7e0c5328228d..dd68d3df7109 100644 --- a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/index.d.ts @@ -23,10 +23,10 @@ import { Uint64 } from '@stdlib/types/number'; /** -* Returns an unsigned 32-bit integer corresponding to the low 32-bit word of a 64-bit unsigned integer. +* Returns a 32-bit unsigned integer corresponding to the low 32-bit word of a 64-bit unsigned integer. * * @param a - input value -* @returns higher order word (unsigned 32-bit integer) +* @returns lower order word (unsigned 32-bit integer) * * @example * var Uint64 = require( '@stdlib/number/uint64/ctor' ); diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/lib/index.js b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/lib/index.js index 35168544ea18..8f6b55e45f03 100644 --- a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/lib/index.js +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/lib/index.js @@ -19,7 +19,7 @@ 'use strict'; /** -* Return an unsigned 32-bit integer corresponding to the low 32-bit word of a 64-bit unsigned integer. +* Return a 32-bit unsigned integer corresponding to the low 32-bit word of a 64-bit unsigned integer. * * @module @stdlib/number/uint64/base/get-low-word * diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/lib/main.js b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/lib/main.js index 51ba788af2d1..2a78a1e290ce 100644 --- a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/lib/main.js +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/lib/main.js @@ -21,10 +21,10 @@ // MAIN // /** -* Returns an unsigned 32-bit integer corresponding to the low 32-bit word of a 64-bit unsigned integer. +* Returns a 32-bit unsigned integer corresponding to the low 32-bit word of a 64-bit unsigned integer. * * @param {Uint64} a - input value -* @returns {uinteger32} higher order word +* @returns {uinteger32} lower order word * * @example * var Uint64 = require( '@stdlib/number/uint64/ctor' ); diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/package.json b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/package.json index c74df9a5dd4a..9787e45393af 100644 --- a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/package.json +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/package.json @@ -1,7 +1,7 @@ { "name": "@stdlib/number/uint64/base/get-low-word", "version": "0.0.0", - "description": "Return an unsigned 32-bit integer corresponding to the low 32-bit word of a 64-bit unsigned integer.", + "description": "Return a 32-bit unsigned integer corresponding to the low 32-bit word of a 64-bit unsigned integer.", "license": "Apache-2.0", "author": { "name": "The Stdlib Authors", From 0f8529a4190c7de974ea71867006927eccb3b5c7 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 18 Jul 2026 14:50:50 -0700 Subject: [PATCH 3/4] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- .../number/uint64/base/get-low-word/docs/types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/index.d.ts b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/index.d.ts index dd68d3df7109..3dce1be06241 100644 --- a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/index.d.ts @@ -23,7 +23,7 @@ import { Uint64 } from '@stdlib/types/number'; /** -* Returns a 32-bit unsigned integer corresponding to the low 32-bit word of a 64-bit unsigned integer. +* Returns a 32-bit unsigned integer corresponding to the low 32-bit word of a 64-bit unsigned integer. * * @param a - input value * @returns lower order word (unsigned 32-bit integer) From 7be8619fe7e719cd568f964238ca15b09863a480 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 18 Jul 2026 14:52:13 -0700 Subject: [PATCH 4/4] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- .../@stdlib/number/uint64/base/get-low-word/docs/repl.txt | 2 +- .../number/uint64/base/get-low-word/docs/types/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/repl.txt b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/repl.txt index 9f6a9d8f8e85..1fcf34f31c2d 100644 --- a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/repl.txt +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/repl.txt @@ -11,7 +11,7 @@ Returns ------- out: integer - Lower order word (unsigned 32-bit integer). + Lower order word (32-bit unsigned integer). Examples -------- diff --git a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/index.d.ts b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/index.d.ts index 3dce1be06241..cf2dcd5b8339 100644 --- a/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/number/uint64/base/get-low-word/docs/types/index.d.ts @@ -26,7 +26,7 @@ import { Uint64 } from '@stdlib/types/number'; * Returns a 32-bit unsigned integer corresponding to the low 32-bit word of a 64-bit unsigned integer. * * @param a - input value -* @returns lower order word (unsigned 32-bit integer) +* @returns lower order word (32-bit unsigned integer) * * @example * var Uint64 = require( '@stdlib/number/uint64/ctor' );