Skip to content

Commit e890905

Browse files
committed
Auto-generated commit
1 parent 72aa524 commit e890905

2 files changed

Lines changed: 10 additions & 4 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

1718
</details>
@@ -24,9 +25,10 @@
2425

2526
### Contributors
2627

27-
A total of 1 person contributed to this release. Thank you to this contributor:
28+
A total of 2 people contributed to this release. Thank you to the following contributors:
2829

2930
- Karan Anand
31+
- Uday Kakade
3032

3133
</section>
3234

benchmark/c/benchmark.length.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@ float rand_uniformf( float a, float b ) {
114114
*/
115115
static double benchmark( int iterations, int len ) {
116116
double elapsed;
117-
float x[ len ];
118-
float y[ len ];
117+
float *x;
118+
float *y;
119119
double t;
120120
int i;
121121

122+
x = (float *) malloc( len * sizeof( float ) );
123+
y = (float *) malloc( len * sizeof( float ) );
122124
for ( i = 0; i < len; i++ ) {
123125
x[ i ] = rand_uniformf( 0.0f, 200.0f );
124126
y[ i ] = 0.0f;
@@ -135,6 +137,8 @@ static double benchmark( int iterations, int len ) {
135137
if ( y[ 0 ] != y[ 0 ] ) {
136138
printf( "should not return NaN\n" );
137139
}
140+
free( x );
141+
free( y );
138142
return elapsed;
139143
}
140144

0 commit comments

Comments
 (0)