From ae9e8f66d85ebd025691331d1eba39f6dff091cd Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Tue, 5 Oct 2021 00:33:27 +0100 Subject: [PATCH] Fix definitions. --- crc32.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/crc32.h b/crc32.h index 22bdcb9..4eb4e0b 100644 --- a/crc32.h +++ b/crc32.h @@ -266,24 +266,9 @@ AARU_EXPORT void AARU_CALL crc32_free(crc32_ctx* ctx); #if defined(__x86_64__) || defined(__amd64) || defined(_M_AMD64) || defined(_M_X64) || defined(__I386__) || \ defined(__i386__) || defined(__THW_INTEL) || defined(_M_IX86) - -#ifdef _MSC_VER -#define CLMUL -#define ALIGNED_(n) __declspec(align(n)) -#else -#define CLMUL __attribute__((target("pclmul,sse4.1"))) -#define ALIGNED_(n) __attribute__((aligned(n))) -#endif - CLMUL uint32_t crc32_clmul(const uint8_t* src, long len, uint32_t initial_crc); #endif -#if defined(__aarch64__) -#define TARGET_ARMV8_WITH_CRC __attribute__((target("+crc"))) -#else // !defined(__aarch64__) -#define TARGET_ARMV8_WITH_CRC __attribute__((target("armv8-a,crc"))) -#endif // defined(__aarch64__) - #if defined(__aarch64__) || defined(_M_ARM64) || defined(__arm__) || defined(_M_ARM) TARGET_ARMV8_WITH_CRC uint32_t armv8_crc32_little(uint32_t crc, const unsigned char* buf, uint32_t len); #endif \ No newline at end of file