Skip to content
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

DRC: math: Replace exponential function for performance #8435

Merged

Commits on Jan 8, 2024

  1. Math: Exp: Rename and move common macros for generic and HiFi

    The macros are moved to header file. There are no functional changes.
    
    Signed-off-by: shastry <malladi.sastry@intel.com>
    ShriramShastry committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    3ba94c6 View commit details
    Browse the repository at this point in the history
  2. Math: Exp: Fix warning: incompatible pointer type initialization.

    Unused variables from HiFi4/5 were reshuffled and placed in order
    to use HiFi3 code. If the variable 'ret' is used uninitialized
    whenever the 'if' condition is false, set it to false.
    
    Signed-off-by: shastry <malladi.sastry@intel.com>
    ShriramShastry committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    45a97a7 View commit details
    Browse the repository at this point in the history
  3. Math: Exp: Add functions sofm_exp_fixed and sofm_db2lin

    This change allows the fast exponent library to replace
    the decibels library for applications like DRC where exponent
    function is used in hot code parts.
    
    Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
    Signed-off-by: shastry <malladi.sastry@intel.com>
    singalsu authored and ShriramShastry committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    9405cbb View commit details
    Browse the repository at this point in the history
  4. Zephyr: Patch Zephyr CMakeLists with exponential source files

    In Zephyr CMakeLists, add exponential source files to facilitate
    the compilation of math C and HiFi code.
    
    Signed-off-by: shastry <malladi.sastry@intel.com>
    singalsu authored and ShriramShastry committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    7a8430c View commit details
    Browse the repository at this point in the history
  5. Audio: DRC: Use fast exponent functions

    The exp_fixed() function is replaced by fast sofm_exp_fixed()
    and sofm_db2lin() functions. It saves 40 MCPS, from 123 to 83 MCPS
    in a test run in TGL platform.
    
    Signed-off-by: shastry <malladi.sastry@intel.com>
    ShriramShastry committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    0589da0 View commit details
    Browse the repository at this point in the history