Skip to content

Conversation

@singalsu
Copy link
Collaborator

This patch adds two included header files format_generic.h and
format_hifi3.h. The latter contains intrinsics operations
optimized versions of 16, 24, and 32 bit saturations. Generic
header contains the previous C versions those will be used
for anything else but xt-xcc HiFi3 compatible build.

Signed-off-by: Seppo Ingalsuo seppo.ingalsuo@linux.intel.com

This patch adds two included header files format_generic.h and
format_hifi3.h. The latter contains intrinsics operations
optimized versions of 16, 24, and 32 bit saturations. Generic
header contains the previous C versions those will be used
for anything else but xt-xcc HiFi3 compatible build.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@singalsu singalsu force-pushed the intrinsics_optimize_saturate_macros branch from ff6cebd to 879b619 Compare November 10, 2021 12:08
@dbaluta
Copy link
Collaborator

dbaluta commented Nov 11, 2021

Do you have any performance numbers. How much better is the performance with this patch? Not a blocking matter though.

@singalsu
Copy link
Collaborator Author

It shaved from stereo 2 in 1 out mixer processing time about 1 us, so about 0.4 MCPS. But if more saturations in some C algorithm the gain could be a lot more.

@singalsu singalsu marked this pull request as ready for review November 11, 2021 08:30
@lgirdwood
Copy link
Member

SOFCI TEST

@lgirdwood lgirdwood merged commit 37cd893 into thesofproject:main Nov 12, 2021
@singalsu singalsu deleted the intrinsics_optimize_saturate_macros branch September 15, 2022 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants