Skip to content

Commit 1cbdb90

Browse files
committed
Auto-generated commit
1 parent 9a27ad3 commit 1cbdb90

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

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-03-01)
7+
## Unreleased (2026-03-07)
88

99
<section class="commits">
1010

1111
### Commits
1212

1313
<details>
1414

15+
- [`5e4ca5b`](https://github.com/stdlib-js/stdlib/commit/5e4ca5b367081cf17ec0d201e722609598b2c4d9) - **bench:** refactor to use dynamic memory allocation in `blas/ext/base/dnannsumpw` [(#10742)](https://github.com/stdlib-js/stdlib/pull/10742) _(by Prajjwal Bajpai)_
1516
- [`90ba881`](https://github.com/stdlib-js/stdlib/commit/90ba8818827558e9fb2afd962774a1e03413564d) - **bench:** refactor to use string interpolation in blas/ext/base/dnannsumpw [(#10539)](https://github.com/stdlib-js/stdlib/pull/10539) _(by Kamal Singh Rautela)_
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
- Kamal Singh Rautela
31+
- Prajjwal Bajpai
3032

3133
</section>
3234

benchmark/c/benchmark.length.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,13 @@ static double rand_double( void ) {
9797
*/
9898
static double benchmark1( int iterations, int len ) {
9999
double elapsed;
100-
double x[ len ];
100+
double *x;
101101
CBLAS_INT n;
102102
double v;
103103
double t;
104104
int i;
105105

106+
x = (double *) malloc( len * sizeof( double ) );
106107
for ( i = 0; i < len; i++ ) {
107108
if ( rand_double() < 0.2 ) {
108109
x[ i ] = 0.0 / 0.0; // NaN
@@ -125,6 +126,7 @@ static double benchmark1( int iterations, int len ) {
125126
if ( v != v || n < 0 ) {
126127
printf( "should not return NaN\n" );
127128
}
129+
free( x );
128130
return elapsed;
129131
}
130132

@@ -137,12 +139,13 @@ static double benchmark1( int iterations, int len ) {
137139
*/
138140
static double benchmark2( int iterations, int len ) {
139141
double elapsed;
140-
double x[ len ];
142+
double *x;
141143
CBLAS_INT n;
142144
double v;
143145
double t;
144146
int i;
145147

148+
x = (double *) malloc( len * sizeof( double ) );
146149
for ( i = 0; i < len; i++ ) {
147150
if ( rand_double() < 0.2 ) {
148151
x[ i ] = 0.0 / 0.0; // NaN
@@ -165,6 +168,7 @@ static double benchmark2( int iterations, int len ) {
165168
if ( v != v || n < 0 ) {
166169
printf( "should not return NaN\n" );
167170
}
171+
free( x );
168172
return elapsed;
169173
}
170174

0 commit comments

Comments
 (0)