From 4f2d1dbe2ec3edb96d28ccc6f993734d1050c674 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 28 Jul 2024 03:50:02 +0000 Subject: [PATCH] Auto-generated commit --- CHANGELOG.md | 35 ++++++++++++++++++++++++++++++++++ README.md | 4 ++-- benchmark/c/native/benchmark.c | 17 +++++++---------- package.json | 6 +++--- 4 files changed, 47 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3b1ca4..95425c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,41 @@ > Package changelog. +
+ +## Unreleased (2024-07-28) + +
+ +### Commits + +
+ +- [`5b4c5ca`](https://github.com/stdlib-js/stdlib/commit/5b4c5cadb3d2fed46829dbf32f217726658e46bb) - **bench:** resolve lint errors _(by Athan Reines)_ +- [`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.3.0 (2024-07-27) diff --git a/README.md b/README.md index ee97374..4890625 100644 --- a/README.md +++ b/README.md @@ -252,8 +252,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. [npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-assert-is-nonpositive-finite.svg [npm-url]: https://npmjs.org/package/@stdlib/math-base-assert-is-nonpositive-finite -[test-image]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/actions/workflows/test.yml/badge.svg?branch=v0.3.0 -[test-url]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/actions/workflows/test.yml?query=branch:v0.3.0 +[test-image]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/actions/workflows/test.yml/badge.svg?branch=main +[test-url]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/actions/workflows/test.yml?query=branch:main [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-assert-is-nonpositive-finite/main.svg [coverage-url]: https://codecov.io/github/stdlib-js/math-base-assert-is-nonpositive-finite?branch=main diff --git a/benchmark/c/native/benchmark.c b/benchmark/c/native/benchmark.c index 561bf0f..f55802f 100644 --- a/benchmark/c/native/benchmark.c +++ b/benchmark/c/native/benchmark.c @@ -16,9 +16,6 @@ * limitations under the License. */ -/** -* Benchmark `is-nonpositive-finite`. -*/ #include "stdlib/math/base/assert/is_nonpositive_finite.h" #include #include @@ -34,7 +31,7 @@ /** * Prints the TAP version. */ -void print_version() { +static void print_version( void ) { printf( "TAP version 13\n" ); } @@ -44,7 +41,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 +55,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 +69,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 */ -double rand_double() { +static double rand_double( void ) { int r = rand(); return (double)r / ( (double)RAND_MAX + 1.0 ); } @@ -93,7 +90,7 @@ double rand_double() { * * @return elapsed time in seconds */ -double benchmark() { +static double benchmark( void ) { double elapsed; double x; double t; diff --git a/package.json b/package.json index 3842f69..a63ce9e 100644 --- a/package.json +++ b/package.json @@ -41,18 +41,18 @@ }, "dependencies": { "@stdlib/constants-float64-ninf": "^0.2.2", - "@stdlib/utils-library-manifest": "^0.2.1" + "@stdlib/utils-library-manifest": "^0.2.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.2.2", "@stdlib/boolean-ctor": "^0.2.2", - "@stdlib/constants-float64-pinf": "^0.2.1", + "@stdlib/constants-float64-pinf": "^0.2.2", "@stdlib/random-base-randu": "^0.2.1", "@stdlib/utils-try-require": "^0.2.2", "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",