New ACC version.
committer: mfx <mfx> 1109674986 +0000
This commit is contained in:
+3
-3
@@ -346,19 +346,19 @@ int __acc_cdecl_qsort le32_compare_signed(const void *e1, const void *e2);
|
|||||||
|
|
||||||
|
|
||||||
// just for testing...
|
// just for testing...
|
||||||
#if 0 && (ACC_ARCH_AMD64 || ACC_ARCH_IA32) && (ACC_CC_GNUC >= 0x030200)
|
#if 0 && (ACC_ARCH_AMD64 || ACC_ARCH_I386) && (ACC_CC_GNUC >= 0x030200)
|
||||||
typedef unsigned short LE16_unaligned __attribute__((__aligned__(1)));
|
typedef unsigned short LE16_unaligned __attribute__((__aligned__(1)));
|
||||||
typedef acc_uint32e_t LE32_unaligned __attribute__((__aligned__(1)));
|
typedef acc_uint32e_t LE32_unaligned __attribute__((__aligned__(1)));
|
||||||
# define LE16 LE16_unaligned
|
# define LE16 LE16_unaligned
|
||||||
# define LE32 LE32_unaligned
|
# define LE32 LE32_unaligned
|
||||||
#endif
|
#endif
|
||||||
#if 0 && (ACC_ARCH_IA32) && (ACC_CC_INTELC)
|
#if 0 && (ACC_ARCH_I386) && (ACC_CC_INTELC)
|
||||||
typedef __declspec(align(1)) unsigned short LE16_unaligned;
|
typedef __declspec(align(1)) unsigned short LE16_unaligned;
|
||||||
typedef __declspec(align(1)) acc_uint32e_t LE32_unaligned;
|
typedef __declspec(align(1)) acc_uint32e_t LE32_unaligned;
|
||||||
# define LE16 LE16_unaligned
|
# define LE16 LE16_unaligned
|
||||||
# define LE32 LE32_unaligned
|
# define LE32 LE32_unaligned
|
||||||
#endif
|
#endif
|
||||||
#if 0 && (ACC_ARCH_AMD64 || ACC_ARCH_IA32) && (ACC_CC_MSC) && (_MSC_VER >= 1200)
|
#if 0 && (ACC_ARCH_AMD64 || ACC_ARCH_I386) && (ACC_CC_MSC) && (_MSC_VER >= 1200)
|
||||||
typedef __declspec(align(1)) unsigned short LE16_unaligned;
|
typedef __declspec(align(1)) unsigned short LE16_unaligned;
|
||||||
typedef __declspec(align(1)) acc_uint32e_t LE32_unaligned;
|
typedef __declspec(align(1)) acc_uint32e_t LE32_unaligned;
|
||||||
# define LE16 LE16_unaligned
|
# define LE16 LE16_unaligned
|
||||||
|
|||||||
+1
-1
@@ -295,7 +295,7 @@
|
|||||||
|
|
||||||
#undef __attribute_packed
|
#undef __attribute_packed
|
||||||
#if (ACC_CC_GNUC || ACC_CC_INTELC || ACC_CC_PATHSCALE)
|
#if (ACC_CC_GNUC || ACC_CC_INTELC || ACC_CC_PATHSCALE)
|
||||||
# if (1 && (ACC_ARCH_IA32))
|
# if (1 && (ACC_ARCH_I386))
|
||||||
# define __attribute_packed
|
# define __attribute_packed
|
||||||
# else
|
# else
|
||||||
# define __attribute_packed __attribute__((__packed__,__aligned__(1)))
|
# define __attribute_packed __attribute__((__packed__,__aligned__(1)))
|
||||||
|
|||||||
+1
-1
@@ -115,7 +115,7 @@ void MemBuffer::allocForUncompression(unsigned uncompressed_size, unsigned extra
|
|||||||
unsigned size = uncompressed_size + extra;
|
unsigned size = uncompressed_size + extra;
|
||||||
// size += 512; // 512 safety bytes
|
// size += 512; // 512 safety bytes
|
||||||
// INFO: 3 bytes are the allowed overrun for the i386 asm_fast decompressors
|
// INFO: 3 bytes are the allowed overrun for the i386 asm_fast decompressors
|
||||||
#if (ACC_ARCH_IA32)
|
#if (ACC_ARCH_I386)
|
||||||
size += 3;
|
size += 3;
|
||||||
#endif
|
#endif
|
||||||
alloc(size);
|
alloc(size);
|
||||||
|
|||||||
+837
-758
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -159,7 +159,7 @@ static void handle_allegropak(InputFile *fi, OutputFile *fo)
|
|||||||
if (memcmp(buf, "slh+", 4) != 0)
|
if (memcmp(buf, "slh+", 4) != 0)
|
||||||
return;
|
return;
|
||||||
pfsize = get_be32_signed(buf+4);
|
pfsize = get_be32_signed(buf+4);
|
||||||
if (pfsize <= 8 || pfsize >= fi->st.st_size)
|
if (pfsize <= 8 || (off_t) pfsize >= (off_t) fi->st.st_size)
|
||||||
return;
|
return;
|
||||||
fi->seek(-pfsize, SEEK_END);
|
fi->seek(-pfsize, SEEK_END);
|
||||||
} catch (const IOException&) {
|
} catch (const IOException&) {
|
||||||
|
|||||||
Reference in New Issue
Block a user