Skip to content

Commit 64e475e

Browse files
committed
Auto-generated commit
1 parent bbf8b7c commit 64e475e

File tree

4 files changed

+45
-14
lines changed

4 files changed

+45
-14
lines changed

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
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.3.0">
640

741
## 0.3.0 (2024-07-27)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
280280
[npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-assert-is-negative-integer.svg
281281
[npm-url]: https://npmjs.org/package/@stdlib/math-base-assert-is-negative-integer
282282
283-
[test-image]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/actions/workflows/test.yml/badge.svg?branch=v0.3.0
284-
[test-url]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/actions/workflows/test.yml?query=branch:v0.3.0
283+
[test-image]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/actions/workflows/test.yml/badge.svg?branch=main
284+
[test-url]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/actions/workflows/test.yml?query=branch:main
285285
286286
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-assert-is-negative-integer/main.svg
287287
[coverage-url]: https://codecov.io/github/stdlib-js/math-base-assert-is-negative-integer?branch=main

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-negative-integer`.
21-
*/
2219
#include "stdlib/math/base/assert/is_negative_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;

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)