File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
strided/special/smskdeg2rad/benchmark/c Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -708,6 +708,7 @@ A total of 74 issues were closed in this release:
708708
709709<details>
710710
711+ - [`a12ad26`](https://github.com/stdlib-js/stdlib/commit/a12ad26bb84de61b5a350833421311a02268dc5d) - **bench:** refactor to use dynamic memory allocation in `math/strided/special/smskdeg2rad` [(#9318)](https://github.com/stdlib-js/stdlib/pull/9318) _(by Yohan Park)_
711712- [`d0e877e`](https://github.com/stdlib-js/stdlib/commit/d0e877ee2a6386c1cda0c426f5a5856cfa743762) - **bench:** refactor to use dynamic memory allocation in `math/strided/special/dmsksqrt` [(#9317)](https://github.com/stdlib-js/stdlib/pull/9317) _(by Seoha Son)_
712713- [`6ea7c0a`](https://github.com/stdlib-js/stdlib/commit/6ea7c0aa08dcf16ba56f217bf5ff24984129fe1d) - **docs:** update examples [(#9290)](https://github.com/stdlib-js/stdlib/pull/9290) _(by stdlib-bot)_
713714- [`9d2d2d0`](https://github.com/stdlib-js/stdlib/commit/9d2d2d041ee3e3c00566bd64f607f8ff311ed501) - **docs:** improve doctests for complex number instances in `math/base/special/cfloorn` [(#9284)](https://github.com/stdlib-js/stdlib/pull/9284) _(by Aryan kumar)_
@@ -1852,7 +1853,7 @@ A total of 74 issues were closed in this release:
18521853
18531854### Contributors
18541855
1855- A total of 59 people contributed to this release. Thank you to the following contributors:
1856+ A total of 60 people contributed to this release. Thank you to the following contributors:
18561857
18571858- Aayush Khanna
18581859- Aman Singh
@@ -1912,6 +1913,7 @@ A total of 59 people contributed to this release. Thank you to the following con
19121913- Shabareesh Shetty
19131914- Shaswata Panda
19141915- Vivek Maurya
1916+ - Yohan Park
19151917- Yugal Kaushik
19161918
19171919</section>
Original file line number Diff line number Diff line change @@ -115,12 +115,15 @@ float rand_uniformf( float a, float b ) {
115115*/
116116static double benchmark ( int iterations , int len ) {
117117 double elapsed ;
118- uint8_t m [ len ] ;
119- float x [ len ] ;
120- float y [ len ] ;
118+ uint8_t * m ;
119+ float * x ;
120+ float * y ;
121121 double t ;
122122 int i ;
123123
124+ m = (uint8_t * ) malloc ( len * sizeof ( uint8_t ) );
125+ x = (float * ) malloc ( len * sizeof ( float ) );
126+ y = (float * ) malloc ( len * sizeof ( float ) );
124127 for ( i = 0 ; i < len ; i ++ ) {
125128 x [ i ] = rand_uniformf ( -180.0f , 180.0f );
126129 y [ i ] = 0.0f ;
@@ -138,6 +141,9 @@ static double benchmark( int iterations, int len ) {
138141 if ( y [ 0 ] != y [ 0 ] ) {
139142 printf ( "should not return NaN\n" );
140143 }
144+ free ( m );
145+ free ( x );
146+ free ( y );
141147 return elapsed ;
142148}
143149
You can’t perform that action at this time.
0 commit comments