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 Aug 1, 2024
1 parent 33475cb commit 972371b
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 102 deletions.
1 change: 1 addition & 0 deletions .github/.keepalive
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2024-08-01T01:58:01.521Z
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ docs/**/node_modules/
pids
*.pid
*.seed
yarn.lock
package-lock.json

# Typescript #
##############
Expand Down
95 changes: 15 additions & 80 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,17 @@

> Package changelog.
<section class="release" id="v0.3.0">

## 0.3.0 (2024-07-27)

<section class="features">

### Features

- [`c17484a`](https://github.com/stdlib-js/stdlib/commit/c17484ad1830ddfdb3abbe96589b406096e389e1) - add C implementation for `math/base/special/fast/uint32-log2` [(#1946)](https://github.com/stdlib-js/stdlib/pull/1946)

</section>
<section class="release" id="unreleased">

<!-- /.features -->

<section class="issues">

### Closed Issues

This release closes the following issue:

[#1931 ](https://github.com/stdlib-js/stdlib/issues/1931 )

</section>

<!-- /.issues -->
## Unreleased (2024-08-01)

<section class="commits">

### Commits

<details>

- [`d04dcbd`](https://github.com/stdlib-js/stdlib/commit/d04dcbd6dc3b0bf4a89bd3947d317fa5ff15bb38) - **docs:** remove private annotations in C comments _(by Philipp Burckhardt)_
- [`f36cfab`](https://github.com/stdlib-js/stdlib/commit/f36cfab3875404fd9c58b6e2a6fedca5e04cb4d9) - **chore:** update package meta data [(#2014)](https://github.com/stdlib-js/stdlib/pull/2014) _(by stdlib-bot)_
- [`c17484a`](https://github.com/stdlib-js/stdlib/commit/c17484ad1830ddfdb3abbe96589b406096e389e1) - **feat:** add C implementation for `math/base/special/fast/uint32-log2` [(#1946)](https://github.com/stdlib-js/stdlib/pull/1946) _(by Rutam, Athan Reines, Pranav Goswami)_
- [`22c4d29`](https://github.com/stdlib-js/stdlib/commit/22c4d29898e2b5bb4cb071a6b7f62536027eaf28) - **docs:** remove blank line _(by Athan Reines)_

</details>

Expand All @@ -48,12 +24,9 @@ This release closes the following issue:

### Contributors

A total of 4 people contributed to this release. Thank you to the following contributors:
A total of 1 person contributed to this release. Thank you to this contributor:

- Athan Reines
- Philipp Burckhardt
- Pranav Goswami
- Rutam

</section>

Expand All @@ -63,6 +36,16 @@ A total of 4 people contributed to this release. Thank you to the following cont

<!-- /.release -->

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

## 0.3.0 (2024-07-27)

No changes reported for this release.

</section>

<!-- /.release -->

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

## 0.2.1 (2024-02-21)
Expand Down Expand Up @@ -97,55 +80,7 @@ No changes reported for this release.

## 0.1.0 (2023-09-22)

<section class="features">

### Features

- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9) - update minimum TypeScript version

</section>

<!-- /.features -->

<section class="breaking-changes">

### 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

- To migrate, users should upgrade their TypeScript version to at least version 4.1.

</section>

<!-- /.breaking-changes -->

<section class="commits">

### Commits

<details>

- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9) - **feat:** update minimum TypeScript version _(by Philipp Burckhardt)_
- [`a37ebe2`](https://github.com/stdlib-js/stdlib/commit/a37ebe2b277b2b54f00377b8582d309c65ec33ce) - **docs:** remove empty lines _(by Philipp Burckhardt)_

</details>

</section>

<!-- /.commits -->

<section class="contributors">

### Contributors

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

- Philipp Burckhardt

</section>

<!-- /.contributors -->
No changes reported for this release.

</section>

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
[npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-special-fast-uint32-log2.svg
[npm-url]: https://npmjs.org/package/@stdlib/math-base-special-fast-uint32-log2

[test-image]: https://github.com/stdlib-js/math-base-special-fast-uint32-log2/actions/workflows/test.yml/badge.svg?branch=v0.3.0
[test-url]: https://github.com/stdlib-js/math-base-special-fast-uint32-log2/actions/workflows/test.yml?query=branch:v0.3.0
[test-image]: https://github.com/stdlib-js/math-base-special-fast-uint32-log2/actions/workflows/test.yml/badge.svg?branch=main
[test-url]: https://github.com/stdlib-js/math-base-special-fast-uint32-log2/actions/workflows/test.yml?query=branch:main

[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-special-fast-uint32-log2/main.svg
[coverage-url]: https://codecov.io/github/stdlib-js/math-base-special-fast-uint32-log2?branch=main
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 `uint32_log2`.
*/
#include "stdlib/math/base/special/fast/uint32_log2.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
*/
double rand_double() {
static double rand_double( void ) {
int r = rand();
return (double)r / ( (double)RAND_MAX + 1.0 );
}
Expand All @@ -93,7 +90,7 @@ double rand_double() {
*
* @return elapsed time in seconds
*/
double benchmark() {
static double benchmark( void ) {
double elapsed;
uint32_t x;
uint32_t y;
Expand Down
3 changes: 0 additions & 3 deletions include/stdlib/math/base/special/fast/uint32_log2.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_SPECIAL_FAST_UINT32_LOG2_H
#define STDLIB_MATH_BASE_SPECIAL_FAST_UINT32_LOG2_H

Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,21 @@
"url": "https://github.com/stdlib-js/stdlib/issues"
},
"dependencies": {
"@stdlib/napi-argv-uint32": "^0.2.1",
"@stdlib/napi-argv-uint32": "^0.2.2",
"@stdlib/napi-export": "^0.2.2",
"@stdlib/utils-library-manifest": "^0.2.1"
"@stdlib/utils-library-manifest": "^0.2.2"
},
"devDependencies": {
"@stdlib/math-base-assert-is-nan": "^0.2.1",
"@stdlib/math-base-special-floor": "^0.2.2",
"@stdlib/math-base-special-log2": "^0.2.1",
"@stdlib/math-base-special-pow": "^0.2.1",
"@stdlib/math-base-assert-is-nan": "^0.2.2",
"@stdlib/math-base-special-floor": "^0.2.3",
"@stdlib/math-base-special-log2": "^0.3.0",
"@stdlib/math-base-special-pow": "^0.3.0",
"@stdlib/random-base-minstd-shuffle": "^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",
Expand Down

0 comments on commit 972371b

Please sign in to comment.