Skip to content

Commit 68789e7

Browse files
committed
Auto-generated commit
1 parent 5ab2b82 commit 68789e7

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-20)
88

99
<section class="commits">
1010

1111
### Commits
1212

1313
<details>
1414

15+
- [`2cd5062`](https://github.com/stdlib-js/stdlib/commit/2cd5062361403748ac15fd295708f925d4c3c92f) - **bench:** refactor to use dynamic memory allocation in `math/strided/special/dtrunc` [(#11669)](https://github.com/stdlib-js/stdlib/pull/11669) _(by Uday Kakade)_
1516
- [`45ea471`](https://github.com/stdlib-js/stdlib/commit/45ea471c7617506879b6fdaea16a2ef6f851f62d) - **bench:** refactor to use string interpolation in `math/strided/special` [(#11363)](https://github.com/stdlib-js/stdlib/pull/11363) _(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-
double x[ len ];
118-
double y[ len ];
117+
double *x;
118+
double *y;
119119
double t;
120120
int i;
121121

122+
x = (double *) malloc( len * sizeof( double ) );
123+
y = (double *) malloc( len * sizeof( double ) );
122124
for ( i = 0; i < len; i++ ) {
123125
x[ i ] = rand_uniform( -10.0, 10.0 );
124126
y[ i ] = 0.0;
@@ -136,6 +138,8 @@ static double benchmark( int iterations, int len ) {
136138
if ( y[ 0 ] != y[ 0 ] ) {
137139
printf( "should not return NaN\n" );
138140
}
141+
free( x );
142+
free( y );
139143
return elapsed;
140144
}
141145

0 commit comments

Comments
 (0)