summaryrefslogtreecommitdiff
path: root/TestPrograms/test_arm_crc.cxx
blob: 205f5b5cb6c6bbc67034c0b39681225c7092c2a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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[])
{
	uint32_t w=0xffffffff;

	w = __crc32w(w,w);
	w = __crc32h(w,w);
	w = __crc32b(w,w);
	w = __crc32cw(w,w);
	w = __crc32ch(w,w);
	w = __crc32cb(w,w);

	return 0;
}