diff options
author | Jeffrey Walton <noloader@gmail.com> | 2021-04-20 04:44:21 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2021-04-20 04:44:21 -0400 |
commit | c15aeaa7b5cdf4409d034a50efb3c0d2959a3f6a (patch) | |
tree | 0aabdf1ae1eccc30a641901e3c87144c6a6a6338 /TestPrograms/test_arm_pmull.cpp | |
parent | 21799b1fba6d9d3148cb56003a21f42f6fd086ed (diff) | |
download | cryptopp-git-c15aeaa7b5cdf4409d034a50efb3c0d2959a3f6a.tar.gz |
Use *.cpp file extension for test programs (GH #1024)
Diffstat (limited to 'TestPrograms/test_arm_pmull.cpp')
-rw-r--r-- | TestPrograms/test_arm_pmull.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/TestPrograms/test_arm_pmull.cpp b/TestPrograms/test_arm_pmull.cpp new file mode 100644 index 00000000..3ed7fd2d --- /dev/null +++ b/TestPrograms/test_arm_pmull.cpp @@ -0,0 +1,20 @@ +#include <stdint.h>
+#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[])
+{
+ const poly64_t a=0x60606060, b=0x90909090, c=0xb0b0b0b0;
+ const poly64x2_t d={0x60606060,0x90909090};
+ const poly8x16_t e={0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
+ 0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0,0xa0};
+
+ const poly128_t r1 = vmull_p64(a, b);
+ const poly128_t r2 = vmull_high_p64(d, d);
+
+ return 0;
+}
|