mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
General refactor and cleanup.
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#define ALIGNED_(n) __attribute__((aligned(n)))
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64__) || defined(__amd64) || defined(_M_AMD64) || defined(_M_X64) || defined(__I386__) || \
|
||||
#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
|
||||
@@ -33,21 +33,21 @@
|
||||
#define SSSE3
|
||||
#define CLMUL
|
||||
#else
|
||||
#define AVX2 __attribute__((target("avx2")))
|
||||
#define AVX2 __attribute__((target("avx2")))
|
||||
#define SSSE3 __attribute__((target("ssse3")))
|
||||
#define CLMUL __attribute__((target("pclmul,sse4.1")))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if(defined(__arm__) || defined(_M_ARM)) && !defined(_WIN32)
|
||||
#define HWCAP_NEON (1 << 12)
|
||||
#define HWCAP2_AES (1 << 0)
|
||||
#define HWCAP_NEON (1 << 12)
|
||||
#define HWCAP2_AES (1 << 0)
|
||||
#define HWCAP2_CRC32 (1 << 4)
|
||||
#endif
|
||||
|
||||
#if(defined(__aarch64__) || defined(_M_ARM64)) && !defined(_WIN32)
|
||||
#define HWCAP_NEON (1 << 1)
|
||||
#define HWCAP_AES (1 << 3)
|
||||
#define HWCAP_NEON (1 << 1)
|
||||
#define HWCAP_AES (1 << 3)
|
||||
#define HWCAP_CRC32 (1 << 7)
|
||||
#endif
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
#define TARGET_WITH_CRYPTO
|
||||
#define TARGET_WITH_SIMD
|
||||
|
||||
#else // _MSC_VER
|
||||
#else // _MSC_VER
|
||||
|
||||
#if defined(__aarch64__) || defined(_M_ARM64)
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
#define TARGET_ARMV8_WITH_CRC __attribute__((target("arch=armv8-a+crc")))
|
||||
#endif
|
||||
|
||||
#endif // __ARM_ARCH >= 8
|
||||
#endif // __ARM_ARCH >= 8
|
||||
|
||||
#ifdef __clang__
|
||||
#define TARGET_WITH_CRYPTO __attribute__((target("armv8-a,crypto")))
|
||||
@@ -104,10 +104,10 @@
|
||||
#define TARGET_WITH_SIMD __attribute__((target("fpu=neon")))
|
||||
#endif
|
||||
|
||||
#endif // __aarch64__ || _M_ARM64
|
||||
#endif // __aarch64__ || _M_ARM64
|
||||
|
||||
#endif // _MSC_VER
|
||||
#endif // _MSC_VER
|
||||
|
||||
#endif // __aarch64__ || _M_ARM64 || __arm__ || _M_ARM
|
||||
#endif // __aarch64__ || _M_ARM64 || __arm__ || _M_ARM
|
||||
|
||||
#endif // LIBAARUFORMAT_SIMD_H
|
||||
#endif // LIBAARUFORMAT_SIMD_H
|
||||
|
||||
Reference in New Issue
Block a user