mirror of
				https://github.com/facebook/zstd.git
				synced 2025-10-31 08:37:43 +02:00 
			
		
		
		
	legacy decoders: restored #include <intrin.h> for VC++
This commit is contained in:
		| @@ -1557,7 +1557,7 @@ static size_t ZSTD_decodeLiteralsBlock(void* ctx, | |||||||
| } | } | ||||||
|  |  | ||||||
|  |  | ||||||
| static size_t ZSTD_decodeSeqHeaders(int* nbSeq, const BYTE** dumpsPtr, size_t* dumpsLengthPtr, | size_t ZSTD_decodeSeqHeaders(int* nbSeq, const BYTE** dumpsPtr, size_t* dumpsLengthPtr, | ||||||
|                          FSE_DTable* DTableLL, FSE_DTable* DTableML, FSE_DTable* DTableOffb, |                          FSE_DTable* DTableLL, FSE_DTable* DTableML, FSE_DTable* DTableOffb, | ||||||
|                          const void* src, size_t srcSize) |                          const void* src, size_t srcSize) | ||||||
| { | { | ||||||
|   | |||||||
| @@ -13,6 +13,14 @@ | |||||||
| #include "error_private.h" | #include "error_private.h" | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /****************************************** | ||||||
|  | *  Compiler-specific | ||||||
|  | ******************************************/ | ||||||
|  | #if defined(_MSC_VER)   /* Visual Studio */ | ||||||
|  | #   include <stdlib.h>  /* _byteswap_ulong */ | ||||||
|  | #   include <intrin.h>  /* _byteswap_* */ | ||||||
|  | #endif | ||||||
|  |  | ||||||
|  |  | ||||||
| /* ****************************************************************** | /* ****************************************************************** | ||||||
|    mem.h |    mem.h | ||||||
|   | |||||||
| @@ -13,6 +13,15 @@ | |||||||
| #include "error_private.h" | #include "error_private.h" | ||||||
|  |  | ||||||
|  |  | ||||||
|  | /****************************************** | ||||||
|  | *  Compiler-specific | ||||||
|  | ******************************************/ | ||||||
|  | #if defined(_MSC_VER)   /* Visual Studio */ | ||||||
|  | #   include <stdlib.h>  /* _byteswap_ulong */ | ||||||
|  | #   include <intrin.h>  /* _byteswap_* */ | ||||||
|  | #endif | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /* ****************************************************************** | /* ****************************************************************** | ||||||
|    mem.h |    mem.h | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user