1 #include "StatsQ7.h" 2 #include <stdio.h> 3 #include "Error.h" 4 #include "Test.h" 5 6 7 test_max_q7()8 void StatsQ7::test_max_q7() 9 { 10 11 q7_t result; 12 uint32_t indexval; 13 14 arm_max_q7(inap, 15 this->nb, 16 &result, 17 &indexval); 18 19 } 20 test_absmax_q7()21 void StatsQ7::test_absmax_q7() 22 { 23 24 q7_t result; 25 uint32_t indexval; 26 27 arm_absmax_q7(inap, 28 this->nb, 29 &result, 30 &indexval); 31 32 } 33 34 35 test_min_q7()36 void StatsQ7::test_min_q7() 37 { 38 39 q7_t result; 40 uint32_t indexval; 41 42 43 arm_min_q7(inap, 44 this->nb, 45 &result, 46 &indexval); 47 48 49 50 } 51 test_absmin_q7()52 void StatsQ7::test_absmin_q7() 53 { 54 55 q7_t result; 56 uint32_t indexval; 57 58 59 arm_absmin_q7(inap, 60 this->nb, 61 &result, 62 &indexval); 63 64 65 66 } 67 test_mean_q7()68 void StatsQ7::test_mean_q7() 69 { 70 q7_t result; 71 72 arm_mean_q7(inap, 73 this->nb, 74 &result); 75 76 } 77 test_power_q7()78 void StatsQ7::test_power_q7() 79 { 80 81 q31_t result; 82 83 84 arm_power_q7(inap, 85 this->nb, 86 &result); 87 88 89 90 } 91 92 93 94 95 setUp(Testing::testID_t id,std::vector<Testing::param_t> & paramsArgs,Client::PatternMgr * mgr)96 void StatsQ7::setUp(Testing::testID_t id,std::vector<Testing::param_t>& paramsArgs,Client::PatternMgr *mgr) 97 { 98 std::vector<Testing::param_t>::iterator it = paramsArgs.begin(); 99 this->nb = *it; 100 101 inputA.reload(StatsQ7::INPUT1_Q7_ID,mgr,this->nb); 102 103 inap=inputA.ptr(); 104 105 106 } 107 tearDown(Testing::testID_t id,Client::PatternMgr * mgr)108 void StatsQ7::tearDown(Testing::testID_t id,Client::PatternMgr *mgr) 109 { 110 (void)id; 111 112 } 113