SupportQ31.cpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #include "SupportQ31.h"
  2. #include "Error.h"
  3. void SupportQ31::test_copy_q31()
  4. {
  5. }
  6. void SupportQ31::test_fill_q31()
  7. {
  8. }
  9. void SupportQ31::test_q7_to_q31()
  10. {
  11. }
  12. void SupportQ31::test_q15_to_q31()
  13. {
  14. }
  15. void SupportQ31::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,SupportQ31::OUT_SAMPLES_Q31_ID,mgr);
  20. switch(id)
  21. {
  22. case TEST_COPY_Q31_1:
  23. case TEST_FILL_Q31_2:
  24. samples.reload(SupportQ31::SAMPLES_Q31_ID,mgr,this->nbSamples);
  25. this->pSrc=samples.ptr();
  26. break;
  27. case TEST_Q15_TO_Q31_3:
  28. samplesQ15.reload(SupportQ31::SAMPLES_Q15_ID,mgr,this->nbSamples);
  29. this->pSrcQ15=samplesQ15.ptr();
  30. break;
  31. case TEST_Q7_TO_Q31_4:
  32. samplesQ7.reload(SupportQ31::SAMPLES_Q7_ID,mgr,this->nbSamples);
  33. this->pSrcQ7=samplesQ7.ptr();
  34. break;
  35. }
  36. this->pDst=output.ptr();
  37. }
  38. void SupportQ31::tearDown(Testing::testID_t id,Client::PatternMgr *mgr)
  39. {
  40. }