mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 18:09:48 +00:00
60eedb97ba
* Test fix ARM headers This problem has been festering for some time. The header file includes are slightly different than the ISA options. Some platforms need an include, others don't. * Fix cryptest-android.sh and cryptest-ios.sh * Fix MSVC ARM32 and ARM64 compile * Split ARM32 and ARM64 recipes in GNUmakefile
23 lines
638 B
C++
23 lines
638 B
C++
#include <arm_neon.h>
|
|
#include <stdint.h>
|
|
|
|
// test_acle.h determines if this is available. Then,
|
|
// -DCRYPTOPP_ARM_ACLE_HEADER=0 is added to CXXFLAGS
|
|
// if the ACLE header is not available.
|
|
#if (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;
|
|
}
|