- Parameters
-
[in] | *pSrc | points to the floating-point input vector |
[out] | *pDst | points to the Q31 output vector |
[in] | blockSize | length of the input vector |
- Returns
- none.
- Description:
- The equation used for the conversion process is:
pDst[n] = (q31_t)(pSrc[n] * 2147483648); 0 <= n < blockSize.
Scaling and Overflow Behavior:
- The function uses saturating arithmetic. Results outside of the allowable Q31 range[0x80000000 0x7FFFFFFF] will be saturated.
- Note
- In order to apply rounding, the library should be rebuilt with the ROUNDING macro defined in the preprocessor section of project options.