SupportTestsF64.cpp 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734
  1. #include "SupportTestsF64.h"
  2. #include <stdlib.h>
  3. #include <stdio.h>
  4. #include "Error.h"
  5. #include "Test.h"
  6. #define SNR_THRESHOLD 120
  7. #define REL_ERROR (1.0e-5)
  8. #define ABS_Q15_ERROR ((q15_t)10)
  9. #define ABS_Q31_ERROR ((q31_t)80)
  10. #define ABS_Q7_ERROR ((q7_t)10)
  11. /*
  12. void SupportTestsF64::test_weighted_sum_f64()
  13. {
  14. const float64_t *inp = input.ptr();
  15. const float64_t *coefsp = coefs.ptr();
  16. float64_t *refp = ref.ptr();
  17. float64_t *outp = output.ptr();
  18. *outp=arm_weighted_sum_f64(inp, coefsp,this->nbSamples);
  19. ASSERT_REL_ERROR(*outp,refp[this->offset],REL_ERROR);
  20. ASSERT_EMPTY_TAIL(output);
  21. }
  22. */
  23. void SupportTestsF64::test_copy_f64()
  24. {
  25. const float64_t *inp = input.ptr();
  26. float64_t *outp = output.ptr();
  27. arm_copy_f64(inp, outp,this->nbSamples);
  28. ASSERT_EQ(input,output);
  29. ASSERT_EMPTY_TAIL(output);
  30. }
  31. void SupportTestsF64::test_fill_f64()
  32. {
  33. float64_t *outp = output.ptr();
  34. float64_t val = 1.1;
  35. int i;
  36. arm_fill_f64(val, outp,this->nbSamples);
  37. for(i=0 ; i < this->nbSamples; i++)
  38. {
  39. ASSERT_EQ(val,outp[i]);
  40. }
  41. ASSERT_EMPTY_TAIL(output);
  42. }
  43. /*
  44. void SupportTestsF64::test_float_to_q15()
  45. {
  46. const float64_t *inp = input.ptr();
  47. q15_t *outp = outputQ15.ptr();
  48. arm_float_to_q15(inp, outp,this->nbSamples);
  49. ASSERT_NEAR_EQ(refQ15,outputQ15,ABS_Q15_ERROR);
  50. ASSERT_EMPTY_TAIL(outputQ15);
  51. }
  52. void SupportTestsF64::test_float_to_q31()
  53. {
  54. const float64_t *inp = input.ptr();
  55. q31_t *outp = outputQ31.ptr();
  56. arm_float_to_q31(inp, outp,this->nbSamples);
  57. ASSERT_NEAR_EQ(refQ31,outputQ31,ABS_Q31_ERROR);
  58. ASSERT_EMPTY_TAIL(outputQ31);
  59. }
  60. void SupportTestsF64::test_float_to_q7()
  61. {
  62. const float64_t *inp = input.ptr();
  63. q7_t *outp = outputQ7.ptr();
  64. arm_float_to_q7(inp, outp,this->nbSamples);
  65. ASSERT_NEAR_EQ(refQ7,outputQ7,ABS_Q7_ERROR);
  66. ASSERT_EMPTY_TAIL(outputQ7);
  67. }
  68. void SupportTestsF64::test_bitonic_sort_out_f64()
  69. {
  70. float64_t *inp = input.ptr();
  71. float64_t *outp = output.ptr();
  72. arm_sort_instance_f64 S;
  73. arm_sort_init_f64(&S, ARM_SORT_BITONIC, ARM_SORT_ASCENDING);
  74. arm_sort_f64(&S,inp,outp,this->nbSamples);
  75. ASSERT_EMPTY_TAIL(output);
  76. ASSERT_EQ(output,ref);
  77. }
  78. void SupportTestsF64::test_bitonic_sort_in_f64()
  79. {
  80. float64_t *inp = input.ptr();
  81. arm_sort_instance_f64 S;
  82. arm_sort_init_f64(&S, ARM_SORT_BITONIC, ARM_SORT_ASCENDING);
  83. arm_sort_f64(&S,inp,inp,this->nbSamples);
  84. ASSERT_EMPTY_TAIL(input);
  85. ASSERT_EQ(input,ref);
  86. }
  87. void SupportTestsF64::test_bitonic_sort_const_f64()
  88. {
  89. float64_t *inp = input.ptr();
  90. float64_t *outp = output.ptr();
  91. arm_sort_instance_f64 S;
  92. arm_sort_init_f64(&S, ARM_SORT_BITONIC, ARM_SORT_ASCENDING);
  93. arm_sort_f64(&S,inp,outp,this->nbSamples);
  94. ASSERT_EMPTY_TAIL(output);
  95. ASSERT_EQ(output,ref);
  96. }
  97. void SupportTestsF64::test_bubble_sort_out_f64()
  98. {
  99. float64_t *inp = input.ptr();
  100. float64_t *outp = output.ptr();
  101. arm_sort_instance_f64 S;
  102. arm_sort_init_f64(&S, ARM_SORT_BUBBLE, ARM_SORT_ASCENDING);
  103. arm_sort_f64(&S,inp,outp,this->nbSamples);
  104. ASSERT_EMPTY_TAIL(output);
  105. ASSERT_EQ(output,ref);
  106. }
  107. void SupportTestsF64::test_bubble_sort_in_f64()
  108. {
  109. float64_t *inp = input.ptr();
  110. arm_sort_instance_f64 S;
  111. arm_sort_init_f64(&S, ARM_SORT_BUBBLE, ARM_SORT_ASCENDING);
  112. arm_sort_f64(&S,inp,inp,this->nbSamples);
  113. ASSERT_EMPTY_TAIL(input);
  114. ASSERT_EQ(input,ref);
  115. }
  116. void SupportTestsF64::test_bubble_sort_const_f64()
  117. {
  118. float64_t *inp = input.ptr();
  119. float64_t *outp = output.ptr();
  120. arm_sort_instance_f64 S;
  121. arm_sort_init_f64(&S, ARM_SORT_BUBBLE, ARM_SORT_ASCENDING);
  122. arm_sort_f64(&S,inp,outp,this->nbSamples);
  123. ASSERT_EMPTY_TAIL(output);
  124. ASSERT_EQ(output,ref);
  125. }
  126. void SupportTestsF64::test_heap_sort_out_f64()
  127. {
  128. float64_t *inp = input.ptr();
  129. float64_t *outp = output.ptr();
  130. arm_sort_instance_f64 S;
  131. arm_sort_init_f64(&S, ARM_SORT_HEAP, ARM_SORT_ASCENDING);
  132. arm_sort_f64(&S,inp,outp,this->nbSamples);
  133. ASSERT_EMPTY_TAIL(output);
  134. ASSERT_EQ(output,ref);
  135. }
  136. void SupportTestsF64::test_heap_sort_in_f64()
  137. {
  138. float64_t *inp = input.ptr();
  139. arm_sort_instance_f64 S;
  140. arm_sort_init_f64(&S, ARM_SORT_HEAP, ARM_SORT_ASCENDING);
  141. arm_sort_f64(&S,inp,inp,this->nbSamples);
  142. ASSERT_EMPTY_TAIL(input);
  143. ASSERT_EQ(input,ref);
  144. }
  145. void SupportTestsF64::test_heap_sort_const_f64()
  146. {
  147. float64_t *inp = input.ptr();
  148. float64_t *outp = output.ptr();
  149. arm_sort_instance_f64 S;
  150. arm_sort_init_f64(&S, ARM_SORT_HEAP, ARM_SORT_ASCENDING);
  151. arm_sort_f64(&S,inp,outp,this->nbSamples);
  152. ASSERT_EMPTY_TAIL(output);
  153. ASSERT_EQ(output,ref);
  154. }
  155. void SupportTestsF64::test_insertion_sort_out_f64()
  156. {
  157. float64_t *inp = input.ptr();
  158. float64_t *outp = output.ptr();
  159. arm_sort_instance_f64 S;
  160. arm_sort_init_f64(&S, ARM_SORT_INSERTION, ARM_SORT_ASCENDING);
  161. arm_sort_f64(&S,inp,outp,this->nbSamples);
  162. ASSERT_EMPTY_TAIL(output);
  163. ASSERT_EQ(output,ref);
  164. }
  165. void SupportTestsF64::test_insertion_sort_in_f64()
  166. {
  167. float64_t *inp = input.ptr();
  168. arm_sort_instance_f64 S;
  169. arm_sort_init_f64(&S, ARM_SORT_INSERTION, ARM_SORT_ASCENDING);
  170. arm_sort_f64(&S,inp,inp,this->nbSamples);
  171. ASSERT_EMPTY_TAIL(input);
  172. ASSERT_EQ(input,ref);
  173. }
  174. void SupportTestsF64::test_insertion_sort_const_f64()
  175. {
  176. float64_t *inp = input.ptr();
  177. float64_t *outp = output.ptr();
  178. arm_sort_instance_f64 S;
  179. arm_sort_init_f64(&S, ARM_SORT_INSERTION, ARM_SORT_ASCENDING);
  180. arm_sort_f64(&S,inp,outp,this->nbSamples);
  181. ASSERT_EMPTY_TAIL(output);
  182. ASSERT_EQ(output,ref);
  183. }
  184. void SupportTestsF64::test_merge_sort_out_f64()
  185. {
  186. float64_t *inp = input.ptr();
  187. float64_t *outp = output.ptr();
  188. float64_t *buf = buffer.ptr();
  189. buf = (float64_t *)malloc((this->nbSamples)*sizeof(float64_t) );
  190. arm_merge_sort_instance_f64 S;
  191. arm_merge_sort_init_f64(&S, ARM_SORT_ASCENDING, buf);
  192. arm_merge_sort_f64(&S,inp,outp,this->nbSamples);
  193. ASSERT_EMPTY_TAIL(output);
  194. ASSERT_EQ(output,ref);
  195. }
  196. void SupportTestsF64::test_merge_sort_const_f64()
  197. {
  198. float64_t *inp = input.ptr();
  199. float64_t *outp = output.ptr();
  200. float64_t *buf = buffer.ptr();
  201. buf = (float64_t *)malloc((this->nbSamples)*sizeof(float64_t) );
  202. arm_merge_sort_instance_f64 S;
  203. arm_merge_sort_init_f64(&S, ARM_SORT_ASCENDING, buf);
  204. arm_merge_sort_f64(&S,inp,outp,this->nbSamples);
  205. ASSERT_EMPTY_TAIL(output);
  206. ASSERT_EQ(output,ref);
  207. }
  208. void SupportTestsF64::test_quick_sort_out_f64()
  209. {
  210. float64_t *inp = input.ptr();
  211. float64_t *outp = output.ptr();
  212. arm_sort_instance_f64 S;
  213. arm_sort_init_f64(&S, ARM_SORT_QUICK, ARM_SORT_ASCENDING);
  214. arm_sort_f64(&S,inp,outp,this->nbSamples);
  215. ASSERT_EMPTY_TAIL(output);
  216. ASSERT_EQ(output,ref);
  217. }
  218. void SupportTestsF64::test_quick_sort_in_f64()
  219. {
  220. float64_t *inp = input.ptr();
  221. arm_sort_instance_f64 S;
  222. arm_sort_init_f64(&S, ARM_SORT_QUICK, ARM_SORT_ASCENDING);
  223. arm_sort_f64(&S,inp,inp,this->nbSamples);
  224. ASSERT_EMPTY_TAIL(input);
  225. ASSERT_EQ(input,ref);
  226. }
  227. void SupportTestsF64::test_quick_sort_const_f64()
  228. {
  229. float64_t *inp = input.ptr();
  230. float64_t *outp = output.ptr();
  231. arm_sort_instance_f64 S;
  232. arm_sort_init_f64(&S, ARM_SORT_QUICK, ARM_SORT_ASCENDING);
  233. arm_sort_f64(&S,inp,outp,this->nbSamples);
  234. ASSERT_EMPTY_TAIL(output);
  235. ASSERT_EQ(output,ref);
  236. }
  237. void SupportTestsF64::test_selection_sort_out_f64()
  238. {
  239. float64_t *inp = input.ptr();
  240. float64_t *outp = output.ptr();
  241. arm_sort_instance_f64 S;
  242. arm_sort_init_f64(&S, ARM_SORT_SELECTION, ARM_SORT_ASCENDING);
  243. arm_sort_f64(&S,inp,outp,this->nbSamples);
  244. ASSERT_EMPTY_TAIL(output);
  245. ASSERT_EQ(output,ref);
  246. }
  247. void SupportTestsF64::test_selection_sort_in_f64()
  248. {
  249. float64_t *inp = input.ptr();
  250. arm_sort_instance_f64 S;
  251. arm_sort_init_f64(&S, ARM_SORT_SELECTION, ARM_SORT_ASCENDING);
  252. arm_sort_f64(&S,inp,inp,this->nbSamples);
  253. ASSERT_EMPTY_TAIL(input);
  254. ASSERT_EQ(input,ref);
  255. }
  256. void SupportTestsF64::test_selection_sort_const_f64()
  257. {
  258. float64_t *inp = input.ptr();
  259. float64_t *outp = output.ptr();
  260. arm_sort_instance_f64 S;
  261. arm_sort_init_f64(&S, ARM_SORT_SELECTION, ARM_SORT_ASCENDING);
  262. arm_sort_f64(&S,inp,outp,this->nbSamples);
  263. ASSERT_EMPTY_TAIL(output);
  264. ASSERT_EQ(output,ref);
  265. }
  266. */
  267. void SupportTestsF64::setUp(Testing::testID_t id,std::vector<Testing::param_t>& paramsArgs,Client::PatternMgr *mgr)
  268. {
  269. (void)paramsArgs;
  270. switch(id)
  271. {
  272. /*case TEST_WEIGHTED_SUM_F64_1:
  273. this->nbSamples = 2;
  274. input.reload(SupportTestsF64::INPUTS_F64_ID,mgr,this->nbSamples);
  275. coefs.reload(SupportTestsF64::WEIGHTS_F64_ID,mgr,this->nbSamples);
  276. ref.reload(SupportTestsF64::REF_F64_ID,mgr);
  277. output.create(1,SupportTestsF64::OUT_F64_ID,mgr);
  278. this->offset=0;
  279. break;
  280. case TEST_WEIGHTED_SUM_F64_2:
  281. this->nbSamples = 4;
  282. input.reload(SupportTestsF64::INPUTS_F64_ID,mgr,this->nbSamples);
  283. coefs.reload(SupportTestsF64::WEIGHTS_F64_ID,mgr,this->nbSamples);
  284. ref.reload(SupportTestsF64::REF_F64_ID,mgr);
  285. output.create(1,SupportTestsF64::OUT_F64_ID,mgr);
  286. this->offset=1;
  287. break;
  288. case TEST_WEIGHTED_SUM_F64_3:
  289. this->nbSamples = 5;
  290. input.reload(SupportTestsF64::INPUTS_F64_ID,mgr,this->nbSamples);
  291. coefs.reload(SupportTestsF64::WEIGHTS_F64_ID,mgr,this->nbSamples);
  292. ref.reload(SupportTestsF64::REF_F64_ID,mgr);
  293. output.create(1,SupportTestsF64::OUT_F64_ID,mgr);
  294. this->offset=2;
  295. break;
  296. */
  297. case TEST_COPY_F64_4:
  298. this->nbSamples = 2;
  299. input.reload(SupportTestsF64::SAMPLES_F64_ID,mgr,this->nbSamples);
  300. output.create(input.nbSamples(),SupportTestsF64::OUT_F64_ID,mgr);
  301. break;
  302. case TEST_COPY_F64_5:
  303. this->nbSamples = 4;
  304. input.reload(SupportTestsF64::SAMPLES_F64_ID,mgr,this->nbSamples);
  305. output.create(input.nbSamples(),SupportTestsF64::OUT_F64_ID,mgr);
  306. break;
  307. case TEST_COPY_F64_6:
  308. this->nbSamples = 5;
  309. input.reload(SupportTestsF64::SAMPLES_F64_ID,mgr,this->nbSamples);
  310. output.create(input.nbSamples(),SupportTestsF64::OUT_F64_ID,mgr);
  311. break;
  312. case TEST_FILL_F64_7:
  313. this->nbSamples = 2;
  314. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  315. break;
  316. case TEST_FILL_F64_8:
  317. this->nbSamples = 4;
  318. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  319. break;
  320. case TEST_FILL_F64_9:
  321. this->nbSamples = 5;
  322. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  323. break;
  324. /*
  325. case TEST_FLOAT_TO_Q15_10:
  326. this->nbSamples = 7;
  327. input.reload(SupportTestsF64::SAMPLES_F64_ID,mgr,this->nbSamples);
  328. refQ15.reload(SupportTestsF64::SAMPLES_Q15_ID,mgr,this->nbSamples);
  329. outputQ15.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  330. break;
  331. case TEST_FLOAT_TO_Q15_11:
  332. this->nbSamples = 16;
  333. input.reload(SupportTestsF64::SAMPLES_F64_ID,mgr,this->nbSamples);
  334. refQ15.reload(SupportTestsF64::SAMPLES_Q15_ID,mgr,this->nbSamples);
  335. outputQ15.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  336. break;
  337. case TEST_FLOAT_TO_Q15_12:
  338. this->nbSamples = 17;
  339. input.reload(SupportTestsF64::SAMPLES_F64_ID,mgr,this->nbSamples);
  340. refQ15.reload(SupportTestsF64::SAMPLES_Q15_ID,mgr,this->nbSamples);
  341. outputQ15.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  342. break;
  343. case TEST_FLOAT_TO_Q31_13:
  344. this->nbSamples = 3;
  345. input.reload(SupportTestsF64::SAMPLES_F64_ID,mgr,this->nbSamples);
  346. refQ31.reload(SupportTestsF64::SAMPLES_Q31_ID,mgr,this->nbSamples);
  347. outputQ31.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  348. break;
  349. case TEST_FLOAT_TO_Q31_14:
  350. this->nbSamples = 8;
  351. input.reload(SupportTestsF64::SAMPLES_F64_ID,mgr,this->nbSamples);
  352. refQ31.reload(SupportTestsF64::SAMPLES_Q31_ID,mgr,this->nbSamples);
  353. outputQ31.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  354. break;
  355. case TEST_FLOAT_TO_Q31_15:
  356. this->nbSamples = 11;
  357. input.reload(SupportTestsF64::SAMPLES_F64_ID,mgr,this->nbSamples);
  358. refQ31.reload(SupportTestsF64::SAMPLES_Q31_ID,mgr,this->nbSamples);
  359. outputQ31.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  360. break;
  361. case TEST_FLOAT_TO_Q7_16:
  362. this->nbSamples = 15;
  363. input.reload(SupportTestsF64::SAMPLES_F64_ID,mgr,this->nbSamples);
  364. refQ7.reload(SupportTestsF64::SAMPLES_Q7_ID,mgr,this->nbSamples);
  365. outputQ7.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  366. break;
  367. case TEST_FLOAT_TO_Q7_17:
  368. this->nbSamples = 32;
  369. input.reload(SupportTestsF64::SAMPLES_F64_ID,mgr,this->nbSamples);
  370. refQ7.reload(SupportTestsF64::SAMPLES_Q7_ID,mgr,this->nbSamples);
  371. outputQ7.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  372. break;
  373. case TEST_FLOAT_TO_Q7_18:
  374. this->nbSamples = 33;
  375. input.reload(SupportTestsF64::SAMPLES_F64_ID,mgr,this->nbSamples);
  376. refQ7.reload(SupportTestsF64::SAMPLES_Q7_ID,mgr,this->nbSamples);
  377. outputQ7.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  378. break;
  379. case TEST_BITONIC_SORT_OUT_F64_19:
  380. this->nbSamples = 16;
  381. input.reload(SupportTestsF64::INPUT_BITONIC_SORT_16_F64_ID,mgr,this->nbSamples);
  382. ref.reload(SupportTestsF64::REF_BITONIC_SORT_16_F64_ID,mgr);
  383. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  384. break;
  385. case TEST_BITONIC_SORT_OUT_F64_20:
  386. this->nbSamples = 32;
  387. input.reload(SupportTestsF64::INPUT_BITONIC_SORT_64_F64_ID,mgr,this->nbSamples);
  388. ref.reload(SupportTestsF64::REF_BITONIC_SORT_64_F64_ID,mgr);
  389. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  390. break;
  391. case TEST_BITONIC_SORT_IN_F64_21:
  392. this->nbSamples = 32;
  393. input.reload(SupportTestsF64::INPUT_BITONIC_SORT_64_F64_ID,mgr,this->nbSamples);
  394. ref.reload(SupportTestsF64::REF_BITONIC_SORT_64_F64_ID,mgr);
  395. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  396. break;
  397. case TEST_BITONIC_SORT_CONST_F64_22:
  398. this->nbSamples = 16;
  399. input.reload(SupportTestsF64::INPUT_SORT_CONST_F64_ID,mgr,this->nbSamples);
  400. ref.reload(SupportTestsF64::REF_SORT_CONST_F64_ID,mgr);
  401. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  402. break;
  403. case TEST_BUBBLE_SORT_OUT_F64_23:
  404. this->nbSamples = 11;
  405. input.reload(SupportTestsF64::INPUT_SORT_F64_ID,mgr,this->nbSamples);
  406. ref.reload(SupportTestsF64::REF_SORT_F64_ID,mgr);
  407. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  408. break;
  409. case TEST_BUBBLE_SORT_IN_F64_24:
  410. this->nbSamples = 11;
  411. input.reload(SupportTestsF64::INPUT_SORT_F64_ID,mgr,this->nbSamples);
  412. ref.reload(SupportTestsF64::REF_SORT_F64_ID,mgr);
  413. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  414. break;
  415. case TEST_BUBBLE_SORT_CONST_F64_25:
  416. this->nbSamples = 16;
  417. input.reload(SupportTestsF64::INPUT_SORT_CONST_F64_ID,mgr,this->nbSamples);
  418. ref.reload(SupportTestsF64::REF_SORT_CONST_F64_ID,mgr);
  419. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  420. break;
  421. case TEST_HEAP_SORT_OUT_F64_26:
  422. this->nbSamples = 11;
  423. input.reload(SupportTestsF64::INPUT_SORT_F64_ID,mgr,this->nbSamples);
  424. ref.reload(SupportTestsF64::REF_SORT_F64_ID,mgr);
  425. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  426. break;
  427. case TEST_HEAP_SORT_IN_F64_27:
  428. this->nbSamples = 11;
  429. input.reload(SupportTestsF64::INPUT_SORT_F64_ID,mgr,this->nbSamples);
  430. ref.reload(SupportTestsF64::REF_SORT_F64_ID,mgr);
  431. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  432. break;
  433. case TEST_HEAP_SORT_CONST_F64_28:
  434. this->nbSamples = 16;
  435. input.reload(SupportTestsF64::INPUT_SORT_CONST_F64_ID,mgr,this->nbSamples);
  436. ref.reload(SupportTestsF64::REF_SORT_CONST_F64_ID,mgr);
  437. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  438. break;
  439. case TEST_INSERTION_SORT_OUT_F64_29:
  440. this->nbSamples = 11;
  441. input.reload(SupportTestsF64::INPUT_SORT_F64_ID,mgr,this->nbSamples);
  442. ref.reload(SupportTestsF64::REF_SORT_F64_ID,mgr);
  443. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  444. break;
  445. case TEST_INSERTION_SORT_IN_F64_30:
  446. this->nbSamples = 11;
  447. input.reload(SupportTestsF64::INPUT_SORT_F64_ID,mgr,this->nbSamples);
  448. ref.reload(SupportTestsF64::REF_SORT_F64_ID,mgr);
  449. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  450. break;
  451. case TEST_INSERTION_SORT_CONST_F64_31:
  452. this->nbSamples = 16;
  453. input.reload(SupportTestsF64::INPUT_SORT_CONST_F64_ID,mgr,this->nbSamples);
  454. ref.reload(SupportTestsF64::REF_SORT_CONST_F64_ID,mgr);
  455. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  456. break;
  457. case TEST_MERGE_SORT_OUT_F64_32:
  458. this->nbSamples = 11;
  459. input.reload(SupportTestsF64::INPUT_SORT_F64_ID,mgr,this->nbSamples);
  460. ref.reload(SupportTestsF64::REF_SORT_F64_ID,mgr);
  461. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  462. break;
  463. case TEST_MERGE_SORT_CONST_F64_33:
  464. this->nbSamples = 16;
  465. input.reload(SupportTestsF64::INPUT_SORT_CONST_F64_ID,mgr,this->nbSamples);
  466. ref.reload(SupportTestsF64::REF_SORT_CONST_F64_ID,mgr);
  467. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  468. break;
  469. case TEST_QUICK_SORT_OUT_F64_34:
  470. this->nbSamples = 11;
  471. input.reload(SupportTestsF64::INPUT_SORT_F64_ID,mgr,this->nbSamples);
  472. ref.reload(SupportTestsF64::REF_SORT_F64_ID,mgr);
  473. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  474. break;
  475. case TEST_QUICK_SORT_IN_F64_35:
  476. this->nbSamples = 11;
  477. input.reload(SupportTestsF64::INPUT_SORT_F64_ID,mgr,this->nbSamples);
  478. ref.reload(SupportTestsF64::REF_SORT_F64_ID,mgr);
  479. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  480. break;
  481. case TEST_QUICK_SORT_CONST_F64_36:
  482. this->nbSamples = 16;
  483. input.reload(SupportTestsF64::INPUT_SORT_CONST_F64_ID,mgr,this->nbSamples);
  484. ref.reload(SupportTestsF64::REF_SORT_CONST_F64_ID,mgr);
  485. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  486. break;
  487. case TEST_SELECTION_SORT_OUT_F64_37:
  488. this->nbSamples = 11;
  489. input.reload(SupportTestsF64::INPUT_SORT_F64_ID,mgr,this->nbSamples);
  490. ref.reload(SupportTestsF64::REF_SORT_F64_ID,mgr);
  491. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  492. break;
  493. case TEST_SELECTION_SORT_IN_F64_38:
  494. this->nbSamples = 11;
  495. input.reload(SupportTestsF64::INPUT_SORT_F64_ID,mgr,this->nbSamples);
  496. ref.reload(SupportTestsF64::REF_SORT_F64_ID,mgr);
  497. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  498. break;
  499. case TEST_SELECTION_SORT_CONST_F64_39:
  500. this->nbSamples = 16;
  501. input.reload(SupportTestsF64::INPUT_SORT_CONST_F64_ID,mgr,this->nbSamples);
  502. ref.reload(SupportTestsF64::REF_SORT_CONST_F64_ID,mgr);
  503. output.create(this->nbSamples,SupportTestsF64::OUT_F64_ID,mgr);
  504. break;
  505. */
  506. }
  507. }
  508. void SupportTestsF64::tearDown(Testing::testID_t id,Client::PatternMgr *mgr)
  509. {
  510. (void)id;
  511. output.dump(mgr);
  512. }