• R/O
  • SSH
  • HTTPS

chibios: Commit


Commit MetaInfo

Revision14526 (tree)
Time2021-06-10 21:09:28
Authorgdisirio

Log Message

(empty log message)

Change Summary

Incremental Difference

--- trunk/test/corebmk/source/test/corebmk_test_sequence_001.c (revision 14525)
+++ trunk/test/corebmk/source/test/corebmk_test_sequence_001.c (revision 14526)
@@ -143,7 +143,7 @@
143143 * - [1.2.1] Allocating memory for single precision work matrix.
144144 * - [1.2.2] Printing setup.
145145 * - [1.2.3] Running single precision FFT iterations.
146- * - [1.2.4] Printing results.
146+ * - [1.2.4] Printing execution time.
147147 * .
148148 */
149149
@@ -159,7 +159,8 @@
159159
160160 static void corebmk_test_001_002_execute(void) {
161161 time_msecs_t msecs;
162- size_t fasize, fanum;
162+ size_t fasize;
163+ int fanum;
163164 int faedge;
164165 int nsize[] = {0, 0, 0};
165166
@@ -166,9 +167,9 @@
166167 /* [1.2.1] Allocating memory for single precision work matrix.*/
167168 test_set_step(1);
168169 {
169- faedge = ASIZE; /* FFT array edge size.*/
170+ faedge = ASIZE; /* FFT array edge size.*/
170171 fanum = faedge * faedge;
171- fasize = ((fanum + 1) * 2 * sizeof(float)); /* FFT array size.*/
172+ fasize = ((size_t)(fanum + 1) * 2 * sizeof(float)); /* FFT array size.*/
172173 fdatas = (float *)chHeapAlloc(NULL, fasize);
173174 nsize[1] = nsize[2] = faedge;
174175
@@ -232,7 +233,7 @@
232233 }
233234 test_end_step(3);
234235
235- /* [1.2.4] Printing results.*/
236+ /* [1.2.4] Printing execution time.*/
236237 test_set_step(4);
237238 {
238239 test_print("--- Time : ");
--- trunk/test/corebmk/configuration.xml (revision 14525)
+++ trunk/test/corebmk/configuration.xml (revision 14526)
@@ -180,7 +180,8 @@
180180 <local_variables>
181181 <value><![CDATA[
182182 time_msecs_t msecs;
183-size_t fasize, fanum;
183+size_t fasize;
184+int fanum;
184185 int faedge;
185186 int nsize[] = {0, 0, 0};
186187 ]]></value>
@@ -196,9 +197,9 @@
196197 </tags>
197198 <code>
198199 <value><![CDATA[
199-faedge = ASIZE; /* FFT array edge size.*/
200+faedge = ASIZE; /* FFT array edge size.*/
200201 fanum = faedge * faedge;
201-fasize = ((fanum + 1) * 2 * sizeof(float)); /* FFT array size.*/
202+fasize = ((size_t)(fanum + 1) * 2 * sizeof(float)); /* FFT array size.*/
202203 fdatas = (float *)chHeapAlloc(NULL, fasize);
203204 nsize[1] = nsize[2] = faedge;
204205
@@ -276,7 +277,7 @@
276277 </step>
277278 <step>
278279 <description>
279- <value>Printing results</value>
280+ <value>Printing execution time</value>
280281 </description>
281282 <tags>
282283 <value />
Show on old repository browser