• Ganesh Ajjanagadde's avatar
    lavc/aacsbr: sbr_dequant optimization · def3c83e
    Ganesh Ajjanagadde authored
    This uses ff_exp2fi to get a speedup (~ 6x).
    
    sample benchmark (Haswell, GNU/Linux):
    old:
      19102 decicycles in sbr_dequant,    1023 runs,      1 skips
      19002 decicycles in sbr_dequant,    2045 runs,      3 skips
      17638 decicycles in sbr_dequant,    4093 runs,      3 skips
      15825 decicycles in sbr_dequant,    8189 runs,      3 skips
      16404 decicycles in sbr_dequant,   16379 runs,      5 skips
    
    new:
       3063 decicycles in sbr_dequant,    1024 runs,      0 skips
       3049 decicycles in sbr_dequant,    2048 runs,      0 skips
       2968 decicycles in sbr_dequant,    4096 runs,      0 skips
       2818 decicycles in sbr_dequant,    8191 runs,      1 skips
       2853 decicycles in sbr_dequant,   16383 runs,      1 skips
    Reviewed-by: 's avatarAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
    Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
    def3c83e
aacsbr.c 14.4 KB