30.10.2014 Views

o_195h4n6al16jb186b1b2qs7fgssa.pdf

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Cycles (including C-function call and return overheads):<br />

18 + 3(numElems)<br />

VectorSubtract<br />

Description: VectorSubtractsubtracts the value of each element in the source<br />

two vector from its counterpart in the source one vector, and places the<br />

result in the destination vector.<br />

Include: dsp.h<br />

Prototype: extern fractional* VectorSubtract (<br />

int numElems,<br />

fractional* dstV,<br />

fractional* srcV1,<br />

fractional* srcV2<br />

);<br />

Arguments: numElems number of elements in source vectors<br />

dstV pointer to destination vector<br />

srcV1 pointer to source onevector (minuend)<br />

srcV2 pointer to source two vector (subtrahend)<br />

Return Value: Pointer to base address of destination vector.<br />

Remarks: If the absolute value of srcV1[n] - srcV2[n]is larger than 1-2<br />

-15<br />

,<br />

this operation results in saturation for the n-th element.<br />

This function can be computed in place.<br />

This function can be self applicable.<br />

dsPIC<br />

®<br />

Language Tools Libraries<br />

Từ chương trình (hướng dẫn 24-bit):<br />

14<br />

Chu kỳ (bao gồm cả cuộc gọi C-chức năng và trả các chi phí):<br />

17 + 4 (numElems)<br />

VectorZeroPad<br />

Mô tả: VectorZeroPadcopies vector nguồn vào đầu<br />

(Đã có sẵn) vector đích, và sau đó lấp đầy với các số không<br />

numZeroselements của vector điểm còn lại:<br />

DSTV [n] = srcV [n], 0 ≤n

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!