Get rid of __align stuff in Salsa20 -- not portable, does not seem to help much on newer chips.
This commit is contained in:
parent
5c1c70a604
commit
8d2e20ede6
3 changed files with 7 additions and 16 deletions
|
@ -144,10 +144,10 @@ void Salsa20::encrypt(const void *in,void *out,unsigned int bytes)
|
|||
}
|
||||
|
||||
#ifdef ZT_SALSA20_SSE
|
||||
__m128i X0 = _mm_load_si128((const __m128i *)&(_state.v[0]));
|
||||
__m128i X1 = _mm_load_si128((const __m128i *)&(_state.v[1]));
|
||||
__m128i X2 = _mm_load_si128((const __m128i *)&(_state.v[2]));
|
||||
__m128i X3 = _mm_load_si128((const __m128i *)&(_state.v[3]));
|
||||
__m128i X0 = _mm_loadu_si128((const __m128i *)&(_state.v[0]));
|
||||
__m128i X1 = _mm_loadu_si128((const __m128i *)&(_state.v[1]));
|
||||
__m128i X2 = _mm_loadu_si128((const __m128i *)&(_state.v[2]));
|
||||
__m128i X3 = _mm_loadu_si128((const __m128i *)&(_state.v[3]));
|
||||
__m128i X0s = X0;
|
||||
__m128i X1s = X1;
|
||||
__m128i X2s = X2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue