]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fix preprocessor in ZSTD_wildcopy 2252/head
authorhelloguo <helloguo@dev064.prn3.facebook.com>
Fri, 24 Jul 2020 17:53:58 +0000 (10:53 -0700)
committerhelloguo <helloguo@dev064.prn3.facebook.com>
Fri, 24 Jul 2020 17:53:58 +0000 (10:53 -0700)
lib/common/zstd_internal.h

index 3bc7e55a0a97aa7e9dfb8ef7eb0fd76d7dfb374f..ee3cb51bff05a8e5d0ee7691dc34f0c34b799c84 100644 (file)
@@ -261,7 +261,7 @@ typedef enum {
  *         - ZSTD_overlap_src_before_dst: The src and dst may overlap, but they MUST be at least 8 bytes apart.
  *           The src buffer must be before the dst buffer.
  */
-MEM_STATIC FORCE_INLINE_ATTR 
+MEM_STATIC FORCE_INLINE_ATTR
 void ZSTD_wildcopy(void* dst, const void* src, ptrdiff_t length, ZSTD_overlap_e const ovtype)
 {
     ptrdiff_t diff = (BYTE*)dst - (const BYTE*)src;
@@ -284,7 +284,7 @@ void ZSTD_wildcopy(void* dst, const void* src, ptrdiff_t length, ZSTD_overlap_e
          * one COPY16() in the first call. Then, do two calls per loop since
          * at that point it is more likely to have a high trip count.
          */
-#ifndef __aarch64__
+#ifdef __aarch64__
         do {
             COPY16(op, ip);
         }