From e9a7733dabcae346d5bf516531d49cef0f31522e Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 1 Aug 2024 02:42:41 +0000 Subject: [PATCH] Auto-generated commit --- .github/.keepalive | 1 + .gitignore | 2 + CHANGELOG.md | 85 +++++++++-------------- README.md | 4 +- benchmark/c/benchmark.c | 17 ++--- benchmark/c/cephes/benchmark.c | 17 ++--- benchmark/c/native/benchmark.c | 17 ++--- include/stdlib/math/base/special/floorf.h | 3 - package.json | 10 +-- 9 files changed, 65 insertions(+), 91 deletions(-) create mode 100644 .github/.keepalive diff --git a/.github/.keepalive b/.github/.keepalive new file mode 100644 index 0000000..6516517 --- /dev/null +++ b/.github/.keepalive @@ -0,0 +1 @@ +2024-08-01T02:42:39.073Z diff --git a/.gitignore b/.gitignore index 49b206b..4fdc97c 100644 --- a/.gitignore +++ b/.gitignore @@ -101,6 +101,8 @@ docs/**/node_modules/ pids *.pid *.seed +yarn.lock +package-lock.json # Typescript # ############## diff --git a/CHANGELOG.md b/CHANGELOG.md index 73649da..c218a0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,39 +2,43 @@ > Package changelog. -
+
-## 0.2.2 (2024-07-27) +## Unreleased (2024-08-01) -No changes reported for this release. - -
+
- +### Commits -
+
-## 0.2.1 (2024-02-23) +- [`22c4d29`](https://github.com/stdlib-js/stdlib/commit/22c4d29898e2b5bb4cb071a6b7f62536027eaf28) - **docs:** remove blank line _(by Athan Reines)_ -No changes reported for this release. +
- + -
+
-## 0.2.0 (2024-02-14) +### Contributors -No changes reported for this release. +A total of 1 person contributed to this release. Thank you to this contributor: + +- Athan Reines + +
+ +
-
+
-## 0.1.1 (2023-10-09) +## 0.2.2 (2024-07-27) No changes reported for this release. @@ -42,62 +46,41 @@ No changes reported for this release. -
- -## 0.1.0 (2023-09-23) - -
+
-### Features +## 0.2.1 (2024-02-23) -- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9) - update minimum TypeScript version +No changes reported for this release.
- - -
+ -### BREAKING CHANGES +
-- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9): update minimum TypeScript version -- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9): update minimum TypeScript version to 4.1 +## 0.2.0 (2024-02-14) - - To migrate, users should upgrade their TypeScript version to at least version 4.1. +No changes reported for this release.
- - -
- -### Commits + -
+
-- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9) - **feat:** update minimum TypeScript version _(by Philipp Burckhardt)_ -- [`5363054`](https://github.com/stdlib-js/stdlib/commit/536305400d60ff7450198139f2f9aef9eb06581a) - **docs:** resolve C lint errors _(by Athan Reines)_ -- [`b9e414a`](https://github.com/stdlib-js/stdlib/commit/b9e414a8958f7e59ebf824db6923eb6aba0010a0) - **docs:** resolve C lint errors _(by Athan Reines)_ -- [`28e1c84`](https://github.com/stdlib-js/stdlib/commit/28e1c84390d88044883c9ef940a12f38d66ea3ef) - **docs:** resolve C lint errors _(by Athan Reines)_ +## 0.1.1 (2023-10-09) -
+No changes reported for this release.
- - -
- -### Contributors - -A total of 2 people contributed to this release. Thank you to the following contributors: + -- Athan Reines -- Philipp Burckhardt +
-
+## 0.1.0 (2023-09-23) - +No changes reported for this release.
diff --git a/README.md b/README.md index f72293d..319c7ed 100644 --- a/README.md +++ b/README.md @@ -247,8 +247,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. [npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-special-floorf.svg [npm-url]: https://npmjs.org/package/@stdlib/math-base-special-floorf -[test-image]: https://github.com/stdlib-js/math-base-special-floorf/actions/workflows/test.yml/badge.svg?branch=v0.2.2 -[test-url]: https://github.com/stdlib-js/math-base-special-floorf/actions/workflows/test.yml?query=branch:v0.2.2 +[test-image]: https://github.com/stdlib-js/math-base-special-floorf/actions/workflows/test.yml/badge.svg?branch=main +[test-url]: https://github.com/stdlib-js/math-base-special-floorf/actions/workflows/test.yml?query=branch:main [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-special-floorf/main.svg [coverage-url]: https://codecov.io/github/stdlib-js/math-base-special-floorf?branch=main diff --git a/benchmark/c/benchmark.c b/benchmark/c/benchmark.c index 323ef4c..2b5c571 100644 --- a/benchmark/c/benchmark.c +++ b/benchmark/c/benchmark.c @@ -16,9 +16,6 @@ * limitations under the License. */ -/** -* Benchmark `floorf`. -*/ #include #include #include @@ -32,7 +29,7 @@ /** * Prints the TAP version. */ -void print_version() { +static void print_version( void ) { printf( "TAP version 13\n" ); } @@ -42,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 ); @@ -56,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 ); @@ -70,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 ); } @@ -91,7 +88,7 @@ float rand_float() { * * @return elapsed time in seconds */ -double benchmark() { +static double benchmark( void ) { double elapsed; double t; float x; diff --git a/benchmark/c/cephes/benchmark.c b/benchmark/c/cephes/benchmark.c index 6352c2e..9344d71 100644 --- a/benchmark/c/cephes/benchmark.c +++ b/benchmark/c/cephes/benchmark.c @@ -16,9 +16,6 @@ * limitations under the License. */ -/** -* Benchmark Cephes `floorf`. -*/ #include #include #include @@ -37,7 +34,7 @@ extern float floorf( float x ); /** * Prints the TAP version. */ -void print_version() { +static void print_version( void ) { printf( "TAP version 13\n" ); } @@ -47,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 ); @@ -61,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 ); @@ -75,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 ); } @@ -96,7 +93,7 @@ float rand_float() { * * @return elapsed time in seconds */ -double benchmark() { +static double benchmark( void ) { double elapsed; double t; float x; diff --git a/benchmark/c/native/benchmark.c b/benchmark/c/native/benchmark.c index 10d4916..83db0ed 100644 --- a/benchmark/c/native/benchmark.c +++ b/benchmark/c/native/benchmark.c @@ -16,9 +16,6 @@ * limitations under the License. */ -/** -* Benchmark `floorf`. -*/ #include "stdlib/math/base/special/floorf.h" #include #include @@ -33,7 +30,7 @@ /** * Prints the TAP version. */ -void print_version() { +static void print_version( void ) { printf( "TAP version 13\n" ); } @@ -43,7 +40,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 ); @@ -57,7 +54,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 ); @@ -71,18 +68,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 ); } @@ -92,7 +89,7 @@ float rand_float() { * * @return elapsed time in seconds */ -double benchmark() { +static double benchmark( void ) { double elapsed; double t; float x; diff --git a/include/stdlib/math/base/special/floorf.h b/include/stdlib/math/base/special/floorf.h index 283bfeb..5c8f2a8 100644 --- a/include/stdlib/math/base/special/floorf.h +++ b/include/stdlib/math/base/special/floorf.h @@ -16,9 +16,6 @@ * limitations under the License. */ -/** -* Header file containing function declarations. -*/ #ifndef STDLIB_MATH_BASE_SPECIAL_FLOORF_H #define STDLIB_MATH_BASE_SPECIAL_FLOORF_H diff --git a/package.json b/package.json index 038a509..bb632e1 100644 --- a/package.json +++ b/package.json @@ -40,21 +40,21 @@ "url": "https://github.com/stdlib-js/stdlib/issues" }, "dependencies": { - "@stdlib/math-base-napi-unary": "^0.2.1", + "@stdlib/math-base-napi-unary": "^0.2.3", "@stdlib/utils-library-manifest": "^0.2.2" }, "devDependencies": { - "@stdlib/constants-float32-ninf": "^0.2.1", - "@stdlib/constants-float32-pinf": "^0.2.1", + "@stdlib/constants-float32-ninf": "^0.2.2", + "@stdlib/constants-float32-pinf": "^0.2.2", "@stdlib/math-base-assert-is-nanf": "^0.2.2", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.2", + "@stdlib/math-base-assert-is-negative-zerof": "^0.1.3", "@stdlib/math-base-assert-is-positive-zerof": "^0.1.3", "@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",