diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-06-01 19:43:06 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-06-01 19:43:06 -0700 |
| commit | a9a390a930493bba3b64a20fb20e55f304062b0a (patch) | |
| tree | 04de7ea5092800ad4ec05383676284b6ac875025 /selftest.cpp | |
| parent | d7344871e6b8edee9f6a9cbaa3bb924429d8abcb (diff) | |
| download | infinitytier-a9a390a930493bba3b64a20fb20e55f304062b0a.tar.gz infinitytier-a9a390a930493bba3b64a20fb20e55f304062b0a.zip | |
Apply @marning suggested SSE auto-detect to make builds easier on non-x86 platforms: https://github.com/mwarning/ZeroTierOne/commit/aa2fd044cb69b97eef1ea38d5fefd18543aae22a
Diffstat (limited to 'selftest.cpp')
| -rw-r--r-- | selftest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/selftest.cpp b/selftest.cpp index a0b3c951..27c81c25 100644 --- a/selftest.cpp +++ b/selftest.cpp @@ -187,6 +187,12 @@ static int testCrypto() } std::cout << "PASS" << std::endl; +#ifdef ZT_SALSA20_SSE + std::cout << "[crypto] Salsa20 SSE: ENABLED" << std::endl; +#else + std::cout << "[crypto] Salsa20 SSE: DISABLED" << std::endl; +#endif + std::cout << "[crypto] Benchmarking Salsa20/12... "; std::cout.flush(); { unsigned char *bb = (unsigned char *)::malloc(1234567); |
