From 91dcc8fc1108112d820511d67321376c77e70985 Mon Sep 17 00:00:00 2001 From: Shubham Date: Mon, 5 Jan 2026 12:23:31 +0530 Subject: [PATCH 01/10] feat: add constant/float32/num-exponent-bits implementation --- .../float32/num-exponent-bits/README.md | 143 ++++++++++++++++++ .../float32/num-exponent-bits/docs/repl.txt | 13 ++ .../num-exponent-bits/docs/types/index.d.ts | 33 ++++ .../num-exponent-bits/docs/types/test.ts | 28 ++++ .../num-exponent-bits/examples/index.js | 24 +++ .../constants/float32/num_exponent_bits.h | 27 ++++ .../float32/num-exponent-bits/lib/index.js | 47 ++++++ .../float32/num-exponent-bits/manifest.json | 36 +++++ .../float32/num-exponent-bits/package.json | 1 + .../float32/num-exponent-bits/test/test.js | 38 +++++ 10 files changed, 390 insertions(+) create mode 100644 lib/node_modules/@stdlib/constants/float32/num-exponent-bits/README.md create mode 100644 lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/constants/float32/num-exponent-bits/examples/index.js create mode 100644 lib/node_modules/@stdlib/constants/float32/num-exponent-bits/include/stdlib/constants/float32/num_exponent_bits.h create mode 100644 lib/node_modules/@stdlib/constants/float32/num-exponent-bits/lib/index.js create mode 100644 lib/node_modules/@stdlib/constants/float32/num-exponent-bits/manifest.json create mode 100644 lib/node_modules/@stdlib/constants/float32/num-exponent-bits/package.json create mode 100644 lib/node_modules/@stdlib/constants/float32/num-exponent-bits/test/test.js diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/README.md b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/README.md new file mode 100644 index 000000000000..63d7e68857e1 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/README.md @@ -0,0 +1,143 @@ + + +# FLOAT32_NUM_EXPONENT_BITS + +> Number of exponent bits for a [single-precision floating-point number][ieee754]. + +
+ +## Usage + + + +```javascript +var FLOAT32_NUM_EXPONENT_BITS = require( '@stdlib/constants/float32/num-exponent-bits' ); +``` + +#### FLOAT32_NUM_EXPONENT_BITS + +Number of exponent bits for a [single-precision floating-point number][ieee754]. + + + +```javascript +var bool = ( FLOAT32_NUM_EXPONENT_BITS === 8 ); +// returns true +``` + +
+ + + +
+ +## Examples + + + + + +```javascript +var FLOAT32_NUM_EXPONENT_BITS = require( '@stdlib/constants/float32/num-exponent-bits' ); + +console.log( FLOAT32_NUM_EXPONENT_BITS ); +// => 8 +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/constants/float32/num_exponent_bits.h" +``` + +#### STDLIB_CONSTANT_FLOAT32_NUM_EXPONENT_BITS + +Macro for the number of exponent bits for a [single-precision floating-point number][ieee754]. + +
+ + + + + +
+ +
+ + + + + +
+ +
+ + + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/repl.txt b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/repl.txt new file mode 100644 index 000000000000..bc8518ee6787 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/repl.txt @@ -0,0 +1,13 @@ + +{{alias}} + Number of exponent bits for a single-precision floating- + point number. + + Examples + -------- + > {{alias}} + 8 + + See Also + -------- + \ No newline at end of file diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/types/index.d.ts b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/types/index.d.ts new file mode 100644 index 000000000000..0385b2765473 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/types/index.d.ts @@ -0,0 +1,33 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 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 + +/** +* Number of exponent bits for a single-precision floating-point number. +* +* @example +* var bits = FLOAT32_NUM_EXPONENT_BITS; +* // returns 8 +*/ +declare const FLOAT32_NUM_EXPONENT_BITS: number; + + +// EXPORTS // + +export = FLOAT32_NUM_EXPONENT_BITS; diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/types/test.ts b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/types/test.ts new file mode 100644 index 000000000000..bb39a3049765 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/types/test.ts @@ -0,0 +1,28 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 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 FLOAT32_NUM_EXPONENT_BITS = require( './index' ); + + +// TESTS // + +// The export is a number... +{ + // eslint-disable-next-line @typescript-eslint/no-unused-expressions + FLOAT32_NUM_EXPONENT_BITS; // $ExpectType number +} diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/examples/index.js b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/examples/index.js new file mode 100644 index 000000000000..44a8ceb4ac5c --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/examples/index.js @@ -0,0 +1,24 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 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 FLOAT32_NUM_EXPONENT_BITS = require( './../lib' ); + +console.log( FLOAT32_NUM_EXPONENT_BITS ); +// => 8 diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/include/stdlib/constants/float32/num_exponent_bits.h b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/include/stdlib/constants/float32/num_exponent_bits.h new file mode 100644 index 000000000000..dc56da46d102 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/include/stdlib/constants/float32/num_exponent_bits.h @@ -0,0 +1,27 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 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. +*/ + +#ifndef STDLIB_CONSTANTS_FLOAT32_NUM_EXPONENT_BITS_H +#define STDLIB_CONSTANTS_FLOAT32_NUM_EXPONENT_BITS_H + +/** +* Number of exponent bits for a single-precision floating-point number. +*/ +#define STDLIB_CONSTANT_FLOAT32_NUM_EXPONENT_BITS 8 + +#endif // !STDLIB_CONSTANTS_FLOAT32_NUM_EXPONENT_BITS_H \ No newline at end of file diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/lib/index.js b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/lib/index.js new file mode 100644 index 000000000000..a621b5479445 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/lib/index.js @@ -0,0 +1,47 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 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'; + +/** +* Number of exponent bits for a single-precision floating-point number. +* +* @module @stdlib/constants/float32/num-exponent-bits +* @type {integer32} +* +* @example +* var FLOAT32_NUM_EXPONENT_BITS = require( '@stdlib/constants/float32/num-exponent-bits' ); +* // returns 8 +*/ + + +// MAIN // + +/** +* Number of exponent bits for a single-precision floating-point number. +* +* @constant +* @type {integer32} +* @default 8 +*/ +var FLOAT32_NUM_EXPONENT_BITS = 8|0; + + +// EXPORTS // + +module.exports = FLOAT32_NUM_EXPONENT_BITS; diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/manifest.json b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/manifest.json new file mode 100644 index 000000000000..844d692f6439 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/manifest.json @@ -0,0 +1,36 @@ +{ + "options": {}, + "fields": [ + { + "field": "src", + "resolve": true, + "relative": true + }, + { + "field": "include", + "resolve": true, + "relative": true + }, + { + "field": "libraries", + "resolve": false, + "relative": false + }, + { + "field": "libpath", + "resolve": true, + "relative": false + } + ], + "confs": [ + { + "src": [], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [] + } + ] +} diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/package.json b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/package.json new file mode 100644 index 000000000000..95de1dcb29b4 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/package.json @@ -0,0 +1 @@ +{ "name": "@stdlib/constants/float32/num-exponent-bits", "version": "0.0.0", "description": "Number of exponent bits for a single-precision floating-point number.", "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": { "doc": "./docs", "example": "./examples", "include": "./include", "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", "stdmath", "constant", "const", "mathematics", "math", "float", "float32", "32bit", "floating-point", "ieee754", "exponent", "bits", "word" ]} diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/test/test.js b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/test/test.js new file mode 100644 index 000000000000..88305d89ffd1 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/test/test.js @@ -0,0 +1,38 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 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 FLOAT32_NUM_EXPONENT_BITS = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a number', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof FLOAT32_NUM_EXPONENT_BITS, 'number', 'main export is a number' ); + t.end(); +}); + +tape( 'the exported value is 8', function test( t ) { + t.strictEqual( FLOAT32_NUM_EXPONENT_BITS, 8, 'returns expected value' ); + t.end(); +}); From 4f596c0dac0960b83a17789f11bd3fc8e0f8b344 Mon Sep 17 00:00:00 2001 From: Shubham Date: Mon, 5 Jan 2026 12:25:40 +0530 Subject: [PATCH 02/10] fix: package.json formatting --- .../float32/num-exponent-bits/package.json | 68 ++++++++++++++++++- 1 file changed, 67 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/package.json b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/package.json index 95de1dcb29b4..4e292406a989 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/package.json +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/package.json @@ -1 +1,67 @@ -{ "name": "@stdlib/constants/float32/num-exponent-bits", "version": "0.0.0", "description": "Number of exponent bits for a single-precision floating-point number.", "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": { "doc": "./docs", "example": "./examples", "include": "./include", "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", "stdmath", "constant", "const", "mathematics", "math", "float", "float32", "32bit", "floating-point", "ieee754", "exponent", "bits", "word" ]} +{ + "name": "@stdlib/constants/float32/num-exponent-bits", + "version": "0.0.0", + "description": "Number of exponent bits for a single-precision floating-point number.", + "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": { + "doc": "./docs", + "example": "./examples", + "include": "./include", + "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", + "stdmath", + "constant", + "const", + "mathematics", + "math", + "float", + "float32", + "32bit", + "floating-point", + "ieee754", + "exponent", + "bits", + "word" + ] +} \ No newline at end of file From 675d0212100ab7e2bbc67533e91aba44b15c3921 Mon Sep 17 00:00:00 2001 From: Shubham Date: Mon, 5 Jan 2026 12:38:38 +0530 Subject: [PATCH 03/10] fix: update copyright years --- .../@stdlib/constants/float32/num-exponent-bits/README.md | 2 +- .../constants/float32/num-exponent-bits/docs/types/index.d.ts | 2 +- .../constants/float32/num-exponent-bits/docs/types/test.ts | 2 +- .../constants/float32/num-exponent-bits/examples/index.js | 2 +- .../include/stdlib/constants/float32/num_exponent_bits.h | 2 +- .../@stdlib/constants/float32/num-exponent-bits/lib/index.js | 2 +- .../@stdlib/constants/float32/num-exponent-bits/test/test.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/README.md b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/README.md index 63d7e68857e1..59ec102ed30f 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/README.md +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/README.md @@ -2,7 +2,7 @@ @license Apache-2.0 -Copyright (c) 2025 The Stdlib Authors. +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. diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/types/index.d.ts b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/types/index.d.ts index 0385b2765473..51c5846a3d87 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/types/index.d.ts @@ -1,7 +1,7 @@ /* * @license Apache-2.0 * -* Copyright (c) 2025 The Stdlib Authors. +* 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. diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/types/test.ts b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/types/test.ts index bb39a3049765..a46af1a81991 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/types/test.ts +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/types/test.ts @@ -1,7 +1,7 @@ /* * @license Apache-2.0 * -* Copyright (c) 2025 The Stdlib Authors. +* 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. diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/examples/index.js b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/examples/index.js index 44a8ceb4ac5c..9deeba8cc5e6 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/examples/index.js +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/examples/index.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2025 The Stdlib Authors. +* 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. diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/include/stdlib/constants/float32/num_exponent_bits.h b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/include/stdlib/constants/float32/num_exponent_bits.h index dc56da46d102..732892be838f 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/include/stdlib/constants/float32/num_exponent_bits.h +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/include/stdlib/constants/float32/num_exponent_bits.h @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2025 The Stdlib Authors. +* 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. diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/lib/index.js b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/lib/index.js index a621b5479445..558e42d2c4e7 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/lib/index.js +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/lib/index.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2025 The Stdlib Authors. +* 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. diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/test/test.js b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/test/test.js index 88305d89ffd1..59f3852e6f20 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/test/test.js +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/test/test.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2025 The Stdlib Authors. +* 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. From 31929b616f0d09d667ff2611064fab2203f33882 Mon Sep 17 00:00:00 2001 From: Shubham Date: Mon, 5 Jan 2026 13:02:48 +0530 Subject: [PATCH 04/10] fix: linitng errors --- .../float32/num-exponent-bits/docs/repl.txt | 4 +- .../float32/num-exponent-bits/package.json | 132 +++++++++--------- 2 files changed, 67 insertions(+), 69 deletions(-) diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/repl.txt b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/repl.txt index bc8518ee6787..6fa1ad0e9f27 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/repl.txt +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/repl.txt @@ -1,7 +1,6 @@ {{alias}} - Number of exponent bits for a single-precision floating- - point number. + Number of exponent bits for a half-precision floating-point number. Examples -------- @@ -10,4 +9,3 @@ See Also -------- - \ No newline at end of file diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/package.json b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/package.json index 4e292406a989..ee63c201cdaa 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/package.json +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/package.json @@ -1,67 +1,67 @@ { - "name": "@stdlib/constants/float32/num-exponent-bits", - "version": "0.0.0", - "description": "Number of exponent bits for a single-precision floating-point number.", - "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": { - "doc": "./docs", - "example": "./examples", - "include": "./include", - "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", - "stdmath", - "constant", - "const", - "mathematics", - "math", - "float", - "float32", - "32bit", - "floating-point", - "ieee754", - "exponent", - "bits", - "word" - ] -} \ No newline at end of file + "name": "@stdlib/constants/float32/num-exponent-bits", + "version": "0.0.0", + "description": "Number of exponent bits for a half-precision floating-point number.", + "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": { + "doc": "./docs", + "example": "./examples", + "include": "./include", + "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", + "stdmath", + "constant", + "const", + "mathematics", + "math", + "float", + "float32", + "64bit", + "floating-point", + "ieee754", + "exponent", + "bits", + "word" + ] +} From 366fdec3b77e852c7ae28ca2a2ba1728aed91bbe Mon Sep 17 00:00:00 2001 From: Shubham Date: Mon, 5 Jan 2026 13:12:18 +0530 Subject: [PATCH 05/10] fix: indentation Signed-off-by: Shubham --- .../constants/float32/num-exponent-bits/test/test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/test/test.js b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/test/test.js index 59f3852e6f20..a2ef7169ecaf 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/test/test.js +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/test/test.js @@ -27,12 +27,12 @@ var FLOAT32_NUM_EXPONENT_BITS = require( './../lib' ); // TESTS // tape( 'main export is a number', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof FLOAT32_NUM_EXPONENT_BITS, 'number', 'main export is a number' ); - t.end(); + t.ok( true, __filename ); + t.strictEqual( typeof FLOAT32_NUM_EXPONENT_BITS, 'number', 'main export is a number' ); + t.end(); }); tape( 'the exported value is 8', function test( t ) { - t.strictEqual( FLOAT32_NUM_EXPONENT_BITS, 8, 'returns expected value' ); - t.end(); + t.strictEqual( FLOAT32_NUM_EXPONENT_BITS, 8, 'returns expected value' ); + t.end(); }); From 564461e57189c6cbb2a7864df5d7b1c909888c22 Mon Sep 17 00:00:00 2001 From: Shubham Date: Mon, 5 Jan 2026 13:12:53 +0530 Subject: [PATCH 06/10] Fix missing newline at end of num_exponent_bits.h Signed-off-by: Shubham --- .../include/stdlib/constants/float32/num_exponent_bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/include/stdlib/constants/float32/num_exponent_bits.h b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/include/stdlib/constants/float32/num_exponent_bits.h index 732892be838f..13a3444807d4 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/include/stdlib/constants/float32/num_exponent_bits.h +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/include/stdlib/constants/float32/num_exponent_bits.h @@ -24,4 +24,4 @@ */ #define STDLIB_CONSTANT_FLOAT32_NUM_EXPONENT_BITS 8 -#endif // !STDLIB_CONSTANTS_FLOAT32_NUM_EXPONENT_BITS_H \ No newline at end of file +#endif // !STDLIB_CONSTANTS_FLOAT32_NUM_EXPONENT_BITS_H From acf797bbb7820483f547834f3b40590c1067a84a Mon Sep 17 00:00:00 2001 From: Shubham Date: Mon, 5 Jan 2026 13:33:45 +0530 Subject: [PATCH 07/10] fix: broken license header in README --- .../@stdlib/constants/float32/num-exponent-bits/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/README.md b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/README.md index 59ec102ed30f..f417586cd034 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/README.md +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/README.md @@ -5,7 +5,7 @@ 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 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 From 595cdcc8d3292f6dfebd822b8e88e55c0c1ac5bf Mon Sep 17 00:00:00 2001 From: Shubham Date: Mon, 5 Jan 2026 20:40:58 +0530 Subject: [PATCH 08/10] Apply suggestions from code review Co-authored-by: Neeraj Pathak Signed-off-by: Shubham --- .../@stdlib/constants/float32/num-exponent-bits/README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/README.md b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/README.md index f417586cd034..e8a515edbaea 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/README.md +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/README.md @@ -134,10 +134,6 @@ Macro for the number of exponent bits for a [single-precision floating-point num [ieee754]: https://en.wikipedia.org/wiki/IEEE_754-1985 - - - - From 3118148399a99311590a924f1eacb8075c1407dc Mon Sep 17 00:00:00 2001 From: Shubham Date: Mon, 5 Jan 2026 20:41:43 +0530 Subject: [PATCH 09/10] fix: apply review suggestions --- .../@stdlib/constants/float32/num-exponent-bits/lib/index.js | 2 +- .../@stdlib/constants/float32/num-exponent-bits/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/lib/index.js b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/lib/index.js index 558e42d2c4e7..875158d9e431 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/lib/index.js +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/lib/index.js @@ -39,7 +39,7 @@ * @type {integer32} * @default 8 */ -var FLOAT32_NUM_EXPONENT_BITS = 8|0; +var FLOAT32_NUM_EXPONENT_BITS = 8|0;// asm type annotation // EXPORTS // diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/package.json b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/package.json index ee63c201cdaa..7191559089d6 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/package.json +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/package.json @@ -1,7 +1,7 @@ { "name": "@stdlib/constants/float32/num-exponent-bits", "version": "0.0.0", - "description": "Number of exponent bits for a half-precision floating-point number.", + "description": "Number of exponent bits for a single-precision floating-point number.", "license": "Apache-2.0", "author": { "name": "The Stdlib Authors", @@ -57,7 +57,7 @@ "math", "float", "float32", - "64bit", + "32bit", "floating-point", "ieee754", "exponent", From 646d7fb19c5fc50855eeafea9be37536ffe5bd0a Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 5 Jan 2026 17:45:18 -0800 Subject: [PATCH 10/10] Apply suggestions from code review Signed-off-by: Athan --- .../@stdlib/constants/float32/num-exponent-bits/docs/repl.txt | 2 +- .../@stdlib/constants/float32/num-exponent-bits/lib/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/repl.txt b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/repl.txt index 6fa1ad0e9f27..b10f5086e422 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/repl.txt +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/docs/repl.txt @@ -1,6 +1,6 @@ {{alias}} - Number of exponent bits for a half-precision floating-point number. + Number of exponent bits for a single-precision floating-point number. Examples -------- diff --git a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/lib/index.js b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/lib/index.js index 875158d9e431..3b43f84b9ce2 100644 --- a/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/lib/index.js +++ b/lib/node_modules/@stdlib/constants/float32/num-exponent-bits/lib/index.js @@ -39,7 +39,7 @@ * @type {integer32} * @default 8 */ -var FLOAT32_NUM_EXPONENT_BITS = 8|0;// asm type annotation +var FLOAT32_NUM_EXPONENT_BITS = 8|0; // asm type annotation // EXPORTS //