Remove unneeded <arm_acle.h> include

This commit is contained in:
Jeffrey Walton 2021-05-25 20:41:09 -04:00
parent 6ccf051b34
commit 2ed2e19e8e
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
6 changed files with 3 additions and 95 deletions

View File

@ -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[])
{

View File

@ -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[])
{

View File

@ -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[])
{

View File

@ -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[])
{

View File

@ -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[])
{

View File

@ -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[])
{