Skip to content

Commit 350cadc

Browse files
committed
Auto-generated commit
1 parent 35ebb20 commit 350cadc

File tree

8 files changed

+59
-85
lines changed

8 files changed

+59
-85
lines changed

.github/.keepalive

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2024-08-01T02:35:55.471Z

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ docs/**/node_modules/
101101
pids
102102
*.pid
103103
*.seed
104+
yarn.lock
105+
package-lock.json
104106

105107
# Typescript #
106108
##############

CHANGELOG.md

Lines changed: 34 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -2,105 +2,85 @@
22

33
> Package changelog.
44
5-
<section class="release" id="v0.2.2">
5+
<section class="release" id="unreleased">
66

7-
## 0.2.2 (2024-07-27)
7+
## Unreleased (2024-08-01)
88

9-
No changes reported for this release.
10-
11-
</section>
9+
<section class="commits">
1210

13-
<!-- /.release -->
11+
### Commits
1412

15-
<section class="release" id="v0.2.1">
13+
<details>
1614

17-
## 0.2.1 (2024-02-23)
15+
- [`22c4d29`](https://github.com/stdlib-js/stdlib/commit/22c4d29898e2b5bb4cb071a6b7f62536027eaf28) - **docs:** remove blank line _(by Athan Reines)_
1816

19-
No changes reported for this release.
17+
</details>
2018

2119
</section>
2220

23-
<!-- /.release -->
21+
<!-- /.commits -->
2422

25-
<section class="release" id="v0.2.0">
23+
<section class="contributors">
2624

27-
## 0.2.0 (2024-02-14)
25+
### Contributors
2826

29-
No changes reported for this release.
27+
A total of 1 person contributed to this release. Thank you to this contributor:
28+
29+
- Athan Reines
30+
31+
</section>
32+
33+
<!-- /.contributors -->
3034

3135
</section>
3236

3337
<!-- /.release -->
3438

35-
<section class="release" id="v0.1.1">
39+
<section class="release" id="v0.2.2">
3640

37-
## 0.1.1 (2023-10-09)
41+
## 0.2.2 (2024-07-27)
3842

3943
No changes reported for this release.
4044

4145
</section>
4246

4347
<!-- /.release -->
4448

45-
<section class="release" id="v0.1.0">
46-
47-
## 0.1.0 (2023-09-23)
48-
49-
<section class="features">
49+
<section class="release" id="v0.2.1">
5050

51-
### Features
51+
## 0.2.1 (2024-02-23)
5252

53-
- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9) - update minimum TypeScript version
53+
No changes reported for this release.
5454

5555
</section>
5656

57-
<!-- /.features -->
58-
59-
<section class="breaking-changes">
57+
<!-- /.release -->
6058

61-
### BREAKING CHANGES
59+
<section class="release" id="v0.2.0">
6260

63-
- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9): update minimum TypeScript version
64-
- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9): update minimum TypeScript version to 4.1
61+
## 0.2.0 (2024-02-14)
6562

66-
- To migrate, users should upgrade their TypeScript version to at least version 4.1.
63+
No changes reported for this release.
6764

6865
</section>
6966

70-
<!-- /.breaking-changes -->
71-
72-
<section class="commits">
73-
74-
### Commits
67+
<!-- /.release -->
7568

76-
<details>
69+
<section class="release" id="v0.1.1">
7770

