-
Notifications
You must be signed in to change notification settings - Fork 349
Audio: Optimize division by speed of sound using fixed-point reciprocal #9160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio: Optimize division by speed of sound using fixed-point reciprocal #9160
Conversation
|
SOFCI |
|
Thanks @ShriramShastry , this saves 1.4 MCPS with 4ch beamformer in TGL platform. I'll review this PR later. |
09f83ff to
0a29b59
Compare
lgirdwood
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one @ShriramShastry !
0a29b59 to
849bce3
Compare
849bce3 to
ef64f75
Compare
singalsu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code works correctly, checked with direction_test.m but need to reject due to mistakes in comments, sorry! Can you please fix. This is a quick approve after done.
ef64f75 to
9186364
Compare
|
Ready to merge, pending the mandatory CI to pass. |
This commit optimizes the division by the speed of sound in the `theoretical_time_differences` function. By precomputing the fixed-point reciprocal of the speed of sound, we eliminate the need for a costly division operation in each iteration. Additionally, a redundant 'if' statement is removed from the 'tdfb_direction_copy_emphasis' function, simplifying the code. Signed-off-by: Shriram Shastry <malladi.sastry@intel.com>
9186364 to
b39cd56
Compare
|
@wszypelt looks like CI has been pending a while. Good to merge ? |
|
@lgirdwood good to merge :) |
This commit optimizes the division by the speed of sound in the
theoretical_time_differencesfunction. By precomputing the fixed-point reciprocal of the speed of sound, we eliminate the need for a costly division operation in each iteration.