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

@ -7,10 +7,16 @@
#ifndef ZT_SALSA20_HPP
#define ZT_SALSA20_HPP
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include "Constants.hpp"
#if (!defined(ZT_SALSA20_SSE)) && (defined(__SSE2__) || defined(__WINDOWS__))
#define ZT_SALSA20_SSE 1
#endif
#ifdef ZT_SALSA20_SSE
#include <emmintrin.h>
#endif // ZT_SALSA20_SSE