78-
- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9) - **feat:** update minimum TypeScript version _(by Philipp Burckhardt)_
79-
- [`b734544`](https://github.com/stdlib-js/stdlib/commit/b734544a52783cb7f5cf1115f4355cabe46d0abe) - **refactor:** use strictEqual checks _(by Philipp Burckhardt)_
80-
- [`ce7e336`](https://github.com/stdlib-js/stdlib/commit/ce7e3367c0f9477773fe76dd0eca64dc6ad33c02) - **docs:** update equations _(by Philipp Burckhardt)_
81-
- [`5363054`](https://github.com/stdlib-js/stdlib/commit/536305400d60ff7450198139f2f9aef9eb06581a) - **docs:** resolve C lint errors _(by Athan Reines)_
82-
- [`b9e414a`](https://github.com/stdlib-js/stdlib/commit/b9e414a8958f7e59ebf824db6923eb6aba0010a0) - **docs:** resolve C lint errors _(by Athan Reines)_
83-
- [`28e1c84`](https://github.com/stdlib-js/stdlib/commit/28e1c84390d88044883c9ef940a12f38d66ea3ef) - **docs:** resolve C lint errors _(by Athan Reines)_
84-
- [`c5da1f9`](https://github.com/stdlib-js/stdlib/commit/c5da1f9a22b1033d40115798acf13a09acf9410d) - **docs:** render equations via math code blocks _(by Philipp Burckhardt)_
71+
## 0.1.1 (2023-10-09)
8572

86-
</details>
73+
No changes reported for this release.
8774

8875
</section>
8976

90-
<!-- /.commits -->
91-
92-
<section class="contributors">
93-
94-
### Contributors
95-
96-
A total of 2 people contributed to this release. Thank you to the following contributors:
77+
<!-- /.release -->
9778

98-
- Athan Reines
99-
- Philipp Burckhardt
79+
<section class="release" id="v0.1.0">
10080

101-
</section>
81+
## 0.1.0 (2023-09-23)
10282

103-
<!-- /.contributors -->
83+
No changes reported for this release.
10484

10585
</section>
10686

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
293293
[npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-special-signumf.svg
294294
[npm-url]: https://npmjs.org/package/@stdlib/math-base-special-signumf
295295

296-
[test-image]: https://github.com/stdlib-js/math-base-special-signumf/actions/workflows/test.yml/badge.svg?branch=v0.2.2
297-
[test-url]: https://github.com/stdlib-js/math-base-special-signumf/actions/workflows/test.yml?query=branch:v0.2.2
296+
[test-image]: https://github.com/stdlib-js/math-base-special-signumf/actions/workflows/test.yml/badge.svg?branch=main
297+
[test-url]: https://github.com/stdlib-js/math-base-special-signumf/actions/workflows/test.yml?query=branch:main
298298

299299
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-special-signumf/main.svg
300300
[coverage-url]: https://codecov.io/github/stdlib-js/math-base-special-signumf?branch=main

benchmark/c/benchmark.c

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
* limitations under the License.
1717
*/
1818

19-
/**
20-
* Benchmark `signbit`.
21-
*/
2219
#include <stdlib.h>
2320
#include <stdio.h>
2421
#include <math.h>
@@ -32,7 +29,7 @@
3229
/**
3330
* Prints the TAP version.
3431
*/
35-
void print_version() {
32+
static void print_version( void ) {
3633
printf( "TAP version 13\n" );
3734
}
3835

@@ -42,7 +39,7 @@ void print_version() {
4239
* @param total total number of tests
4340
* @param passing total number of passing tests
4441
*/
45-
void print_summary( int total, int passing ) {
42+
static void print_summary( int total, int passing ) {
4643
printf( "#\n" );
4744
printf( "1..%d\n", total ); // TAP plan
4845
printf( "# total %d\n", total );
@@ -56,7 +53,7 @@ void print_summary( int total, int passing ) {
5653
*
5754
* @param elapsed elapsed time in seconds
5855
*/
59-
void print_results( double elapsed ) {
56+
static void print_results( double elapsed ) {
6057
double rate = (double)ITERATIONS / elapsed;
6158
printf( " ---\n" );
6259
printf( " iterations: %d\n", ITERATIONS );
@@ -70,18 +67,18 @@ void print_results( double elapsed ) {
7067
*
7168
* @return clock time
7269
*/
73-
double tic() {
70+
static double tic( void ) {
7471
struct timeval now;
7572
gettimeofday( &now, NULL );
7673
return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
7774
}
7875

7976
/**
80-
* Generates a random number on the interval [0,1].
77+
* Generates a random number on the interval [0,1).
8178
*
8279
* @return random number
8380
*/
84-
float rand_float() {
81+
static float rand_float( void ) {
8582
int r = rand();
8683
return (float)r / ( (float)RAND_MAX + 1.0f );
8784
}
@@ -91,7 +88,7 @@ float rand_float() {
9188
*
9289
* @return elapsed time in seconds
9390
*/
94-
double benchmark() {
91+
static double benchmark( void ) {
9592
double elapsed;
9693
float x;
9794
float y;

benchmark/c/native/benchmark.c

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
* limitations under the License.
1717
*/
1818

19-
/**
20-
* Benchmark `signumf`.
21-
*/
2219
#include "stdlib/math/base/special/signumf.h"
2320
#include <stdlib.h>
2421
#include <stdio.h>
@@ -33,7 +30,7 @@
3330
/**
3431
* Prints the TAP version.
3532
*/
36-
void print_version() {
33+
static void print_version( void ) {
3734
printf( "TAP version 13\n" );
3835
}
3936

@@ -43,7 +40,7 @@ void print_version() {
4340
* @param total total number of tests
4441
* @param passing total number of passing tests
4542
*/
46-
void print_summary( int total, int passing ) {
43+
static void print_summary( int total, int passing ) {
4744
printf( "#\n" );
4845
printf( "1..%d\n", total ); // TAP plan
4946
printf( "# total %d\n", total );
@@ -57,7 +54,7 @@ void print_summary( int total, int passing ) {
5754
*
5855
* @param elapsed elapsed time in seconds
5956
*/
60-
void print_results( double elapsed ) {
57+
static void print_results( double elapsed ) {
6158
double rate = (double)ITERATIONS / elapsed;
6259
printf( " ---\n" );
6360
printf( " iterations: %d\n", ITERATIONS );
@@ -71,18 +68,18 @@ void print_results( double elapsed ) {
7168
*
7269
* @return clock time
7370
*/
74-
double tic() {
71+
static double tic( void ) {
7572
struct timeval now;
7673
gettimeofday( &now, NULL );
7774
return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
7875
}
7976

8077
/**
81-
* Generates a random number on the interval [0,1].
78+
* Generates a random number on the interval [0,1).
8279
*
8380
* @return random number
8481
*/
85-
float rand_float() {
82+
static float rand_float( void ) {
8683
int r = rand();
8784
return (float)r / ( (float)RAND_MAX + 1.0f );
8885
}
@@ -92,7 +89,7 @@ float rand_float() {
9289
*
9390
* @return elapsed time in seconds
9491
*/
95-
double benchmark() {
92+
static double benchmark( void ) {
9693
double elapsed;
9794
float x;
9895
float y;

include/stdlib/math/base/special/signumf.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
* limitations under the License.
1717
*/
1818

19-
/**
20-
* Header file containing function declarations.
21-
*/
2219
#ifndef STDLIB_MATH_BASE_SPECIAL_SIGNUMF_H
2320
#define STDLIB_MATH_BASE_SPECIAL_SIGNUMF_H
2421

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,21 @@
4141
},
4242
"dependencies": {
4343
"@stdlib/math-base-assert-is-nanf": "^0.2.2",
44-
"@stdlib/math-base-napi-unary": "^0.2.1",
44+
"@stdlib/math-base-napi-unary": "^0.2.3",
4545
"@stdlib/utils-library-manifest": "^0.2.2"
4646
},
4747
"devDependencies": {
48-
"@stdlib/constants-float32-ninf": "^0.2.1",
49-
"@stdlib/constants-float32-pinf": "^0.2.1",
50-
"@stdlib/math-base-assert-is-negative-zerof": "^0.1.2",
48+
"@stdlib/constants-float32-ninf": "^0.2.2",
49+
"@stdlib/constants-float32-pinf": "^0.2.2",
50+
"@stdlib/math-base-assert-is-negative-zerof": "^0.1.3",
5151
"@stdlib/math-base-assert-is-positive-zerof": "^0.1.3",
52-
"@stdlib/math-base-special-round": "^0.2.1",
52+
"@stdlib/math-base-special-round": "^0.3.0",
5353
"@stdlib/random-base-randu": "^0.2.1",
5454
"@stdlib/utils-try-require": "^0.2.2",
5555
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5656
"istanbul": "^0.4.1",
5757
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
58-
"@stdlib/bench-harness": "^0.2.1"
58+
"@stdlib/bench-harness": "^0.2.2"
5959
},
6060
"engines": {
6161
"node": ">=0.10.0",

0 commit comments

Comments
 (0)