mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-27 03:40:22 +00:00
Remove unneeded <arm_acle.h> include
This commit is contained in:
parent
6ccf051b34
commit
2ed2e19e8e
@ -2,9 +2,6 @@
|
||||
#ifdef CRYPTOPP_ARM_NEON_HEADER
|
||||
# include <arm_neon.h>
|
||||
#endif
|
||||
#ifdef CRYPTOPP_ARM_ACLE_HEADER
|
||||
# include <arm_acle.h>
|
||||
#endif
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
|
@ -2,9 +2,6 @@
|
||||
#ifdef CRYPTOPP_ARM_NEON_HEADER
|
||||
# include <arm_neon.h>
|
||||
#endif
|
||||
#ifdef CRYPTOPP_ARM_ACLE_HEADER
|
||||
# include <arm_acle.h>
|
||||
#endif
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
|
@ -8,53 +8,7 @@
|
||||
#endif
|
||||
|
||||
// Keep sync'd with arm_simd.h
|
||||
inline uint32_t CRC32B (uint32_t crc, uint8_t val)
|
||||
{
|
||||
#if defined(_MSC_VER)
|
||||
return __crc32b(crc, val);
|
||||
#else
|
||||
uint32_t r;
|
||||
__asm__ ("crc32b %w0, %w1, %w2 \n\t"
|
||||
:"=r" (r) : "r" (crc), "r" (val) );
|
||||
return r;
|
||||
#endif
|
||||
}
|
||||
|
||||
inline uint32_t CRC32W (uint32_t crc, uint32_t val)
|
||||
{
|
||||
#if defined(_MSC_VER)
|
||||
return __crc32w(crc, val);
|
||||
#else
|
||||
uint32_t r;
|
||||
__asm__ ("crc32w %w0, %w1, %w2 \n\t"
|
||||
:"=r" (r) : "r" (crc), "r" (val) );
|
||||
return r;
|
||||
#endif
|
||||
}
|
||||
|
||||
inline uint32_t CRC32CB (uint32_t crc, uint8_t val)
|
||||
{
|
||||
#if defined(_MSC_VER)
|
||||
return __crc32cb(crc, val);
|
||||
#else
|
||||
uint32_t r;
|
||||
__asm__ ("crc32cb %w0, %w1, %w2 \n\t"
|
||||
:"=r" (r) : "r" (crc), "r" (val) );
|
||||
return r;
|
||||
#endif
|
||||
}
|
||||
|
||||
inline uint32_t CRC32CW (uint32_t crc, uint32_t val)
|
||||
{
|
||||
#if defined(_MSC_VER)
|
||||
return __crc32cw(crc, val);
|
||||
#else
|
||||
uint32_t r;
|
||||
__asm__ ("crc32cw %w0, %w1, %w2 \n\t"
|
||||
:"=r" (r) : "r" (crc), "r" (val) );
|
||||
return r;
|
||||
#endif
|
||||
}
|
||||
#include "../arm_simd.h"
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
|
@ -2,9 +2,6 @@
|
||||
#ifdef CRYPTOPP_ARM_NEON_HEADER
|
||||
# include <arm_neon.h>
|
||||
#endif
|
||||
#ifdef CRYPTOPP_ARM_ACLE_HEADER
|
||||
# include <arm_acle.h>
|
||||
#endif
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
|
@ -2,9 +2,6 @@
|
||||
#ifdef CRYPTOPP_ARM_NEON_HEADER
|
||||
# include <arm_neon.h>
|
||||
#endif
|
||||
#ifdef CRYPTOPP_ARM_ACLE_HEADER
|
||||
# include <arm_acle.h>
|
||||
#endif
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
|
@ -3,42 +3,8 @@
|
||||
# include <arm_neon.h>
|
||||
#endif
|
||||
|
||||
inline uint64x2_t VEOR3(uint64x2_t a, uint64x2_t b, uint64x2_t c)
|
||||
{
|
||||
#if defined(_MSC_VER)
|
||||
return veor3q_u64(a, b, c);
|
||||
#else
|
||||
uint64x2_t r;
|
||||
__asm__ ("eor3 %0.16b, %1.16b, %2.16b, %3.16b \n\t"
|
||||
:"=w" (r) : "w" (a), "w" (b), "w" (c));
|
||||
return r;
|
||||
#endif
|
||||
}
|
||||
|
||||
template <unsigned int C>
|
||||
inline uint64x2_t VXAR(uint64x2_t a, uint64x2_t b)
|
||||
{
|
||||
#if defined(_MSC_VER)
|
||||
return vxarq_u64(a, b, C);
|
||||
#else
|
||||
uint64x2_t r;
|
||||
__asm__ ("xar %0.2d, %1.2d, %2.2d, %3 \n\t"
|
||||
:"=w" (r) : "w" (a), "w" (b), "I" (C));
|
||||
return r;
|
||||
#endif
|
||||
}
|
||||
|
||||
inline uint64x2_t VRAX1(uint64x2_t a, uint64x2_t b)
|
||||
{
|
||||
#if defined(_MSC_VER)
|
||||
return vrax1q_u64(a, b);
|
||||
#else
|
||||
uint64x2_t r;
|
||||
__asm__ ("rax1 %0.2d, %1.2d, %2.2d \n\t"
|
||||
:"=w" (r) : "w" (a), "w" (b));
|
||||
return r;
|
||||
#endif
|
||||
}
|
||||
// Keep sync'd with arm_simd.h
|
||||
#include "../arm_simd.h"
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user