lib7z: fix portability problems that resulted in memory trashing in some configurations. [R. Belmont]

This commit is contained in:
R. Belmont 2012-09-21 17:08:06 +00:00
parent 85f3612057
commit 04c24872f0
2 changed files with 3 additions and 6 deletions

View File

@ -6,10 +6,7 @@
#define kCrcPoly 0xEDB88320
#ifdef MY_CPU_X86_OR_AMD64
#define CRC_NUM_TABLES 8
UInt32 MY_FAST_CALL CrcUpdateT8(UInt32 v, const void *data, size_t size, const UInt32 *table);
#elif defined(MY_CPU_LE)
#if defined(MY_CPU_LE)
#define CRC_NUM_TABLES 4
#else
#define CRC_NUM_TABLES 5

View File

@ -20,7 +20,7 @@ If MY_CPU_LE_UNALIGN is not defined, we don't know about these properties of pla
#define MY_CPU_AMD64
#endif
#if defined(MY_CPU_AMD64) || defined(_M_IA64)
#ifdef PTR64
#define MY_CPU_64BIT
#endif
@ -52,7 +52,7 @@ If MY_CPU_LE_UNALIGN is not defined, we don't know about these properties of pla
#define MY_CPU_LE
#endif
#if defined(__BIG_ENDIAN__) || defined(__m68k__) || defined(__ARMEB__) || defined(__MIPSEB__)
#ifdef BIGENDIAN
#define MY_CPU_BE
#endif