@stdlib/number-float32-base-exponent 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -255,8 +255,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
255
255
  [npm-image]: http://img.shields.io/npm/v/@stdlib/number-float32-base-exponent.svg
256
256
  [npm-url]: https://npmjs.org/package/@stdlib/number-float32-base-exponent
257
257
 
258
- [test-image]: https://github.com/stdlib-js/number-float32-base-exponent/actions/workflows/test.yml/badge.svg?branch=v0.2.0
259
- [test-url]: https://github.com/stdlib-js/number-float32-base-exponent/actions/workflows/test.yml?query=branch:v0.2.0
258
+ [test-image]: https://github.com/stdlib-js/number-float32-base-exponent/actions/workflows/test.yml/badge.svg?branch=v0.2.2
259
+ [test-url]: https://github.com/stdlib-js/number-float32-base-exponent/actions/workflows/test.yml?query=branch:v0.2.2
260
260
 
261
261
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/number-float32-base-exponent/main.svg
262
262
  [coverage-url]: https://codecov.io/github/stdlib-js/number-float32-base-exponent?branch=main
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/number-float32-base-exponent",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Return an integer corresponding to the unbiased exponent of a single-precision floating-point number.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -14,22 +14,16 @@
14
14
  }
15
15
  ],
16
16
  "main": "./lib",
17
+ "gypfile": false,
17
18
  "directories": {
18
- "benchmark": "./benchmark",
19
19
  "doc": "./docs",
20
- "example": "./examples",
21
20
  "include": "./include",
22
21
  "lib": "./lib",
23
22
  "src": "./src",
24
- "test": "./test"
23
+ "dist": "./dist"
25
24
  },
26
25
  "types": "./docs/types",
27
- "scripts": {
28
- "test": "make test",
29
- "test-cov": "make test-cov",
30
- "examples": "make examples",
31
- "benchmark": "make benchmark"
32
- },
26
+ "scripts": {},
33
27
  "homepage": "https://stdlib.io",
34
28
  "repository": {
35
29
  "type": "git",
@@ -39,27 +33,12 @@
39
33
  "url": "https://github.com/stdlib-js/stdlib/issues"
40
34
  },
41
35
  "dependencies": {
42
- "@stdlib/constants-float32-exponent-bias": "^0.2.0",
43
- "@stdlib/constants-float32-exponent-mask": "^0.2.0",
44
- "@stdlib/number-float32-base-to-word": "^0.2.0",
45
- "@stdlib/utils-library-manifest": "^0.2.0"
46
- },
47
- "devDependencies": {
48
- "@stdlib/constants-float32-ninf": "^0.1.1",
49
- "@stdlib/constants-float32-pinf": "^0.1.1",
50
- "@stdlib/math-base-assert-is-nan": "^0.1.1",
51
- "@stdlib/math-base-special-pow": "^0.1.0",
52
- "@stdlib/math-base-special-round": "^0.1.1",
53
- "@stdlib/number-float32-base-to-binary-string": "^0.1.1",
54
- "@stdlib/number-float64-base-to-float32": "^0.1.1",
55
- "@stdlib/random-base-randu": "^0.1.0",
56
- "@stdlib/utils-try-require": "^0.2.0",
57
- "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
58
- "istanbul": "^0.4.1",
59
- "tap-min": "git+https://github.com/Planeshifter/tap-min.git",
60
- "@stdlib/bench-harness": "^0.1.2",
61
- "@stdlib/bench": "^0.3.1"
36
+ "@stdlib/constants-float32-exponent-bias": "^0.2.1",
37
+ "@stdlib/constants-float32-exponent-mask": "^0.2.1",
38
+ "@stdlib/number-float32-base-to-word": "^0.2.1",
39
+ "@stdlib/utils-library-manifest": "^0.2.1"
62
40
  },
41
+ "devDependencies": {},
63
42
  "engines": {
64
43
  "node": ">=0.10.0",
65
44
  "npm": ">2.7.0"
package/src/main.c CHANGED
@@ -26,7 +26,7 @@
26
26
  * Returns the integer corresponding to the unbiased exponent of a single-precision floating-point number.
27
27
  *
28
28
  * @param x input value
29
- * @returns unbiased exponent
29
+ * @return unbiased exponent
30
30
  *
31
31
  * @example
32
32
  * #include <stdint.h>
package/include.gypi DELETED
@@ -1,53 +0,0 @@
1
- # @license Apache-2.0
2
- #
3
- # Copyright (c) 2022 The Stdlib Authors.
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
- # A GYP include file for building a Node.js native add-on.
18
- #
19
- # Main documentation:
20
- #
21
- # [1]: https://gyp.gsrc.io/docs/InputFormatReference.md
22
- # [2]: https://gyp.gsrc.io/docs/UserDocumentation.md
23
- {
24
- # Define variables to be used throughout the configuration for all targets:
25
- 'variables': {
26
- # Source directory:
27
- 'src_dir': './src',
28
-
29
- # Include directories:
30
- 'include_dirs': [
31
- '<!@(node -e "var arr = require(\'@stdlib/utils-library-manifest\')(\'./manifest.json\',{},{\'basedir\':process.cwd(),\'paths\':\'posix\'}).include; for ( var i = 0; i < arr.length; i++ ) { console.log( arr[ i ] ); }")',
32
- ],
33
-
34
- # Add-on destination directory:
35
- 'addon_output_dir': './src',
36
-
37
- # Source files:
38
- 'src_files': [
39
- '<(src_dir)/addon.c',
40
- '<!@(node -e "var arr = require(\'@stdlib/utils-library-manifest\')(\'./manifest.json\',{},{\'basedir\':process.cwd(),\'paths\':\'posix\'}).src; for ( var i = 0; i < arr.length; i++ ) { console.log( arr[ i ] ); }")',
41
- ],
42
-
43
- # Library dependencies:
44
- 'libraries': [
45
- '<!@(node -e "var arr = require(\'@stdlib/utils-library-manifest\')(\'./manifest.json\',{},{\'basedir\':process.cwd(),\'paths\':\'posix\'}).libraries; for ( var i = 0; i < arr.length; i++ ) { console.log( arr[ i ] ); }")',
46
- ],
47
-
48
- # Library directories:
49
- 'library_dirs': [
50
- '<!@(node -e "var arr = require(\'@stdlib/utils-library-manifest\')(\'./manifest.json\',{},{\'basedir\':process.cwd(),\'paths\':\'posix\'}).libpath; for ( var i = 0; i < arr.length; i++ ) { console.log( arr[ i ] ); }")',
51
- ],
52
- }, # end variables
53
- }