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 a generic saturation function `sat_generic` to optimize saturation operations across different integer sizes (8, 16, 24, 32 bits) in the processing block. This consolidation of saturation logic into a single function aims to: - Reduce code duplication and enhance maintainability. - Remove conditional branches using bitwise operations, increasing execution speed. - Potentially decrease cycle costs on supported architectures by streamlining the saturation process. This change is expected to boost efficiency without compromising the functionality. Signed-off-by: Shriram Shastry <[email protected]>
- Loading branch information