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

Add optimized crc32 for Power 8+ processors #478

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Commits on Apr 6, 2022

  1. Preparation for Power optimizations

    Optimized functions for Power will make use of GNU indirect functions,
    an extension to support different implementations of the same function,
    which can be selected during runtime. This will be used to provide
    optimized functions for different processor versions.
    
    Since this is a GNU extension, we placed the definition of the Z_IFUNC
    macro under `contrib/gcc`. This can be reused by other archs as well.
    
    Author: Matheus Castanho <msc@linux.ibm.com>
    Author: Rogerio Alves <rcardoso@linux.ibm.com>
    Rogerio Alves authored and mscastanho committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    85ccfa1 View commit details
    Browse the repository at this point in the history
  2. Add Power8+ optimized crc32

    This commit adds an optimized version for the crc32 function based
    on crc32-vpmsum from https://github.com/antonblanchard/crc32-vpmsum/
    
    This is the C implementation created by Rogerio Alves <rogealve@br.ibm.com>
    
    It makes use of vector instructions to speed up CRC32 algorithm.
    grooverdan authored and mscastanho committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    3e4af8f View commit details
    Browse the repository at this point in the history
  3. Fix clang's behavior on versions >= 7

    Clang 7 changed the behavior of vec_xxpermdi in order to match GCC's
    behavior.  After this change, code that used to work on Clang 6 stopped
    to work on Clang >= 7.
    
    Tested on Clang 6, 7, 8 and 9.
    
    Reference: https://bugs.llvm.org/show_bug.cgi?id=38192
    
    Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
    tuliom authored and mscastanho committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    58ad234 View commit details
    Browse the repository at this point in the history