summaryrefslogtreecommitdiff
path: root/TestPrograms/test_arm_sha3.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-05-25 20:41:09 -0400
committerJeffrey Walton <noloader@gmail.com>2021-05-25 20:41:09 -0400
commit2ed2e19e8e2f926dbea974c08ec9692536f7b24d (patch)
treebe7d802f18e04b9e75c1b7fb4c7a7bd2988a9f74 /TestPrograms/test_arm_sha3.cpp
parent6ccf051b34271966008ae71dd44b862da7bf9c51 (diff)
downloadcryptopp-git-2ed2e19e8e2f926dbea974c08ec9692536f7b24d.tar.gz
Remove unneeded <arm_acle.h> include
Diffstat (limited to 'TestPrograms/test_arm_sha3.cpp')
-rw-r--r--TestPrograms/test_arm_sha3.cpp38
1 files changed, 2 insertions, 36 deletions
diff --git a/TestPrograms/test_arm_sha3.cpp b/TestPrograms/test_arm_sha3.cpp
index d60e0602..afcbab8b 100644
--- a/TestPrograms/test_arm_sha3.cpp
+++ b/TestPrograms/test_arm_sha3.cpp
@@ -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[])
{