Skip to content
Snippets Groups Projects
  1. Oct 25, 2015
  2. Oct 22, 2015
    • Ganesh Ajjanagadde's avatar
      avfilter,swresample,swscale: use fabs, fabsf instead of FFABS · 8507b98c
      Ganesh Ajjanagadde authored
      It is well known that fabs and fabsf are at least as fast and sometimes
      faster than the FFABS macro, at least on the gcc+glibc combination.
      For instance, see the reference:
      http://patchwork.sourceware.org/patch/6735/
      
      .
      This was a patch to glibc in order to remove their usages of a macro.
      
      The reason essentially boils down to fabs using the __builtin_fabs of
      the compiler, while FFABS needs to infer to not use a branch and to
      simply change the sign bit. Usually the inference works, but sometimes
      it does not. This may be easily checked by looking at the asm.
      
      This also has the added benefit of reducing macro usage, which has
      problems with side-effects.
      
      Note that avcodec is not handled here, as it is huge and
      most things there are integer arithmetic anyway.
      
      Tested with FATE.
      
      Reviewed-by: default avatarClément Bœsch <u@pkh.me>
      Signed-off-by: default avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
      8507b98c
  3. Aug 30, 2015
  4. Apr 12, 2015
  5. Feb 16, 2015
  6. Aug 09, 2014
  7. Jun 03, 2014
  8. Feb 04, 2013
  9. Nov 13, 2012
  10. Oct 16, 2012
  11. Oct 06, 2012
  12. Sep 06, 2012
  13. Jun 05, 2012
  14. May 05, 2012
  15. May 03, 2012
  16. May 01, 2012
  17. Apr 27, 2012
  18. Apr 26, 2012
  19. Apr 10, 2012
  20. Apr 01, 2012
Loading