(7zip) Remove unneeded CPUArch.c

This commit is contained in:
twinaphex 2015-09-06 15:54:22 +02:00
parent 56951ba7ee
commit 020ab87c36
5 changed files with 2 additions and 16 deletions

View File

@ -736,7 +736,6 @@ ifeq ($(HAVE_7ZIP),1)
7ZOBJ = deps/7zip/7zIn.o \
deps/7zip/7zAlloc.o \
deps/7zip/Bra86.o \
deps/7zip/CpuArch.o \
deps/7zip/7zFile.o \
deps/7zip/7zStream.o \
deps/7zip/7zBuf2.o \

5
deps/7zip/7zCrc.c vendored
View File

@ -47,7 +47,7 @@ uint32_t MY_FAST_CALL CrcCalc(const void *data, size_t size)
return g_CrcUpdate(CRC_INIT_VAL, data, size, g_CrcTable) ^ CRC_INIT_VAL;
}
void MY_FAST_CALL CrcGenerateTable()
void MY_FAST_CALL CrcGenerateTable(void)
{
uint32_t i;
for (i = 0; i < 256; i++)
@ -68,8 +68,7 @@ void MY_FAST_CALL CrcGenerateTable()
}
g_CrcUpdate = CrcUpdateT4;
#ifdef MY_CPU_X86_OR_AMD64
if (!CPU_Is_InOrder())
g_CrcUpdate = CrcUpdateT8;
g_CrcUpdate = CrcUpdateT8;
#endif
#endif
}

9
deps/7zip/CpuArch.c vendored
View File

@ -1,9 +0,0 @@
#include <stdint.h>
#include "CpuArch.h"
Bool CPU_Is_InOrder(void);
Bool CPU_Is_InOrder(void)
{
return False;
}

2
deps/7zip/CpuArch.h vendored
View File

@ -120,8 +120,6 @@ Stop_Compiling_Bad_Endian
#define GetBe16(p) (((uint16_t)((const uint8_t *)(p))[0] << 8) | ((const uint8_t *)(p))[1])
Bool CPU_Is_InOrder();
#ifdef __cplusplus
}
#endif

View File

@ -855,7 +855,6 @@ DEPENDENCIES
#include "../deps/7zip/7zIn.c"
#include "../deps/7zip/7zAlloc.c"
#include "../deps/7zip/Bra86.c"
#include "../deps/7zip/CpuArch.c"
#include "../deps/7zip/7zFile.c"
#include "../deps/7zip/7zStream.c"
#include "../deps/7zip/7zBuf2.c"