1 #include "FastMathF16.h"
2 #include "Error.h"
3 
4    #if 0
5     void FastMathF16::test_cos_f16()
6     {
7        for(int i=0; i < this->nbSamples; i++)
8        {
9           *this->pDst++ = arm_cos_f16(*this->pSrc++);
10        }
11     }
12 
13     void FastMathF16::test_sin_f16()
14     {
15        for(int i=0; i < this->nbSamples; i++)
16        {
17           *this->pDst++ = arm_sin_f16(*this->pSrc++);
18        }
19     }
20 #endif
21 
test_sqrt_f16()22     void FastMathF16::test_sqrt_f16()
23     {
24        for(int i=0; i < this->nbSamples; i++)
25        {
26           arm_sqrt_f16(*this->pSrc++,this->pDst);
27           this->pDst++;
28        }
29     }
30 
setUp(Testing::testID_t id,std::vector<Testing::param_t> & params,Client::PatternMgr * mgr)31     void FastMathF16::setUp(Testing::testID_t id,std::vector<Testing::param_t>& params,Client::PatternMgr *mgr)
32     {
33 
34        (void)id;
35        std::vector<Testing::param_t>::iterator it = params.begin();
36        this->nbSamples = *it;
37 
38        samples.reload(FastMathF16::SAMPLES_F16_ID,mgr,this->nbSamples);
39        output.create(this->nbSamples,FastMathF16::OUT_SAMPLES_F16_ID,mgr);
40 
41 
42        this->pSrc=samples.ptr();
43        this->pDst=output.ptr();
44 
45     }
46 
tearDown(Testing::testID_t id,Client::PatternMgr * mgr)47     void FastMathF16::tearDown(Testing::testID_t id,Client::PatternMgr *mgr)
48     {
49        (void)id;
50        (void)mgr;
51     }
52