summaryrefslogtreecommitdiff
path: root/thirdparty/zstd/decompress
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2017-07-25 14:49:57 -0300
committerGeorge Marques <george@gmarqu.es>2017-07-25 14:52:14 -0300
commit9db39d72fa6b49aba1d38c7e26e82b280e2055e1 (patch)
treee0aaf4c83c575a722099850dbdf0fb32c146c059 /thirdparty/zstd/decompress
parent497411aa124f665e6f89bc6137c65fbd106a7859 (diff)
zstd: Apply upstream patch to fix UWP ARM build
Following upstream commit f04deff4fc
Diffstat (limited to 'thirdparty/zstd/decompress')
-rw-r--r--thirdparty/zstd/decompress/zstd_decompress.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/thirdparty/zstd/decompress/zstd_decompress.c b/thirdparty/zstd/decompress/zstd_decompress.c
index 003d703a5e..465bcc20b5 100644
--- a/thirdparty/zstd/decompress/zstd_decompress.c
+++ b/thirdparty/zstd/decompress/zstd_decompress.c
@@ -53,7 +53,7 @@
# include "zstd_legacy.h"
#endif
-#if defined(_MSC_VER) && !defined(_M_IA64) /* _mm_prefetch() is not defined for ia64 */
+#if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_I86)) /* _mm_prefetch() is not defined outside of x86/x64 */
# include <mmintrin.h> /* https://msdn.microsoft.com/fr-fr/library/84szxsww(v=vs.90).aspx */
# define ZSTD_PREFETCH(ptr) _mm_prefetch((const char*)ptr, _MM_HINT_T0)
#elif defined(__GNUC__)
@@ -466,13 +466,6 @@ static size_t ZSTD_decodeFrameHeader(ZSTD_DCtx* dctx, const void* src, size_t he
}
-typedef struct
-{
- blockType_e blockType;
- U32 lastBlock;
- U32 origSize;
-} blockProperties_t;
-
/*! ZSTD_getcBlockSize() :
* Provides the size of compressed block from block header `src` */
size_t ZSTD_getcBlockSize(const void* src, size_t srcSize,