mirror of
https://github.com/holub/mame
synced 2025-07-04 09:28:51 +03:00
lib7z: fix portability problems that resulted in memory trashing in some configurations. [R. Belmont]
This commit is contained in:
parent
85f3612057
commit
04c24872f0
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user