File tree Expand file tree Collapse file tree
strided/special/dmskrsqrt/benchmark/c Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55<section class="release" id="unreleased">
66
7- ## Unreleased (2025-12-21 )
7+ ## Unreleased (2025-12-23 )
88
99<section class="features">
1010
@@ -708,6 +708,7 @@ A total of 74 issues were closed in this release:
708708
709709<details>
710710
711+ - [`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)_
711712- [`6ea7c0a`](https://github.com/stdlib-js/stdlib/commit/6ea7c0aa08dcf16ba56f217bf5ff24984129fe1d) - **docs:** update examples [(#9290)](https://github.com/stdlib-js/stdlib/pull/9290) _(by stdlib-bot)_
712713- [`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)_
713714- [`2e80e3a`](https://github.com/stdlib-js/stdlib/commit/2e80e3a075fbafef274e94d203b693ec03e65fec) - **test:** use powf in negafibonaccif [(#9192)](https://github.com/stdlib-js/stdlib/pull/9192) _(by Sagar Ratna Chaudhary)_
@@ -1851,7 +1852,7 @@ A total of 74 issues were closed in this release:
18511852
18521853### Contributors
18531854
1854- A total of 58 people contributed to this release. Thank you to the following contributors:
1855+ A total of 59 people contributed to this release. Thank you to the following contributors:
18551856
18561857- Aayush Khanna
18571858- Aman Singh
@@ -1907,6 +1908,7 @@ A total of 58 people contributed to this release. Thank you to the following con
19071908- Sahil Goyal
19081909- Sanchay Ketan Sinha
19091910- Saurabh Singh
1911+ - Seoha Son
19101912- Shabareesh Shetty
19111913- Shaswata Panda
19121914- Vivek Maurya
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- double x [ len ] ;
120- double y [ len ] ;
118+ uint8_t * m ;
119+ double * x ;
120+ double * y ;
121121 double t ;
122122 int i ;
123123
124+ m = (uint8_t * )malloc ( len * sizeof ( uint8_t ) );
125+ x = (double * )malloc ( len * sizeof ( double ) );
126+ y = (double * )malloc ( len * sizeof ( double ) );
124127 for ( i = 0 ; i < len ; i ++ ) {
125128 x [ i ] = rand_uniform ( 0.0 , 200.0 );
126129 y [ i ] = 0.0 ;
@@ -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