Apply @marning suggested SSE auto-detect to make builds easier on non-x86 platforms: aa2fd044cb
This commit is contained in:
parent
d7344871e6
commit
a9a390a930
5 changed files with 12 additions and 45 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue