mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 04:53:44 +02:00
Should fix non x64 platforms
Need adam to check
This commit is contained in:
parent
47ec246520
commit
c9ae7e811f
1 changed files with 5 additions and 1 deletions
|
@ -144,9 +144,13 @@ static ZT_INLINE void p_salsaCrypt(p_SalsaState *const state, const uint8_t *m,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
#ifdef ZT_SALSA20_SSE
|
||||||
if (likely(bytes >= 64)) {
|
if (likely(bytes >= 64)) {
|
||||||
_mm_prefetch(m + 128, _MM_HINT_T0);
|
_mm_prefetch(m + 128, _MM_HINT_T0);
|
||||||
} else {
|
} else {
|
||||||
|
#else
|
||||||
|
if (bytes < 64) {
|
||||||
|
#endif
|
||||||
for (unsigned int i = 0;i < bytes;++i)
|
for (unsigned int i = 0;i < bytes;++i)
|
||||||
tmp[i] = m[i];
|
tmp[i] = m[i];
|
||||||
m = tmp;
|
m = tmp;
|
||||||
|
|
Loading…
Add table
Reference in a new issue