s390_functions.h 519 B

1234567891011121314151617181920
  1. /* s390_functions.h -- s390 implementations for arch-specific functions.
  2. * For conditions of distribution and use, see copyright notice in zlib.h
  3. */
  4. #ifndef S390_FUNCTIONS_H_
  5. #define S390_FUNCTIONS_H_
  6. #ifdef S390_CRC32_VX
  7. uint32_t crc32_s390_vx(uint32_t crc, const uint8_t *buf, size_t len);
  8. #endif
  9. #ifdef DISABLE_RUNTIME_CPU_DETECTION
  10. # if defined(S390_CRC32_VX) && defined(__zarch__) && __ARCH__ >= 11 && defined(__VX__)
  11. # undef native_crc32
  12. # define native_crc32 = crc32_s390_vx
  13. # endif
  14. #endif
  15. #endif