Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Source/FilteringFunctions/arm_conv_q31.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
The input signals should be scaled down to avoid intermediate overflows.
Scale down the inputs by log2(min(srcALen, srcBLen)) (log2 is read as log to the base 2) times to avoid overflows,
as maximum of min(srcALen, srcBLen) number of additions are carried internally.
The 2.62 accumulator is right shifted by 31 bits and saturated to 1.31 format to yield the final result.
The scalar implementation right shifts the 2.62 accumulator by 31 bits to yield the final 1.31 result.
This conversion does not saturate.

@remark
Refer to \ref arm_conv_fast_q31() for a faster but less precise implementation of this function.
Expand Down
3 changes: 2 additions & 1 deletion Source/FilteringFunctions/arm_correlate_q31.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
The input signals should be scaled down to avoid intermediate overflows.
Scale down one of the inputs by 1/min(srcALen, srcBLen)to avoid overflows since a
maximum of min(srcALen, srcBLen) number of additions is carried internally.
The 2.62 accumulator is right shifted by 31 bits and saturated to 1.31 format to yield the final result.
The scalar implementation right shifts the 2.62 accumulator by 31 bits to yield the final 1.31 result.
This conversion does not saturate.

@remark
Refer to \ref arm_correlate_fast_q31() for a faster but less precise implementation of this function.
Expand Down
3 changes: 2 additions & 1 deletion Source/FilteringFunctions/arm_fir_decimate_q31.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
The accumulator has a 2.62 format and maintains full precision of the intermediate multiplication results but provides only a single guard bit.
Thus, if the accumulator result overflows it wraps around rather than clip.
In order to avoid overflows completely the input signal must be scaled down by log2(numTaps) bits (where log2 is read as log to the base 2).
After all multiply-accumulates are performed, the 2.62 accumulator is truncated to 1.32 format and then saturated to 1.31 format.
The scalar implementation right shifts the 2.62 accumulator by 31 bits to yield the final 1.31 result.
This conversion does not saturate.

@remark
Refer to \ref arm_fir_decimate_fast_q31() for a faster but less precise implementation of this function.
Expand Down
3 changes: 2 additions & 1 deletion Source/FilteringFunctions/arm_fir_interpolate_q31.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
Thus, if the accumulator result overflows it wraps around rather than clip.
In order to avoid overflows completely the input signal must be scaled down by <code>1/(numTaps/L)</code>.
since <code>numTaps/L</code> additions occur per output sample.
After all multiply-accumulates are performed, the 2.62 accumulator is truncated to 1.32 format and then saturated to 1.31 format.
The scalar implementation right shifts the 2.62 accumulator by 31 bits to yield the final 1.31 result.
This conversion does not saturate.
*/

#if defined(ARM_MATH_MVEI) && !defined(ARM_MATH_AUTOVECTORIZE)
Expand Down
3 changes: 2 additions & 1 deletion Source/FilteringFunctions/arm_fir_q31.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
The accumulator has a 2.62 format and maintains full precision of the intermediate multiplication results but provides only a single guard bit.
Thus, if the accumulator result overflows it wraps around rather than clip.
In order to avoid overflows completely the input signal must be scaled down by log2(numTaps) bits.
After all multiply-accumulates are performed, the 2.62 accumulator is right shifted by 31 bits and saturated to 1.31 format to yield the final result.
The scalar implementation right shifts the 2.62 accumulator by 31 bits to yield the final 1.31 result.
This conversion does not saturate.

@remark
Refer to \ref arm_fir_fast_q31() for a faster but less precise implementation of this filter.
Expand Down
4 changes: 2 additions & 2 deletions Source/FilteringFunctions/arm_lms_norm_q31.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
Thus, if the accumulator result overflows it wraps around rather than clip.
In order to avoid overflows completely the input signal must be scaled down by
log2(numTaps) bits. The reference signal should not be scaled down.
After all multiply-accumulates are performed, the 2.62 accumulator is shifted
and saturated to 1.31 format to yield the final result.
The scalar implementation shifts the 2.62 accumulator according to postShift
to yield the final 1.31 result. This conversion does not saturate.
The output signal and error signal are in 1.31 format.
@par
In this filter, filter coefficients are updated for each sample and the
Expand Down
4 changes: 2 additions & 2 deletions Source/FilteringFunctions/arm_lms_q31.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
In order to avoid overflows completely the input signal must be scaled down by
log2(numTaps) bits.
The reference signal should not be scaled down.
After all multiply-accumulates are performed, the 2.62 accumulator is shifted
and saturated to 1.31 format to yield the final result.
The scalar implementation shifts the 2.62 accumulator according to postShift
to yield the final 1.31 result. This conversion does not saturate.
The output signal and error signal are in 1.31 format.
@par
In this filter, filter coefficients are updated for each sample and
Expand Down
3 changes: 2 additions & 1 deletion Source/MatrixFunctions/arm_mat_mult_opt_q31.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
distorts the result. The input signals should be scaled down to avoid intermediate
overflows. The input is thus scaled down by log2(numColsA) bits
to avoid overflows, as a total of numColsA additions are performed internally.
The 2.62 accumulator is right shifted by 31 bits and saturated to 1.31 format to yield the final result.
The scalar implementation right shifts the 2.62 accumulator by 31 bits to yield the final 1.31 result.
This conversion does not saturate.
@remark
Refer to \ref arm_mat_mult_fast_q31() for a faster but less precise implementation of this function.
@remark
Expand Down
3 changes: 2 additions & 1 deletion Source/MatrixFunctions/arm_mat_mult_q31.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
distorts the result. The input signals should be scaled down to avoid intermediate
overflows. The input is thus scaled down by log2(numColsA) bits
to avoid overflows, as a total of numColsA additions are performed internally.
The 2.62 accumulator is right shifted by 31 bits and saturated to 1.31 format to yield the final result.
The scalar implementation right shifts the 2.62 accumulator by 31 bits to yield the final 1.31 result.
This conversion does not saturate.
@remark
Refer to \ref arm_mat_mult_fast_q31() for a faster but less precise implementation of this function.
*/
Expand Down