Skip to content

Commit ec5b995

Browse files
committed
Auto-generated commit
1 parent 79f9b36 commit ec5b995

File tree

6 files changed

+31
-55
lines changed

6 files changed

+31
-55
lines changed

.github/.keepalive

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2024-08-01T01:58:26.959Z

.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: 15 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
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

99
<section class="commits">
1010

1111
### Commits
1212

1313
<details>
1414

15-
- [`d04dcbd`](https://github.com/stdlib-js/stdlib/commit/d04dcbd6dc3b0bf4a89bd3947d317fa5ff15bb38) - **docs:** remove private annotations in C comments _(by Philipp Burckhardt)_
15+
- [`22c4d29`](https://github.com/stdlib-js/stdlib/commit/22c4d29898e2b5bb4cb071a6b7f62536027eaf28) - **docs:** remove blank line _(by Athan Reines)_
1616

1717
</details>
1818

@@ -26,7 +26,7 @@
2626

2727
A total of 1 person contributed to this release. Thank you to this contributor:
2828

29-
- Philipp Burckhardt
29+
- Athan Reines
3030

3131
</section>
3232

@@ -36,65 +36,41 @@ A total of 1 person contributed to this release. Thank you to this contributor:
3636

3737
<!-- /.release -->
3838

39-
<section class="release" id="v0.2.1">
39+
<section class="release" id="v0.2.2">
4040

41-
## 0.2.1 (2024-02-22)
41+
## 0.2.2 (2024-07-27)
4242

4343
No changes reported for this release.
4444

4545
</section>
4646

4747
<!-- /.release -->
4848

49-
<section class="release" id="v0.2.0">
49+
<section class="release" id="v0.2.1">
5050

51-
## 0.2.0 (2024-02-14)
51+
## 0.2.1 (2024-02-22)
5252

5353
No changes reported for this release.
5454

5555
</section>
5656

5757
<!-- /.release -->
5858

59-
<section class="release" id="v0.1.0">
60-
61-
## 0.1.0 (2024-01-25)
62-
63-
<section class="features">
64-
65-
### Features
66-
67-
- [`f21f6bf`](https://github.com/stdlib-js/stdlib/commit/f21f6bf27b244b94af0053364d95286aa37dfa52) - add `number/float32/base/assert/is-same-value`
68-
69-
</section>
70-
71-
<!-- /.features -->
72-
73-
<section class="commits">
74-
75-
### Commits
76-
77-
<details>
59+
<section class="release" id="v0.2.0">
7860

79-
- [`f21f6bf`](https://github.com/stdlib-js/stdlib/commit/f21f6bf27b244b94af0053364d95286aa37dfa52) - **feat:** add `number/float32/base/assert/is-same-value` _(by Athan Reines)_
61+
## 0.2.0 (2024-02-14)
8062

81-
</details>
63+
No changes reported for this release.
8264

8365
</section>
8466

85-
<!-- /.commits -->
86-
87-
<section class="contributors">
88-
89-
### Contributors
90-
91-
A total of 1 person contributed to this release. Thank you to this contributor:
67+
<!-- /.release -->
9268

93-
- Athan Reines
69+
<section class="release" id="v0.1.0">
9470

95-
</section>
71+
## 0.1.0 (2024-01-25)
9672

97-
<!-- /.contributors -->
73+
No changes reported for this release.
9874

9975
</section>
10076

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
289289
[npm-image]: http://img.shields.io/npm/v/@stdlib/number-float32-base-assert-is-same-value.svg
290290
[npm-url]: https://npmjs.org/package/@stdlib/number-float32-base-assert-is-same-value
291291

292-
[test-image]: https://github.com/stdlib-js/number-float32-base-assert-is-same-value/actions/workflows/test.yml/badge.svg?branch=v0.2.2
293-
[test-url]: https://github.com/stdlib-js/number-float32-base-assert-is-same-value/actions/workflows/test.yml?query=branch:v0.2.2
292+
[test-image]: https://github.com/stdlib-js/number-float32-base-assert-is-same-value/actions/workflows/test.yml/badge.svg?branch=main
293+
[test-url]: https://github.com/stdlib-js/number-float32-base-assert-is-same-value/actions/workflows/test.yml?query=branch:main
294294

295295
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/number-float32-base-assert-is-same-value/main.svg
296296
[coverage-url]: https://codecov.io/github/stdlib-js/number-float32-base-assert-is-same-value?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 `float32_is_same_value`.
21-
*/
2219
#include "stdlib/number/float32/base/assert/is_same_value.h"
2320
#include <stdlib.h>
2421
#include <stdio.h>
@@ -35,7 +32,7 @@
3532
/**
3633
* Prints the TAP version.
3734
*/
38-
void print_version( void ) {
35+
static void print_version( void ) {
3936
printf( "TAP version 13\n" );
4037
}
4138

@@ -45,7 +42,7 @@ void print_version( void ) {
4542
* @param total total number of tests
4643
* @param passing total number of passing tests
4744
*/
48-
void print_summary( int total, int passing ) {
45+
static void print_summary( int total, int passing ) {
4946
printf( "#\n" );
5047
printf( "1..%d\n", total ); // TAP plan
5148
printf( "# total %d\n", total );
@@ -59,7 +56,7 @@ void print_summary( int total, int passing ) {
5956
*
6057
* @param elapsed elapsed time in seconds
6158
*/
62-
void print_results( double elapsed ) {
59+
static void print_results( double elapsed ) {
6360
double rate = (double)ITERATIONS / elapsed;
6461
printf( " ---\n" );
6562
printf( " iterations: %d\n", ITERATIONS );
@@ -73,18 +70,18 @@ void print_results( double elapsed ) {
7370
*
7471
* @return clock time
7572
*/
76-
double tic( void ) {
73+
static double tic( void ) {
7774
struct timeval now;
7875
gettimeofday( &now, NULL );
7976
return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
8077
}
8178

8279
/**
83-
* Generates a random number on the interval [0,1].
80+
* Generates a random number on the interval [0,1).
8481
*
8582
* @return random number
8683
*/
87-
float rand_float( void ) {
84+
static float rand_float( void ) {
8885
int r = rand();
8986
return (float)r / ( (float)RAND_MAX + 1.0f );
9087
}
@@ -94,7 +91,7 @@ float rand_float( void ) {
9491
*
9592
* @return elapsed time in seconds
9693
*/
97-
double benchmark( void ) {
94+
static double benchmark( void ) {
9895
double elapsed;
9996
double t;
10097
float x;

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@
4141
},
4242
"dependencies": {
4343
"@stdlib/napi-argv": "^0.2.2",
44-
"@stdlib/napi-argv-float": "^0.2.1",
44+
"@stdlib/napi-argv-float": "^0.2.2",
4545
"@stdlib/napi-export": "^0.2.2",
46-
"@stdlib/utils-library-manifest": "^0.2.1"
46+
"@stdlib/utils-library-manifest": "^0.2.2"
4747
},
4848
"devDependencies": {
4949
"@stdlib/assert-is-boolean": "^0.2.2",
5050
"@stdlib/boolean-ctor": "^0.2.2",
51-
"@stdlib/number-float64-base-to-float32": "^0.2.1",
51+
"@stdlib/number-float64-base-to-float32": "^0.2.2",
5252
"@stdlib/utils-try-require": "^0.2.2",
5353
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5454
"istanbul": "^0.4.1",
5555
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
56-
"@stdlib/bench-harness": "^0.2.1"
56+
"@stdlib/bench-harness": "^0.2.2"
5757
},
5858
"engines": {
5959
"node": ">=0.10.0",

0 commit comments

Comments
 (0)