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_x86_rdseed.cpp | |
parent | 21799b1fba6d9d3148cb56003a21f42f6fd086ed (diff) | |
download | cryptopp-git-c15aeaa7b5cdf4409d034a50efb3c0d2959a3f6a.tar.gz |
Use *.cpp file extension for test programs (GH #1024)
Diffstat (limited to 'TestPrograms/test_x86_rdseed.cpp')
-rw-r--r-- | TestPrograms/test_x86_rdseed.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/TestPrograms/test_x86_rdseed.cpp b/TestPrograms/test_x86_rdseed.cpp new file mode 100644 index 00000000..172cde95 --- /dev/null +++ b/TestPrograms/test_x86_rdseed.cpp @@ -0,0 +1,10 @@ +#include <immintrin.h>
+#if (__GNUC__ >= 5) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 6))
+# include <x86intrin.h>
+#endif
+int main(int argc, char* argv[])
+{
+ unsigned int x=0;
+ (void)_rdseed32_step (&x);
+ return x == 0 ? 0 : 0;
+}
|