SupportQ15.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #include "SupportQ15.h"
  2. #include "Error.h"
  3. void SupportQ15::test_copy_q15()
  4. {
  5. }
  6. void SupportQ15::test_fill_q15()
  7. {
  8. }
  9. void SupportQ15::test_q7_to_q15()
  10. {
  11. }
  12. void SupportQ15::test_q31_to_q15()
  13. {
  14. }
  15. void SupportQ15::setUp(Testing::testID_t id,std::vector<Testing::param_t>& params,Client::PatternMgr *mgr)
  16. {
  17. std::vector<Testing::param_t>::iterator it = params.begin();
  18. this->nbSamples = *it;
  19. output.create(this->nbSamples,SupportQ15::OUT_SAMPLES_Q15_ID,mgr);
  20. switch(id)
  21. {
  22. case TEST_COPY_Q15_1:
  23. case TEST_FILL_Q15_2:
  24. samples.reload(SupportQ15::SAMPLES_Q15_ID,mgr,this->nbSamples);
  25. this->pSrc=samples.ptr();
  26. break;
  27. case TEST_Q31_TO_Q15_3:
  28. samplesQ31.reload(SupportQ15::SAMPLES_Q31_ID,mgr,this->nbSamples);
  29. this->pSrcQ31=samplesQ31.ptr();
  30. break;
  31. case TEST_Q7_TO_Q15_4:
  32. samplesQ7.reload(SupportQ15::SAMPLES_Q7_ID,mgr,this->nbSamples);
  33. this->pSrcQ7=samplesQ7.ptr();
  34. break;
  35. }
  36. this->pDst=output.ptr();
  37. }
  38. void SupportQ15::tearDown(Testing::testID_t id,Client::PatternMgr *mgr)
  39. {
  40. }