Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 2 | mjames | 1 | #include "ref.h" |
| 2 | |||
| 3 | void ref_cmplx_conj_f32( |
||
| 4 | float32_t * pSrc, |
||
| 5 | float32_t * pDst, |
||
| 6 | uint32_t numSamples) |
||
| 7 | { |
||
| 8 | uint32_t i; |
||
| 9 | for(i=0;i<numSamples*2;i+=2) |
||
| 10 | { |
||
| 11 | pDst[i] = pSrc[i]; |
||
| 12 | pDst[i+1] = -pSrc[i+1]; |
||
| 13 | } |
||
| 14 | } |
||
| 15 | |||
| 16 | void ref_cmplx_conj_q31( |
||
| 17 | q31_t * pSrc, |
||
| 18 | q31_t * pDst, |
||
| 19 | uint32_t numSamples) |
||
| 20 | { |
||
| 21 | uint32_t i; |
||
| 22 | for(i=0;i<numSamples*2;i+=2) |
||
| 23 | { |
||
| 24 | pDst[i] = pSrc[i]; |
||
| 25 | pDst[i+1] = -pSrc[i+1]; |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 29 | void ref_cmplx_conj_q15( |
||
| 30 | q15_t * pSrc, |
||
| 31 | q15_t * pDst, |
||
| 32 | uint32_t numSamples) |
||
| 33 | { |
||
| 34 | uint32_t i; |
||
| 35 | for(i=0;i<numSamples*2;i+=2) |
||
| 36 | { |
||
| 37 | pDst[i] = pSrc[i]; |
||
| 38 | pDst[i+1] = -pSrc[i+1]; |
||
| 39 | } |
||
| 40 | } |