Apply @marning suggested SSE auto-detect to make builds easier on non-x86 platforms: aa2fd044cb

This commit is contained in:
Adam Ierymenko 2015-06-01 19:43:06 -07:00
parent d7344871e6
commit a9a390a930
5 changed files with 12 additions and 45 deletions

View file

@ -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);