Skip to content

Commit 79abde4

Browse files
committed
Auto-generated commit
1 parent e3c5f31 commit 79abde4

File tree

4 files changed

+92
-51
lines changed

4 files changed

+92
-51
lines changed

.gitignore

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,12 @@ jsconfig.json
188188
# Other editor files #
189189
######################
190190
.idea/
191-
192-
# Cursor #
193-
##########
191+
.cursor
194192
.cursorignore
193+
.windsurfrules
194+
.clinerules
195+
196+
# AI coding agents #
197+
####################
198+
CLAUDE.md
199+
GEMINI.md

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-07-21)
7+
## Unreleased (2025-12-17)
88

99
<section class="features">
1010

@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`ea9f072`](https://github.com/stdlib-js/stdlib/commit/ea9f072b321a395594b7904a11807f7f78d09b28) - **bench:** refactor to use dynamic memory allocation in `blas/base/csrot` [(#9090)](https://github.com/stdlib-js/stdlib/pull/9090) _(by Ishwar, Athan Reines)_
2526
- [`a9776fd`](https://github.com/stdlib-js/stdlib/commit/a9776fdca0331c293eade49bd195836fbb434999) - **refactor:** update include header guards for single precision complex packages [(#7708)](https://github.com/stdlib-js/stdlib/pull/7708) _(by Shabareesh Shetty)_
2627
- [`4dba421`](https://github.com/stdlib-js/stdlib/commit/4dba421f5bd8acafdd58e1c7681965b9ad267bc7) - **docs:** minor clean-up _(by Philipp Burckhardt)_
2728
- [`09c9ceb`](https://github.com/stdlib-js/stdlib/commit/09c9ceb58c6dd23c10f1980094851983c57d693f) - **chore:** fix formatting _(by Athan Reines)_
@@ -45,11 +46,12 @@
4546

4647
### Contributors
4748

48-
A total of 5 people contributed to this release. Thank you to the following contributors:
49+
A total of 6 people contributed to this release. Thank you to the following contributors:
4950

5051
- Aman Bhansali
5152
- Athan Reines
5253
- Gururaj Gurram
54+
- Ishwar
5355
- Philipp Burckhardt
5456
- Shabareesh Shetty
5557

CONTRIBUTORS

Lines changed: 68 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,40 @@
33
# Contributors listed in alphabetical order.
44

55
Aadish Jain <jain.aadishj@gmail.com>
6-
Aarya Balwadkar <142713127+AaryaBalwadkar@users.noreply.github.com>
6+
Aarya Balwadkar <aaryabalwadkar2005@gmail.com>
77
Aayush Khanna <aayushiitbhu23@gmail.com>
88
Abdelrahman Samir <60700731+abdelrahman04@users.noreply.github.com>
99
Abdul Kaium <97376242+impawstarlight@users.noreply.github.com>
1010
Abhay Punia <156515195+Hecker165@users.noreply.github.com>
1111
Abhijit Raut <abhijitmraut8010@gmail.com>
12+
Abhishek G <166795493+AbhishekG-Codes@users.noreply.github.com>
1213
Abhishek Jain <40913033+abhishekblue@users.noreply.github.com>
1314
Adarsh Palaskar <adarshpalaskar99@gmail.com>
1415
Aditya Sapra <adityaework@gmail.com>
16+
Aditya Singh <adityasinghk099@gmail.com>
1517
Ahmed Atwa <Ahmedatwa866@yahoo.com>
1618
Ahmed Kashkoush <ahmedkashkoush464@gmail.com>
1719
Ahmed Khaled <kahmd1444@gmail.com>
1820
Aksshay Balasubramanian <119944779+Aksshay88@users.noreply.github.com>
1921
Aleksandr <112382387+alextes90@users.noreply.github.com>
2022
Ali Salesi <ali_sal1381@yahoo.com>
21-
AlyAbdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
22-
Aman Bhansali <bhansali.1@iitj.ac.in>
23-
AmanBhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
24-
Amisha Chhajed <136238836+amishhaa@users.noreply.github.com>
23+
Aly Abdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
24+
Aman Bhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
25+
Aman Bhansali <amanbhansali65@gmail.com>
26+
Amisha Chhajed <amishhhaaaa@gmail.com>
2527
Amit Jimiwal <amitjimiwal45@gmail.com>
26-
Anmol Sah <113588714+anmolsah@users.noreply.github.com>
28+
Anmol Sah <annifind010@gmail.com>
2729
Annamalai Prabu <apfossdev@gmail.com>
28-
Anshu Kumar <132515490+anxhukumar@users.noreply.github.com>
2930
Anshu Kumar <contact.anshukumar@protonmail.com>
31+
Anshuman Singh <anshu.1239.as@gmail.com>
3032
Anudeep Sanapala <anudeep0306@gmail.com>
3133
Arihant Pal <arihant0pal@gmail.com>
3234
Aryan Bhirud <112156883+AryanBhirud@users.noreply.github.com>
35+
Aryan J <18aryanj2006@gmail.com>
3336
Athan Reines <kgryte@gmail.com>
34-
Atharva Patil <124063987+atharva-patil-23@users.noreply.github.com>
35-
Ayaka <73595362+USERSATOSHI@users.noreply.github.com>
36-
Bhavishy Agrawal <90029607+bhavishy2801@users.noreply.github.com>
37+
Atharva Patil <anpatil.1223@gmail.com>
38+
Bhavishy Agrawal <bhavishyrocker2801@gmail.com>
39+
Bhupesh Kumar <bkumar_be23@thapar.edu>
3740
Brendan Graetz <bguiz@users.noreply.github.com>
3841
Bruno Fenzl <brunofenzl@gmail.com>
3942
Bryan Elee <rxbryn@gmail.com>
@@ -44,82 +47,97 @@ Daniel Hernandez Gomez <156333015+dhernandeez13@users.noreply.github.com>
4447
Daniel Killenberger <daniel.killenberger@gmail.com>
4548
Daniel Yu <40680511+Daniel777y@users.noreply.github.com>
4649
Debashis Maharana <debashismaharana7854@gmail.com>
47-
Deep Trivedi <128926685+thedeeppp@users.noreply.github.com>
50+
Deep Trivedi <deepbtrivedi04@gmail.com>
4851
Deepak Singh <78257493+Deepak91168@users.noreply.github.com>
4952
Deepak Singh <negid0253@gmail.com>
50-
Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com>
53+
Desh Deepak Kant <deshdeepakkant@gmail.com>
5154
Dev Goel <135586571+corsairier@users.noreply.github.com>
52-
Dhanyabad behera <110620935+dhanyabad11@users.noreply.github.com>
55+
Devshree Bhati <147095250+devshree-bhati@users.noreply.github.com>
56+
Dhanyabad Behera <dhanyabadbehera@gmail.com>
5357
Dhruv Arvind Singh <154677013+DhruvArvindSingh@users.noreply.github.com>
54-
Dhruvil Mehta <68022411+dhruvilmehta@users.noreply.github.com>
55-
Dipjyoti Das <126075231+dipexplorer@users.noreply.github.com>
56-
Divyansh Seth <59174836+sethdivyansh@users.noreply.github.com>
58+
Dhruvil Mehta <dhruvilmehta2606@gmail.com>
59+
Dipjyoti Das <dipexplorerid23@gmail.com>
60+
Ditsu S <170345142+ditsus@users.noreply.github.com>
61+
Divyansh Seth <divyanshseth08@gmail.com>
5762
Dominic Lim <46486515+domlimm@users.noreply.github.com>
5863
Dominik Moritz <domoritz@gmail.com>
5964
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
60-
EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
65+
Dudhat Hemil Pravinkumar <138382078+Hemil36@users.noreply.github.com>
66+
Ekampreet Singh Bains <bainsinbusiness@gmail.com>
67+
Eunice Sim <77243938+EuniceSim142@users.noreply.github.com>
68+
Fadio <48636283+fadiothman22@users.noreply.github.com>
6169
Frank Kovacs <fran70kk@gmail.com>
62-
GK Bishnoi <gkishan1kyt@gmail.com>
63-
GURU PRASAD SHARMA <168292003+GURUPRASADSHARMA@users.noreply.github.com>
64-
Gaurav <gaurav70380@gmail.com>
70+
Gaurav Jadhav <gaurav70380@gmail.com>
71+
Gaurav Kaushik <144526331+Gauravkaushik-1206@users.noreply.github.com>
6572
Gautam Kaushik <162317291+Kaushikgtm@users.noreply.github.com>
6673
Gautam sharma <gautamkrishnasharma1@gmail.com>
67-
GeoDaoyu <geodaoyu@foxmail.com>
74+
Geo Daoyu <geodaoyu@foxmail.com>
6875
Girish Garg <garggirish2020@gmail.com>
76+
Gitty Harsha <hnarayana788@gmail.com>
6977
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
78+
Gopi Kishan <gkishan1kyt@gmail.com>
7079
Gunj Joshi <gunjjoshi8372@gmail.com>
80+
Guru Prasad Sharma <168292003+GURUPRASADSHARMA@users.noreply.github.com>
7181
Gururaj Gurram <gururajgurram1512@gmail.com>
7282
Harishchandra Reddy <harish.7000@gmail.com>
7383
Haroon Rasheed <51189276+haroon26@users.noreply.github.com>
74-
Harsh <harshyadav6078@gmail.com>
75-
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
84+
Harsh Yadav <harshyadav6078@gmail.com>
7685
Harshita Kalani <harshitakalani02@gmail.com>
7786
Hemang Choudhary <coehemang@gmail.com>
7887
Hemant M Mehta <92446645+hemantmm@users.noreply.github.com>
7988
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
89+
Iryna Andrushko <ira.andrushko2@gmail.com>
8090
Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
81-
Jaison D Souza <123267719+jsndz@users.noreply.github.com>
91+
Jaison Dsouza <jaisondz9360@gmail.com>
8292
Jalaj Kumar <142599224+jalajk3004@users.noreply.github.com>
8393
James Gelok <jdgelok@gmail.com>
8494
Jay Soni <jaygsoni14@gmail.com>
8595
Jaysukh Makvana <jaysukhmakvana2004@gmail.com>
96+
Jenish <thisisjenish05@gmail.com>
8697
Jenish Thapa <141203631+jenish-thapa@users.noreply.github.com>
8798
Jithin KS <jithinks112@gmail.com>
8899
Joel Mathew Koshy <joelmathewkoshy@gmail.com>
89100
Joey Reed <joeyrreed@gmail.com>
90101
Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
91102
Joris Labie <joris.labie1@gmail.com>
103+
jsai28 <54253219+jsai28@users.noreply.github.com>
92104
Justin Dennison <justin1dennison@gmail.com>
93105
Justyn Shelby <96994781+ShelbyJustyn@users.noreply.github.com>
94106
Karan Anand <anandkarancompsci@gmail.com>
95107
Karan Vasudevamurthy <karanlvm123@gmail.com>
96108
Karan Yadav <77043443+karanBRAVO@users.noreply.github.com>
97109
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
98-
Kaushikgtm <162317291+Kaushikgtm@users.noreply.github.com>
99110
Kavyansh-Bagdi <153486713+Kavyansh-Bagdi@users.noreply.github.com>
100111
Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
101112
Krishnam Agarwal <83017176+888krishnam@users.noreply.github.com>
102113
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
103114
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
104115
Lalit Narayan Yadav <162928571+LalitNarayanYadav@users.noreply.github.com>
116+
lohithganni <116790357+lohithganni@users.noreply.github.com>
105117
Lokesh Ranjan <lokesh.ranjan.phe23@itbhu.ac.in>
106118
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
107-
MANI <77221000+Eternity0207@users.noreply.github.com>
108119
Mahfuza Humayra Mohona <mhmohona@gmail.com>
120+
MANI <77221000+Eternity0207@users.noreply.github.com>
109121
Manik Sharma <maniksharma.rke@gmail.com>
110122
Manvith M <148960168+manvith2003@users.noreply.github.com>
123+
Mara Averick <batpigandme@users.noreply.github.com>
111124
Marcus Fantham <mfantham@users.noreply.github.com>
112125
Matt Cochrane <matthew.cochrane.eng@gmail.com>
113126
Mihir Pandit <129577900+MSP20086@users.noreply.github.com>
114127
Milan Raj <rajsite@users.noreply.github.com>
115128
Mohammad Bin Aftab <48010758+MohammadBinAftab@users.noreply.github.com>
116129
Mohammad Kaif <mdkaifprofession@gmail.com>
130+
Mohsin <122507740+thisisairo@users.noreply.github.com>
117131
Momtchil Momtchev <momtchil@momtchev.com>
118132
Muhammad Haris <harriskhan047@outlook.com>
119133
Muhammad Taaha Tariq <166188821+Taaha-Tariq@users.noreply.github.com>
120134
Muhmmad Saad <106260977+saad-imran-dev@users.noreply.github.com>
135+
Nakul Krishnakumar <nakulkrishnakumar86@gmail.com>
121136
Naresh Jagadeesan <naresh.naresh000@gmail.com>
122137
Naveen Kumar <stupiddint@gmail.com>
138+
Navyansh Kesarwani <91735202+navyansh007@users.noreply.github.com>
139+
navyansh007 <91735202+navyansh007@users.noreply.github.com>
140+
NEEKUorAAYUSH <aayush10072004@gmail.com>
123141
Neeraj Pathak <neerajrpathak710@gmail.com>
124142
NirvedMishra <139633597+NirvedMishra@users.noreply.github.com>
125143
Nishant Shinde <97207366+nishant-s7@users.noreply.github.com>
@@ -128,13 +146,18 @@ Nishchay Rajput <121144841+NishchayRajput@users.noreply.github.com>
128146
Nithin Katta <88046362+nithinkatta@users.noreply.github.com>
129147
Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
130148
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
149+
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
131150
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
132151
Ori Miles <97595296+orimiles5@users.noreply.github.com>
152+
Payal Goswami <payalgoswami9711@gmail.com>
133153
Philipp Burckhardt <pburckhardt@outlook.com>
134154
Pierre Forstmann <15964998+pierreforstmann@users.noreply.github.com>
155+
Piyush Goel <piyush.goel2704@gmail.com>
156+
Pradyumn Prasad <pradyumnprasad.567@gmail.com>
135157
Prajjwal Bajpai <142303989+prajjwalbajpai@users.noreply.github.com>
136158
Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
137159
Pranav Goswami <pranavchiku11@gmail.com>
160+
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
138161
Pranjal Jha <97080887+PraneGIT@users.noreply.github.com>
139162
Prashant Kumar Yadav <144602492+0PrashantYadav0@users.noreply.github.com>
140163
PrathamBhamare <164445568+PrathamBhamare@users.noreply.github.com>
@@ -146,40 +169,51 @@ Priyanshu Agarwal <113460573+AgPriyanshu18@users.noreply.github.com>
146169
Pulkit Gupta <65711278+pulkitgupta2@users.noreply.github.com>
147170
Pushpendra Chandravanshi <pushpendrachandravanshi4@gmail.com>
148171
Rahul Kumar <132570066+rahulptl165@users.noreply.github.com>
172+
rahulrangers <127782777+rahulrangers@users.noreply.github.com>
173+
rainn <88160429+AmCodesLame@users.noreply.github.com>
149174
Raunak Kumar Gupta <raunakmodanwal321@gmail.com>
175+
rei2hu <reimu@reimu.ws>
150176
Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com>
151177
Ricky Reusser <rsreusser@gmail.com>
152178
Ridam Garg <67867319+RidamGarg@users.noreply.github.com>
153179
Rishav <115060907+rishav2404@users.noreply.github.com>
154180
Rishav Tarway <rishavtarway@gmail.com>
155181
Robert Gislason <gztown2216@yahoo.com>
156182
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
183+
RudrakshRaina07 <1819rudraksh@gmail.com>
157184
Rupa <102663541+Rupa-Rd@users.noreply.github.com>
158185
Rutam Kathale <138517416+performant23@users.noreply.github.com>
159186
Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
160187
Ryan Seal <splrk@users.noreply.github.com>
161188
Rylan Yang <137365285+rylany27@users.noreply.github.com>
162-
SAHIL KUMAR <168997976+sahilk45@users.noreply.github.com>
163-
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
164189
Sachin Raj <120590207+schnrj@users.noreply.github.com>
165190
Sahil Goyal <87982509+sahil20021008@users.noreply.github.com>
191+
SAHIL KUMAR <168997976+sahilk45@users.noreply.github.com>
166192
Sai Avinash <120403424+nasarobot@users.noreply.github.com>
167193
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
168194
Sanchay Ketan Sinha <122982233+satansin123@users.noreply.github.com>
169195
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
196+
Satyajeet Chavan <chavansatyajeet2004@gmail.com>
197+
SAUJANYA MAGARDE <162047941+SaujanyaMagarde@users.noreply.github.com>
170198
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
199+
Seth-Banker <125103042+Seth-Banker@users.noreply.github.com>
171200
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
172201
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
173202
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
203+
Shaswata Panda <106397517+shaswata-26@users.noreply.github.com>
174204
Shivam Ahir <11shivam00@gmail.com>
205+
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
175206
Shivansh <114570926+shiv343@users.noreply.github.com>
176207
Shraddheya Shendre <shendreshraddheya@gmail.com>
177208
Shubh Mehta <93862397+Shubh942@users.noreply.github.com>
209+
Shubham <b4mshubham@gmail.com>
178210
Shubham Mishra <shubh622005@gmail.com>
211+
Siddhesh waje <117733253+siddhesh434@users.noreply.github.com>
179212
Sivam Das <100067002+Sivam2313@users.noreply.github.com>
180213
Snehil Shah <snehilshah.989@gmail.com>
181214
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
182215
Spandan Barve <contact@marsian.dev>
216+
Srinivas Batthula <srinivasbatthula05.official@gmail.com>
183217
Stephannie Jiménez Gacha <steff456@hotmail.com>
184218
Suhaib Ilahi <suhaib.elahi87@gmail.com>
185219
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>
@@ -189,32 +223,24 @@ Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
189223
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
190224
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
191225
Tushar Bhardwaj <155543597+TusharBhardwaj441@users.noreply.github.com>
226+
Tushar Bharti <73595362+USERSATOSHI@users.noreply.github.com>
227+
Tyson Cung <45380903+tysoncung@users.noreply.github.com>
192228
Uday Kakade <141299403+udaykakade25@users.noreply.github.com>
193229
Ujjwal Kirti <64329707+ujjwalkirti@users.noreply.github.com>
194230
Utkarsh <http://utkarsh11105@gmail.com>
195231
Utkarsh Raj <rajutkarsh2505@gmail.com>
196232
UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com>
197233
Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com>
234+
Vansh Choudhary <iamvanshchaudhary7@gmail.com>
198235
Vara Rahul Rajana <123227543+rajanarahul93@users.noreply.github.com>
199236
Varad Gupta <varadgupta21@gmail.com>
200237
Vinit Pandit <106718914+MeastroZI@users.noreply.github.com>
201238
Vivek Maurya <vm8118134@gmail.com>
239+
Wendy Yuchen Sun <wendyyuchensun@gmail.com>
202240
Xiaochuan Ye <tap91624@gmail.com>
203241
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
204242
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
243+
youzi-forge <liuxingyou666@outlook.com>
205244
Yugal Kaushik <yugalkaushik14@gmail.com>
206245
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
207-
deepak427 <62477872+deepak427@users.noreply.github.com>
208-
devshree-bhati <147095250+devshree-bhati@users.noreply.github.com>
209-
ditsu <170345142+ditsus@users.noreply.github.com>
210-
ekambains <bainsinbusiness@gmail.com>
211-
fadiothman22 <48636283+fadiothman22@users.noreply.github.com>
212-
iraandrushko <71790513+iraandrushko@users.noreply.github.com>
213-
jsai28 <54253219+jsai28@users.noreply.github.com>
214-
lohithganni <116790357+lohithganni@users.noreply.github.com>
215-
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
216-
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
217-
rahulrangers <127782777+rahulrangers@users.noreply.github.com>
218-
rainn <88160429+AmCodesLame@users.noreply.github.com>
219-
rei2hu <reimu@reimu.ws>
220-
zhanggy <geodaoyu@foxmail.com>
246+
Zuhair Ahmad <157193652+Zuhair-CS@users.noreply.github.com>

benchmark/c/benchmark.length.c

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,13 @@ static float rand_float( void ) {
9696
*/
9797
static double benchmark1( int iterations, int len ) {
9898
double elapsed;
99-
float x[ len*2 ];
100-
float y[ len*2 ];
99+
float *x;
100+
float *y;
101101
double t;
102102
int i;
103103

104+
x = (float *) malloc( len * 2 * sizeof( float ) );
105+
y = (float *) malloc( len * 2 * sizeof( float ) );
104106
for ( i = 0; i < len; i++ ) {
105107
x[ i ] = ( rand_float()*10000.0f ) - 5000.0f;
106108
x[ i+1 ] = ( rand_float()*10000.0f ) - 5000.0f;
@@ -119,6 +121,8 @@ static double benchmark1( int iterations, int len ) {
119121
if ( y[ 0 ] != y[ 0 ] ) {
120122
printf( "should not return NaN\n" );
121123
}
124+
free( x );
125+
free( y );
122126
return elapsed;
123127
}
124128

@@ -131,11 +135,13 @@ static double benchmark1( int iterations, int len ) {
131135
*/
132136
static double benchmark2( int iterations, int len ) {
133137
double elapsed;
134-
float x[ len*2 ];
135-
float y[ len*2 ];
138+
float *x;
139+
float *y;
136140
double t;
137141
int i;
138142

143+
x = (float *) malloc( len * 2 * sizeof( float ) );
144+
y = (float *) malloc( len * 2 * sizeof( float ) );
139145
for ( i = 0; i < len; i++ ) {
140146
x[ i ] = ( rand_float()*10000.0f ) - 5000.0f;
141147
x[ i+1 ] = ( rand_float()*10000.0f ) - 5000.0f;
@@ -154,6 +160,8 @@ static double benchmark2( int iterations, int len ) {
154160
if ( y[ 0 ] != y[ 0 ] ) {
155161
printf( "should not return NaN\n" );
156162
}
163+
free( x );
164+
free( y );
157165
return elapsed;
158166
}
159167

0 commit comments

Comments
 (0)