Skip to content
  • Henrik Gramner's avatar
    Eliminate unused C DSP functions at compile time · bd046635
    Henrik Gramner authored and Henrik Gramner's avatar Henrik Gramner committed
    When compiling with asm enabled there's no point in compiling
    C versions of DSP functions that have asm implementations using
    instruction sets that the compiler can unconditionally use.
    
    E.g. when compiling with -mssse3 we can remove the C version
    of all functions with SSSE3 implementations.
    
    This is accomplished using the compiler's dead code elimination
    functionality.
    
    Can be configured using the new 'trim_dsp' meson option, which
    by default is enabled when compiling in release mode.
    bd046635