CSI-DSP
Version 1.0.0
CSI DSP Software Library
|
Functions | |
void | csky_dsp_lib_vec_shf16 (q15_t *A, int8_t shift_val, uint32_t N, q15_t *C) |
Q15 vector shift. More... | |
void | csky_dsp_lib_vec_shf32 (q31_t *A, int8_t shift_val, uint32_t N, q31_t *C) |
Q31 vector shift. More... | |
Shift every element of a input vector by a specified number of bits, the computaional process is:
*(C+i) = *(A+i) << shift, 0 <= i < N.
If shift_val
is positive, then the elements will be shifted to left. And if shift_val
is negative, then the elements will be shifted to right. Support for q15 and q31 format.
[in] | *A | points to the input buffer a |
[in] | shift_val | number of bits to be shift |
[in] | N | number of samples in the vector |
[out] | *C | points to the output buffer |
Scaling and Overflow Behavior:
[in] | *A | points to the input buffer a |
[in] | shift_val | number of bits to be shift |
[in] | N | number of samples in the vector |
[out] | *C | points to the output buffer |
Scaling and Overflow Behavior: