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 556d39e commit ebbddc9
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 27 deletions.
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,41 @@

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

## Unreleased (2024-07-28)

<section class="commits">

### Commits

<details>

- [`272ae7a`](https://github.com/stdlib-js/stdlib/commit/272ae7ac5c576c68cfab1b6e304c86407faa20cd) - **docs:** remove comment _(by Athan Reines)_
- [`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.2.2">

## 0.2.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 @@ -149,8 +149,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
[npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-assert-is-nanf.svg
[npm-url]: https://npmjs.org/package/@stdlib/math-base-assert-is-nanf

[test-image]: https://github.com/stdlib-js/math-base-assert-is-nanf/actions/workflows/test.yml/badge.svg?branch=v0.2.2
[test-url]: https://github.com/stdlib-js/math-base-assert-is-nanf/actions/workflows/test.yml?query=branch:v0.2.2
[test-image]: https://github.com/stdlib-js/math-base-assert-is-nanf/actions/workflows/test.yml/badge.svg?branch=main
[test-url]: https://github.com/stdlib-js/math-base-assert-is-nanf/actions/workflows/test.yml?query=branch:main

[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-assert-is-nanf/main.svg
[coverage-url]: https://codecov.io/github/stdlib-js/math-base-assert-is-nanf?branch=main
Expand Down
17 changes: 7 additions & 10 deletions benchmark/c/benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
* limitations under the License.
*/

/**
* Benchmark `isnan`.
*/
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
Expand All @@ -32,7 +29,7 @@
/**
* Prints the TAP version.
*/
void print_version() {
static void print_version( void ) {
printf( "TAP version 13\n" );
}

Expand All @@ -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 );
Expand All @@ -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 );
Expand All @@ -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 );
}
Expand All @@ -91,7 +88,7 @@ float rand_float() {
*
* @return elapsed time in seconds
*/
double benchmark() {
static double benchmark( void ) {
double elapsed;
double t;
float x;
Expand Down
17 changes: 7 additions & 10 deletions benchmark/c/native/benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
* limitations under the License.
*/

/**
* Benchmark `is-nanf`.
*/
#include "stdlib/math/base/assert/is_nanf.h"
#include <stdlib.h>
#include <stdio.h>
Expand All @@ -34,7 +31,7 @@
/**
* Prints the TAP version.
*/
void print_version() {
static void print_version( void ) {
printf( "TAP version 13\n" );
}

Expand All @@ -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 );
Expand All @@ -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 );
Expand All @@ -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
*/
float rand_float() {
static float rand_float( void ) {
int r = rand();
return (float)r / ( (float)RAND_MAX + 1.0f );
}
Expand All @@ -93,7 +90,7 @@ float rand_float() {
*
* @return elapsed time in seconds
*/
double benchmark() {
static double benchmark( void ) {
double elapsed;
double t;
float x;
Expand Down
3 changes: 0 additions & 3 deletions include/stdlib/math/base/assert/is_nanf.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
* limitations under the License.
*/

/**
* Header file containing function declarations.
*/
#ifndef STDLIB_MATH_BASE_ASSERT_IS_NANF_H
#define STDLIB_MATH_BASE_ASSERT_IS_NANF_H

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"url": "https://github.com/stdlib-js/stdlib/issues"
},
"dependencies": {
"@stdlib/utils-library-manifest": "^0.2.1"
"@stdlib/utils-library-manifest": "^0.2.2"
},
"devDependencies": {
"@stdlib/assert-is-boolean": "^0.2.2",
Expand All @@ -51,7 +51,7 @@
"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 ebbddc9

Please sign in to comment.