diff --git a/CHANGELOG.md b/CHANGELOG.md index fd48616..bc015cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,40 @@ > Package changelog. +
+ +## Unreleased (2024-07-28) + +
+ +### Commits + +
+ +- [`2777e4b`](https://github.com/stdlib-js/stdlib/commit/2777e4be161869d09406e3b17947d24c64b47af2) - **bench:** resolve lint errors in benchmarks _(by Athan Reines)_ + +
+ +
+ + + +
+ +### Contributors + +A total of 1 person contributed to this release. Thank you to this contributor: + +- Athan Reines + +
+ + + +
+ + +
## 0.1.1 (2024-07-27) diff --git a/README.md b/README.md index c062d23..be03c1d 100644 --- a/README.md +++ b/README.md @@ -310,8 +310,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. [npm-image]: http://img.shields.io/npm/v/@stdlib/complex-float32-conj.svg [npm-url]: https://npmjs.org/package/@stdlib/complex-float32-conj -[test-image]: https://github.com/stdlib-js/complex-float32-conj/actions/workflows/test.yml/badge.svg?branch=v0.1.1 -[test-url]: https://github.com/stdlib-js/complex-float32-conj/actions/workflows/test.yml?query=branch:v0.1.1 +[test-image]: https://github.com/stdlib-js/complex-float32-conj/actions/workflows/test.yml/badge.svg?branch=main +[test-url]: https://github.com/stdlib-js/complex-float32-conj/actions/workflows/test.yml?query=branch:main [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/complex-float32-conj/main.svg [coverage-url]: https://codecov.io/github/stdlib-js/complex-float32-conj?branch=main diff --git a/benchmark/c/benchmark.c b/benchmark/c/benchmark.c index 2d9bfc3..a57fe66 100644 --- a/benchmark/c/benchmark.c +++ b/benchmark/c/benchmark.c @@ -29,7 +29,7 @@ /** * Prints the TAP version. */ -void print_version() { +static void print_version( void ) { printf( "TAP version 13\n" ); } @@ -39,7 +39,7 @@ void print_version() { * @param total total number of tests * @param passing total number of passing tests */ -void print_summary( int total, int passing ) { +static void print_summary( int total, int passing ) { printf( "#\n" ); printf( "1..%d\n", total ); // TAP plan printf( "# total %d\n", total ); @@ -53,7 +53,7 @@ void print_summary( int total, int passing ) { * * @param elapsed elapsed time in seconds */ -void print_results( double elapsed ) { +static void print_results( double elapsed ) { double rate = (double)ITERATIONS / elapsed; printf( " ---\n" ); printf( " iterations: %d\n", ITERATIONS ); @@ -67,18 +67,18 @@ void print_results( double elapsed ) { * * @return clock time */ -double tic() { +static double tic( void ) { struct timeval now; gettimeofday( &now, NULL ); return (double)now.tv_sec + (double)now.tv_usec/1.0e6; } /** -* Generates a random number on the interval [0,1]. +* Generates a random number on the interval [0,1). * * @return random number */ -float rand_float() { +static float rand_float( void ) { int r = rand(); return (float)r / ( (float)RAND_MAX + 1.0f ); } @@ -88,7 +88,7 @@ float rand_float() { * * @return elapsed time in seconds */ -double benchmark() { +static double benchmark( void ) { double elapsed; float re; float im; diff --git a/benchmark/c/native/benchmark.c b/benchmark/c/native/benchmark.c index 14fe0ac..a9d4b77 100644 --- a/benchmark/c/native/benchmark.c +++ b/benchmark/c/native/benchmark.c @@ -34,7 +34,7 @@ /** * Prints the TAP version. */ -void print_version() { +static void print_version( void ) { printf( "TAP version 13\n" ); } @@ -44,7 +44,7 @@ void print_version() { * @param total total number of tests * @param passing total number of passing tests */ -void print_summary( int total, int passing ) { +static void print_summary( int total, int passing ) { printf( "#\n" ); printf( "1..%d\n", total ); // TAP plan printf( "# total %d\n", total ); @@ -58,7 +58,7 @@ void print_summary( int total, int passing ) { * * @param elapsed elapsed time in seconds */ -void print_results( double elapsed ) { +static void print_results( double elapsed ) { double rate = (double)ITERATIONS / elapsed; printf( " ---\n" ); printf( " iterations: %d\n", ITERATIONS ); @@ -72,18 +72,18 @@ void print_results( double elapsed ) { * * @return clock time */ -double tic() { +static double tic( void ) { struct timeval now; gettimeofday( &now, NULL ); return (double)now.tv_sec + (double)now.tv_usec/1.0e6; } /** -* Generates a random number on the interval [0,1]. +* Generates a random number on the interval [0,1). * * @return random number */ -float rand_float() { +static float rand_float( void ) { int r = rand(); return (float)r / ( (float)RAND_MAX + 1.0f ); } @@ -93,7 +93,7 @@ float rand_float() { * * @return elapsed time in seconds */ -double benchmark() { +static double benchmark( void ) { stdlib_complex64_t z; stdlib_complex64_t v; double elapsed; diff --git a/package.json b/package.json index 33f1e5e..b573510 100644 --- a/package.json +++ b/package.json @@ -44,15 +44,15 @@ }, "devDependencies": { "@stdlib/array-filled-by": "^0.2.1", - "@stdlib/assert-is-complex64": "^0.2.1", - "@stdlib/complex-float32-imag": "^0.1.0", - "@stdlib/complex-float32-real": "^0.1.0", + "@stdlib/assert-is-complex64": "^0.2.2", + "@stdlib/complex-float32-imag": "^0.1.1", + "@stdlib/complex-float32-real": "^0.1.1", "@stdlib/random-base-discrete-uniform": "^0.2.1", "@stdlib/random-base-randu": "^0.2.1", "tape": "git+https://github.com/kgryte/tape.git#fix/globby", "istanbul": "^0.4.1", "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.1" + "@stdlib/bench-harness": "^0.2.2" }, "engines": { "node": ">=0.10.0",