Skip to content

Commit f181bc2

Browse files
committed
Auto-generated commit
1 parent 6b0d7fe commit f181bc2

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

99
<section class="commits">
1010

1111
### Commits
1212

1313
<details>
1414

15+
- [`d4d6328`](https://github.com/stdlib-js/stdlib/commit/d4d63285f41a4c1c7d4311366a84aa28ec2c35fc) - **bench:** refactor to use dynamic memory allocation in `blas/ext/base/dnannsumkbn2` [(#10653)](https://github.com/stdlib-js/stdlib/pull/10653) _(by Prajjwal Bajpai)_
1516
- [`491c1d6`](https://github.com/stdlib-js/stdlib/commit/491c1d665303b698c8220868eb201ac6467d8805) - **bench:** refactor to use string interpolation in blas/ext/base/dnannsumkbn2 [(#10537)](https://github.com/stdlib-js/stdlib/pull/10537) _(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)