Skip to content

Commit bbdd614

Browse files
committed
Auto-generated commit
1 parent f6daf0c commit bbdd614

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,7 @@ A total of 79 issues were closed in this release:
712712

713713
<details>
714714

715+
- [`8289a03`](https://github.com/stdlib-js/stdlib/commit/8289a036ebd5f568c35541a480ccdc341ba706af) - **bench:** refactor to use dynamic memory allocation in `math/strided/special/strunc` [(#9481)](https://github.com/stdlib-js/stdlib/pull/9481) _(by kshitijgarg2811-oss, Athan Reines)_
715716
- [`3ae6e96`](https://github.com/stdlib-js/stdlib/commit/3ae6e9691bbab7f2162ef8bb5e3279aefd517e47) - **chore:** add structured meta data _(by Athan Reines)_
716717
- [`ea8228b`](https://github.com/stdlib-js/stdlib/commit/ea8228b082c03c6c8c8182d237c709ae279c05d2) - **feat:** add `math/base/special/acoshf` [(#5812)](https://github.com/stdlib-js/stdlib/pull/5812) _(by Prashant Kumar Yadav, Karan Anand, Nakul Krishnakumar, stdlib-bot)_
717718
- [`6b009d1`](https://github.com/stdlib-js/stdlib/commit/6b009d1d435f278d0c9bed8294f000e4a6d67490) - **test:** use correct variable name in `math/base/special/atanf` test _(by Philipp Burckhardt)_
@@ -1874,7 +1875,7 @@ A total of 79 issues were closed in this release:
18741875

18751876
### Contributors
18761877

1877-
A total of 63 people contributed to this release. Thank you to the following contributors:
1878+
A total of 64 people contributed to this release. Thank you to the following contributors:
18781879

18791880
- Aayush Khanna
18801881
- Aman Singh
@@ -1939,6 +1940,7 @@ A total of 63 people contributed to this release. Thank you to the following con
19391940
- Vivek Maurya
19401941
- Yohan Park
19411942
- Yugal Kaushik
1943+
- kshitijgarg2811-oss
19421944

19431945
</section>
19441946

strided/special/strunc/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( -10.0f, 10.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)