Skip to content

Commit 8e4d7a2

Browse files
committed
Auto-generated commit
1 parent b7603c8 commit 8e4d7a2

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2026-04-11)
7+
## Unreleased (2026-04-21)
88

99
<section class="commits">
1010

1111
### Commits
1212

1313
<details>
1414

15+
- [`23d316f`](https://github.com/stdlib-js/stdlib/commit/23d316f6eda9201e0827d9f98ee523f9270d5939) - **bench:** refactor to use dynamic memory allocation in `maths/strided/special` [(#11697)](https://github.com/stdlib-js/stdlib/pull/11697) _(by Uday Kakade)_
1516
- [`a94a4ef`](https://github.com/stdlib-js/stdlib/commit/a94a4efa9cf521c2e6257deccb9fce9cf4451d57) - **bench:** refactor to use string interpolation in `math/strided/special` [(#11364)](https://github.com/stdlib-js/stdlib/pull/11364) _(by Karan Anand)_
1617
- [`cd99fef`](https://github.com/stdlib-js/stdlib/commit/cd99fef661e7a5f6e600ee81295ec4dbc8501187) - **docs:** fix C examples [(#11135)](https://github.com/stdlib-js/stdlib/pull/11135) _(by anee3)_
1718

@@ -25,9 +26,10 @@
2526

2627
### Contributors
2728

28-
A total of 2 people contributed to this release. Thank you to the following contributors:
29+
A total of 3 people contributed to this release. Thank you to the following contributors:
2930

3031
- Karan Anand
32+
- Uday Kakade
3133
- anee3
3234

3335
</section>

benchmark/c/benchmark.length.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,15 @@ float rand_uniformf( float a, float b ) {
115115
*/
116116
static double benchmark( int iterations, int len ) {
117117
double elapsed;
118-
uint8_t m[ len ];
119-
float x[ len ];
120-
float y[ len ];
118+
uint8_t *m;
119+
float *x;
120+
float *y;
121121
double t;
122122
int i;
123123

124+
m = (uint8_t *) malloc( len * sizeof( uint8_t ) );
125+
x = (float *) malloc( len * sizeof( float ) );
126+
y = (float *) malloc( len * sizeof( float ) );
124127
for ( i = 0; i < len; i++ ) {
125128
x[ i ] = rand_uniformf( -10.0f, 10.0f );
126129
y[ i ] = 0.0f;
@@ -139,6 +142,9 @@ static double benchmark( int iterations, int len ) {
139142
if ( y[ 0 ] != y[ 0 ] ) {
140143
printf( "should not return NaN\n" );
141144
}
145+
free( m );
146+
free( x );
147+
free( y );
142148
return elapsed;
143149
}
144150

0 commit comments

Comments
 (0)