Skip to content

Commit 972371b

Browse files
committed
Auto-generated commit
1 parent 33475cb commit 972371b

File tree

7 files changed

+34
-102
lines changed

7 files changed

+34
-102
lines changed

.github/.keepalive

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2024-08-01T01:58:01.521Z

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ docs/**/node_modules/
101101
pids
102102
*.pid
103103
*.seed
104+
yarn.lock
105+
package-lock.json
104106

105107
# Typescript #
106108
##############

CHANGELOG.md

Lines changed: 15 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,17 @@
22

33
> Package changelog.
44
5-
<section class="release" id="v0.3.0">
6-
7-
## 0.3.0 (2024-07-27)
8-
9-
<section class="features">
10-
11-
### Features
12-
13-
- [`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)
14-
15-
</section>
5+
<section class="release" id="unreleased">
166

17-
<!-- /.features -->
18-
19-
<section class="issues">
20-
21-
### Closed Issues
22-
23-
This release closes the following issue:
24-
25-
[#1931 ](https://github.com/stdlib-js/stdlib/issues/1931 )
26-
27-
</section>
28-
29-
<!-- /.issues -->
7+
## Unreleased (2024-08-01)
308

319
<section class="commits">
3210

3311
### Commits
3412

3513
<details>
3614

37-
- [`d04dcbd`](https://github.com/stdlib-js/stdlib/commit/d04dcbd6dc3b0bf4a89bd3947d317fa5ff15bb38) - **docs:** remove private annotations in C comments _(by Philipp Burckhardt)_
38-
- [`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)_
39-
- [`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)_
15+
- [`22c4d29`](https://github.com/stdlib-js/stdlib/commit/22c4d29898e2b5bb4cb071a6b7f62536027eaf28) - **docs:** remove blank line _(by Athan Reines)_
4016

4117
</details>
4218

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

4925
### Contributors
5026

51-
A total of 4 people contributed to this release. Thank you to the following contributors:
27+
A total of 1 person contributed to this release. Thank you to this contributor:
5228

5329
- Athan Reines
54-
- Philipp Burckhardt
55-
- Pranav Goswami
56-
- Rutam
5730

5831
</section>
5932

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

6437
<!-- /.release -->
6538

39+
<section class="release" id="v0.3.0">
40+
41+
## 0.3.0 (2024-07-27)
42+
43+
No changes reported for this release.
44+
45+
</section>
46+
47+
<!-- /.release -->
48+
6649
<section class="release" id="v0.2.1">
6750

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

9881
## 0.1.0 (2023-09-22)
9982

100-
<section class="features">
101-
102-
### Features
103-
104-
- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9) - update minimum TypeScript version
105-
106-
</section>
107-
108-
<!-- /.features -->
109-
110-
<section class="breaking-changes">
111-
112-
### BREAKING CHANGES
113-
114-
- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9): update minimum TypeScript version
115-
- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9): update minimum TypeScript version to 4.1
116-
117-
- To migrate, users should upgrade their TypeScript version to at least version 4.1.
118-
119-
</section>
120-
121-
<!-- /.breaking-changes -->
122-
123-
<section class="commits">
124-
125-
### Commits
126-
127-
<details>
128-
129-
- [`58832ee`](https://github.com/stdlib-js/stdlib/commit/58832eef6d93e6519622148242600eae93dca4d9) - **feat:** update minimum TypeScript version _(by Philipp Burckhardt)_
130-
- [`a37ebe2`](https://github.com/stdlib-js/stdlib/commit/a37ebe2b277b2b54f00377b8582d309c65ec33ce) - **docs:** remove empty lines _(by Philipp Burckhardt)_
131-
132-
</details>
133-
134-
</section>
135-
136-
<!-- /.commits -->
137-
138-
<section class="contributors">
139-
140-
### Contributors
141-
142-
A total of 1 person contributed to this release. Thank you to this contributor:
143-
144-
- Philipp Burckhardt
145-
146-
</section>
147-
148-
<!-- /.contributors -->
83+
No changes reported for this release.
14984

15085
</section>
15186

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
265265
[npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-special-fast-uint32-log2.svg
266266
[npm-url]: https://npmjs.org/package/@stdlib/math-base-special-fast-uint32-log2
267267

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

271271
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-special-fast-uint32-log2/main.svg
272272
[coverage-url]: https://codecov.io/github/stdlib-js/math-base-special-fast-uint32-log2?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 `uint32_log2`.
21-
*/
2219
#include "stdlib/math/base/special/fast/uint32_log2.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
uint32_t x;
9996
uint32_t y;

include/stdlib/math/base/special/fast/uint32_log2.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
* limitations under the License.
1717
*/
1818

19-
/**
20-
* Header file containing function declarations.
21-
*/
2219
#ifndef STDLIB_MATH_BASE_SPECIAL_FAST_UINT32_LOG2_H
2320
#define STDLIB_MATH_BASE_SPECIAL_FAST_UINT32_LOG2_H
2421

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,21 @@
4040
"url": "https://github.com/stdlib-js/stdlib/issues"
4141
},
4242
"dependencies": {
43-
"@stdlib/napi-argv-uint32": "^0.2.1",
43+
"@stdlib/napi-argv-uint32": "^0.2.2",
4444
"@stdlib/napi-export": "^0.2.2",
45-
"@stdlib/utils-library-manifest": "^0.2.1"
45+
"@stdlib/utils-library-manifest": "^0.2.2"
4646
},
4747
"devDependencies": {
48-
"@stdlib/math-base-assert-is-nan": "^0.2.1",
49-
"@stdlib/math-base-special-floor": "^0.2.2",
50-
"@stdlib/math-base-special-log2": "^0.2.1",
51-
"@stdlib/math-base-special-pow": "^0.2.1",
48+
"@stdlib/math-base-assert-is-nan": "^0.2.2",
49+
"@stdlib/math-base-special-floor": "^0.2.3",
50+
"@stdlib/math-base-special-log2": "^0.3.0",
51+
"@stdlib/math-base-special-pow": "^0.3.0",
5252
"@stdlib/random-base-minstd-shuffle": "^0.2.1",
5353
"@stdlib/utils-try-require": "^0.2.2",
5454
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5555
"istanbul": "^0.4.1",
5656
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
57-
"@stdlib/bench-harness": "^0.2.1"
57+
"@stdlib/bench-harness": "^0.2.2"
5858
},
5959
"engines": {
6060
"node": ">=0.10.0",

0 commit comments

Comments
 (0)