Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jul 28, 2024
1 parent 203be66 commit 69ea40a
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 11 deletions.
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,40 @@

> Package changelog.
<section class="release" id="unreleased">

## Unreleased (2024-07-28)

<section class="commits">

### Commits

<details>

- [`2777e4b`](https://github.com/stdlib-js/stdlib/commit/2777e4be161869d09406e3b17947d24c64b47af2) - **bench:** resolve lint errors in benchmarks _(by Athan Reines)_

</details>

</section>

<!-- /.commits -->

<section class="contributors">

### Contributors

A total of 1 person contributed to this release. Thank you to this contributor:

- Athan Reines

</section>

<!-- /.contributors -->

</section>

<!-- /.release -->

<section class="release" id="v0.1.2">

## 0.1.2 (2024-07-27)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
[npm-image]: http://img.shields.io/npm/v/@stdlib/complex-float64-reim.svg
[npm-url]: https://npmjs.org/package/@stdlib/complex-float64-reim
[test-image]: https://github.com/stdlib-js/complex-float64-reim/actions/workflows/test.yml/badge.svg?branch=v0.1.2
[test-url]: https://github.com/stdlib-js/complex-float64-reim/actions/workflows/test.yml?query=branch:v0.1.2
[test-image]: https://github.com/stdlib-js/complex-float64-reim/actions/workflows/test.yml/badge.svg?branch=main
[test-url]: https://github.com/stdlib-js/complex-float64-reim/actions/workflows/test.yml?query=branch:main
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/complex-float64-reim/main.svg
[coverage-url]: https://codecov.io/github/stdlib-js/complex-float64-reim?branch=main
Expand Down
14 changes: 7 additions & 7 deletions benchmark/c/benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
/**
* Prints the TAP version.
*/
void print_version() {
static void print_version( void ) {
printf( "TAP version 13\n" );
}

Expand All @@ -42,7 +42,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 );
Expand All @@ -56,7 +56,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 );
Expand All @@ -70,18 +70,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 );
}
Expand All @@ -91,7 +91,7 @@ double rand_double() {
*
* @return elapsed time in seconds
*/
double benchmark() {
static double benchmark( void ) {
stdlib_complex128_t z;
double elapsed;
double re;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
},
"devDependencies": {
"@stdlib/array-filled-by": "^0.2.1",
"@stdlib/assert-is-array-like": "^0.2.1",
"@stdlib/assert-is-array-like": "^0.2.2",
"@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",
Expand Down

0 comments on commit 69ea40a

Please sign in to comment.