Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Audio: Use generic saturation logic for improved efficiency
Introduce `sat_generic` for optimizing saturation across integer sizes (8, 16, 24, 32 bits) in the processing block. Consolidating saturation logic into a single function aims to: - Reduce code duplication and enhance maintainability. - Use bitwise operations to remove conditional branches, boosting execution speed. - Possibly lower cycle costs on supported architectures by streamlining the saturation process. This modification is poised to enhance efficiency without compromising functionality. Signed-off-by: Shriram Shastry <[email protected]>
- Loading branch information