CSI-DSP
Version 1.0.0
CSI DSP Software Library
|
Functions | |
__ALWAYS_INLINE q31_t | csky_shr_q31 (q31_t a, q31_t shift) |
right shift Q31 version More... | |
__ALWAYS_INLINE q31_t | csky_pshr_q31 (q31_t a, q31_t shift) |
right shift Q31 version More... | |
__ALWAYS_INLINE q31_t | csky_pshr_pos_q31 (q31_t a, q31_t shift) |
right shift Q31 version More... | |
__ALWAYS_INLINE q63_t | csky_pshr_q63 (q63_t a, q31_t shift) |
right shift Q63 version More... | |
Shift the input value to right with appointed bits, its basic format is:
a = (a) >> (shift), 1 =< shift <= bitof(a) - 1.
The basic format is only designed for q31.
and the extended format should be rounding to +inf:
a = (a + (1<<(shift - 1)) >> (shift), 1 =< shift <= bitof(a) - 1.
which are designed for q31, q31 positive and q63.
[in] | a | input positive value to be shift. |
[in] | shift | input positive value, the number of bits to be shift. |
[out] | result | the shifted a. |
Scaling and Overflow Behavior:
[in] | a | input value to be shift. |
[in] | shift | input positive value, the number of bits to be shift. |
[out] | result | the shifted a. |
Scaling and Overflow Behavior:
[in] | a | input value to be shift. |
[in] | shift | input positive value, the number of bits to be shift. |
[out] | result | the shifted a. |
Scaling and Overflow Behavior:
[in] | a | input value to be shift. |
[in] | shift | input positive value, the number of bits to be shift. |
[out] | result | the shifted a. |
Scaling and Overflow Behavior: