]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Merge tag 'zstd-linus-v6.15-rc1' of https://github.com/terrelln/linux
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 Mar 2025 04:35:28 +0000 (21:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 Mar 2025 04:35:28 +0000 (21:35 -0700)
Pull zstd updates from Nick Terrell:
 "Update zstd to the latest upstream release v1.5.7.

  The two major motivations for updating Zstandard are to keep the code
  up to date, and to expose API's needed by Intel for the QAT
  compression accelerator.

  Imported cleanly from the upstream tag v1.5.7-kernel, which is signed
  by upstream's signing key EF8FE99528B52FFD"

Link: https://github.com/facebook/zstd/releases/tag/v1.5.7
Link: https://github.com/facebook/zstd/releases/tag/v1.5.7-kernel
Link: https://keyserver.ubuntu.com/pks/lookup?search=EF8FE99528B52FFD&fingerprint=on&op=index
* tag 'zstd-linus-v6.15-rc1' of https://github.com/terrelln/linux:
  zstd: Import upstream v1.5.7

1  2 
lib/zstd/common/portability_macros.h

index 0dde8bf56595ea6f65812e3a9ba04eb1c88abbfb,05286af726835e0ac3f19b255f445233c319d9db..e1890b32da88bfca8d6dd963cfcae15ae627b91f
   * Enabled for clang & gcc >=4.8 on x86 when BMI2 isn't enabled by default.
   */
  #ifndef DYNAMIC_BMI2
  #if ((defined(__clang__) && __has_attribute(__target__)) \
#  if ((defined(__clang__) && __has_attribute(__target__)) \
        || (defined(__GNUC__) \
 -          && (__GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)))) \
 +          && (__GNUC__ >= 11))) \
-       && (defined(__x86_64__) || defined(_M_X64)) \
+       && (defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_X64)) \
        && !defined(__BMI2__)
  #  define DYNAMIC_BMI2 1
  #else
  #  define DYNAMIC_BMI2 0
  #endif
#    define DYNAMIC_BMI2 1
#  else
#    define DYNAMIC_BMI2 0
#  endif
  #endif
  
  /*