git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ce7c49b
)
Don't include immintrin.h if not necessary.
author
CryptoManiac
<balthazar.ad@gmail.com>
Mon, 12 Oct 2015 15:57:04 +0000 (08:57 -0700)
committer
CryptoManiac
<balthazar.ad@gmail.com>
Mon, 12 Oct 2015 15:57:04 +0000 (08:57 -0700)
src/crypto/sha2/asm/copy_swap.c
patch
|
blob
|
history
diff --git
a/src/crypto/sha2/asm/copy_swap.c
b/src/crypto/sha2/asm/copy_swap.c
index
f430292
..
5f7bbf3
100644
(file)
--- a/
src/crypto/sha2/asm/copy_swap.c
+++ b/
src/crypto/sha2/asm/copy_swap.c
@@
-3,7
+3,6
@@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <stdint.h>
-#include <immintrin.h>
void copy_swap_hashes(uint32_t *blocks, uint32_t *state)
{
@@
-42,6
+41,8
@@
void copy_swap_hashes(uint32_t *blocks, uint32_t *state)
}
#ifdef USE_SSSE3
+#include <immintrin.h>
+
void copy_swap_hashes_ssse3(uint32_t *blocks, uint32_t *state)
{
__m128i mask = _mm_set_epi8(12, 13, 14, 15, 8, 9, 10, 11, 4, 5, 6, 7, 0, 1, 2, 3);