Skip to content

Commit 18c4ae9

Browse files
committed
Auto-generated commit
1 parent 69db575 commit 18c4ae9

File tree

5 files changed

+53
-19
lines changed

5 files changed

+53
-19
lines changed

CHANGELOG.md

+34
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,40 @@
22

33
> Package changelog.
44
5+
<section class="release" id="unreleased">
6+
7+
## Unreleased (2024-07-28)
8+
9+
<section class="commits">
10+
11+
### Commits
12+
13+
<details>
14+
15+
- [`2777e4b`](https://github.com/stdlib-js/stdlib/commit/2777e4be161869d09406e3b17947d24c64b47af2) - **bench:** resolve lint errors in benchmarks _(by Athan Reines)_
16+
17+
</details>
18+
19+
</section>
20+
21+
<!-- /.commits -->
22+
23+
<section class="contributors">
24+
25+
### Contributors
26+
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 -->
34+
35+
</section>
36+
37+
<!-- /.release -->
38+
539
<section class="release" id="v0.1.1">
640

741
## 0.1.1 (2024-07-27)

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
291291
[npm-image]: http://img.shields.io/npm/v/@stdlib/complex-float64-real.svg
292292
[npm-url]: https://npmjs.org/package/@stdlib/complex-float64-real
293293

294-
[test-image]: https://github.com/stdlib-js/complex-float64-real/actions/workflows/test.yml/badge.svg?branch=v0.1.1
295-
[test-url]: https://github.com/stdlib-js/complex-float64-real/actions/workflows/test.yml?query=branch:v0.1.1
294+
[test-image]: https://github.com/stdlib-js/complex-float64-real/actions/workflows/test.yml/badge.svg?branch=main
295+
[test-url]: https://github.com/stdlib-js/complex-float64-real/actions/workflows/test.yml?query=branch:main
296296

297297
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/complex-float64-real/main.svg
298298
[coverage-url]: https://codecov.io/github/stdlib-js/complex-float64-real?branch=main

benchmark/c/benchmark.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/**
3030
* Prints the TAP version.
3131
*/
32-
void print_version() {
32+
static void print_version( void ) {
3333
printf( "TAP version 13\n" );
3434
}
3535

@@ -39,7 +39,7 @@ void print_version() {
3939
* @param total total number of tests
4040
* @param passing total number of passing tests
4141
*/
42-
void print_summary( int total, int passing ) {
42+
static void print_summary( int total, int passing ) {
4343
printf( "#\n" );
4444
printf( "1..%d\n", total ); // TAP plan
4545
printf( "# total %d\n", total );
@@ -53,7 +53,7 @@ void print_summary( int total, int passing ) {
5353
*
5454
* @param elapsed elapsed time in seconds
5555
*/
56-
void print_results( double elapsed ) {
56+
static void print_results( double elapsed ) {
5757
double rate = (double)ITERATIONS / elapsed;
5858
printf( " ---\n" );
5959
printf( " iterations: %d\n", ITERATIONS );
@@ -67,18 +67,18 @@ void print_results( double elapsed ) {
6767
*
6868
* @return clock time
6969
*/
70-
double tic() {
70+
static double tic( void ) {
7171
struct timeval now;
7272
gettimeofday( &now, NULL );
7373
return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
7474
}
7575

7676
/**
77-
* Generates a random double on the interval [0,1].
77+
* Generates a random number on the interval [0,1).
7878
*
79-
* @return random double
79+
* @return random number
8080
*/
81-
double rand_double() {
81+
static double rand_double( void ) {
8282
int r = rand();
8383
return (double)r / ( (double)RAND_MAX + 1.0 );
8484
}
@@ -88,7 +88,7 @@ double rand_double() {
8888
*
8989
* @return elapsed time in seconds
9090
*/
91-
double benchmark() {
91+
static double benchmark( void ) {
9292
double elapsed;
9393
double re;
9494
double im;

benchmark/c/native/benchmark.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/**
3333
* Prints the TAP version.
3434
*/
35-
void print_version() {
35+
static void print_version( void ) {
3636
printf( "TAP version 13\n" );
3737
}
3838

@@ -42,7 +42,7 @@ void print_version() {
4242
* @param total total number of tests
4343
* @param passing total number of passing tests
4444
*/
45-
void print_summary( int total, int passing ) {
45+
static void print_summary( int total, int passing ) {
4646
printf( "#\n" );
4747
printf( "1..%d\n", total ); // TAP plan
4848
printf( "# total %d\n", total );
@@ -56,7 +56,7 @@ void print_summary( int total, int passing ) {
5656
*
5757
* @param elapsed elapsed time in seconds
5858
*/
59-
void print_results( double elapsed ) {
59+
static void print_results( double elapsed ) {
6060
double rate = (double)ITERATIONS / elapsed;
6161
printf( " ---\n" );
6262
printf( " iterations: %d\n", ITERATIONS );
@@ -70,18 +70,18 @@ void print_results( double elapsed ) {
7070
*
7171
* @return clock time
7272
*/
73-
double tic() {
73+
static double tic( void ) {
7474
struct timeval now;
7575
gettimeofday( &now, NULL );
7676
return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
7777
}
7878

7979
/**
80-
* Generates a random number on the interval [0,1].
80+
* Generates a random number on the interval [0,1).
8181
*
8282
* @return random number
8383
*/
84-
double rand_double() {
84+
static double rand_double( void ) {
8585
int r = rand();
8686
return (double)r / ( (double)RAND_MAX + 1.0 );
8787
}
@@ -91,7 +91,7 @@ double rand_double() {
9191
*
9292
* @return elapsed time in seconds
9393
*/
94-
double benchmark() {
94+
static double benchmark( void ) {
9595
stdlib_complex128_t z;
9696
double elapsed;
9797
double re;

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"url": "https://github.com/stdlib-js/stdlib/issues"
4040
},
4141
"dependencies": {
42-
"@stdlib/complex-float64-ctor": "^0.0.1",
42+
"@stdlib/complex-float64-ctor": "^0.0.3",
4343
"@stdlib/types": "^0.3.2",
4444
"@stdlib/utils-library-manifest": "^0.2.2"
4545
},
@@ -51,7 +51,7 @@
5151
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5252
"istanbul": "^0.4.1",
5353
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
54-
"@stdlib/bench-harness": "^0.2.1"
54+
"@stdlib/bench-harness": "^0.2.2"
5555
},
5656
"engines": {
5757
"node": ">=0.10.0",

0 commit comments

Comments
 (0)