Skip to content

Commit 1f6a0a3

Browse files
committed
Auto-generated commit
1 parent 37b46e4 commit 1f6a0a3

7 files changed

Lines changed: 181 additions & 28 deletions

File tree

CHANGELOG.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,43 @@
22

33
> Package changelog.
44
5-
<section class="release" id="v0.2.0">
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+
39+
<section class="release" id="v0.2.1">
640

7-
## 0.2.0 (2024-07-27)
41+
## 0.2.1 (2024-07-27)
842

943
<section class="features">
1044

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,6 @@ For more information on the project, filing bug reports and feature requests, an
270270

271271
---
272272

273-
## License
274-
275-
See [LICENSE][stdlib-license].
276-
277-
278273
## Copyright
279274

280275
Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
@@ -290,11 +285,11 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
290285
[npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-assert-is-nonnegative-integer.svg
291286
[npm-url]: https://npmjs.org/package/@stdlib/math-base-assert-is-nonnegative-integer
292287

293-
[test-image]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/actions/workflows/test.yml/badge.svg?branch=v0.2.1
294-
[test-url]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/actions/workflows/test.yml?query=branch:v0.2.1
288+
[test-image]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/actions/workflows/test.yml/badge.svg?branch=main
289+
[test-url]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/actions/workflows/test.yml?query=branch:main
295290

296291
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-assert-is-nonnegative-integer/main.svg
297-
[coverage-url]: https://codecov.io/github/stdlib-js/math-base-assert-is-nonnegative-integer?branch=v0.2.1
292+
[coverage-url]: https://codecov.io/github/stdlib-js/math-base-assert-is-nonnegative-integer?branch=main
298293

299294
<!--
300295
@@ -321,8 +316,6 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
321316
[esm-readme]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/blob/esm/README.md
322317
[branches-url]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/blob/main/branches.md
323318

324-
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/math-base-assert-is-nonnegative-integer/main/LICENSE
325-
326319
[ieee754]: https://en.wikipedia.org/wiki/IEEE_754-1985
327320

328321
<!-- <related-links> -->

benchmark/c/native/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 `is-nonnegative-integer`.
21-
*/
2219
#include "stdlib/math/base/assert/is_nonnegative_integer.h"
2320
#include <stdlib.h>
2421
#include <stdio.h>
@@ -34,7 +31,7 @@
3431
/**
3532
* Prints the TAP version.
3633
*/
37-
void print_version() {
34+
static void print_version( void ) {
3835
printf( "TAP version 13\n" );
3936
}
4037

@@ -44,7 +41,7 @@ void print_version() {
4441
* @param total total number of tests
4542
* @param passing total number of passing tests
4643
*/
47-
void print_summary( int total, int passing ) {
44+
static void print_summary( int total, int passing ) {
4845
printf( "#\n" );
4946
printf( "1..%d\n", total ); // TAP plan
5047
printf( "# total %d\n", total );
@@ -58,7 +55,7 @@ void print_summary( int total, int passing ) {
5855
*
5956
* @param elapsed elapsed time in seconds
6057
*/
61-
void print_results( double elapsed ) {
58+
static void print_results( double elapsed ) {
6259
double rate = (double)ITERATIONS / elapsed;
6360
printf( " ---\n" );
6461
printf( " iterations: %d\n", ITERATIONS );
@@ -72,18 +69,18 @@ void print_results( double elapsed ) {
7269
*
7370
* @return clock time
7471
*/
75-
double tic() {
72+
static double tic( void ) {
7673
struct timeval now;
7774
gettimeofday( &now, NULL );
7875
return (double)now.tv_sec + (double)now.tv_usec / 1.0e6;
7976
}
8077

8178
/**
82-
* Generates a random number on the interval [0,1].
79+
* Generates a random number on the interval [0,1).
8380
*
8481
* @return random number
8582
*/
86-
double rand_double() {
83+
static double rand_double( void ) {
8784
int r = rand();
8885
return (double)r / ( (double)RAND_MAX + 1.0 );
8986
}
@@ -93,7 +90,7 @@ double rand_double() {
9390
*
9491
* @return elapsed time in seconds
9592
*/
96-
double benchmark() {
93+
static double benchmark( void ) {
9794
double elapsed;
9895
double x;
9996
double t;

dist/index.js

Lines changed: 29 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main.js

Lines changed: 53 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/native.js

Lines changed: 51 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@
4949
"@stdlib/constants-float64-ninf": "^0.2.2",
5050
"@stdlib/constants-float64-pinf": "^0.2.2",
5151
"@stdlib/math-base-special-round": "^0.3.0",
52-
"@stdlib/math-base-special-trunc": "^0.2.1",
52+
"@stdlib/math-base-special-trunc": "^0.2.2",
5353
"@stdlib/random-base-randu": "^0.2.1",
5454
"@stdlib/utils-try-require": "^0.2.2",
5555
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5656
"istanbul": "^0.4.1",
5757
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
58-
"@stdlib/bench-harness": "^0.2.1"
58+
"@stdlib/bench-harness": "^0.2.2"
5959
},
6060
"engines": {
6161
"node": ">=0.10.0",

0 commit comments

Comments
 (0)