StatsQ7.cpp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. #include "StatsQ7.h"
  2. #include <stdio.h>
  3. #include "Error.h"
  4. #include "Test.h"
  5. void StatsQ7::test_max_q7()
  6. {
  7. q7_t result;
  8. uint32_t indexval;
  9. arm_max_q7(inap,
  10. this->nb,
  11. &result,
  12. &indexval);
  13. }
  14. void StatsQ7::test_absmax_q7()
  15. {
  16. q7_t result;
  17. uint32_t indexval;
  18. arm_absmax_q7(inap,
  19. this->nb,
  20. &result,
  21. &indexval);
  22. }
  23. void StatsQ7::test_min_q7()
  24. {
  25. q7_t result;
  26. uint32_t indexval;
  27. arm_min_q7(inap,
  28. this->nb,
  29. &result,
  30. &indexval);
  31. }
  32. void StatsQ7::test_absmin_q7()
  33. {
  34. q7_t result;
  35. uint32_t indexval;
  36. arm_absmin_q7(inap,
  37. this->nb,
  38. &result,
  39. &indexval);
  40. }
  41. void StatsQ7::test_mean_q7()
  42. {
  43. q7_t result;
  44. arm_mean_q7(inap,
  45. this->nb,
  46. &result);
  47. }
  48. void StatsQ7::test_power_q7()
  49. {
  50. q31_t result;
  51. arm_power_q7(inap,
  52. this->nb,
  53. &result);
  54. }
  55. void StatsQ7::setUp(Testing::testID_t id,std::vector<Testing::param_t>& paramsArgs,Client::PatternMgr *mgr)
  56. {
  57. std::vector<Testing::param_t>::iterator it = paramsArgs.begin();
  58. this->nb = *it;
  59. inputA.reload(StatsQ7::INPUT1_Q7_ID,mgr,this->nb);
  60. inap=inputA.ptr();
  61. }
  62. void StatsQ7::tearDown(Testing::testID_t id,Client::PatternMgr *mgr)
  63. {
  64. (void)id;
  65. }