Skip to content

Commit

Permalink
Fix missing includes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Optiminer committed Aug 10, 2016
1 parent 2b19cf5 commit 1b532b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sha512.cpp
Expand Up @@ -4,6 +4,7 @@

#include <string.h>
#include <stdlib.h>
#include <endian.h>
#include "emmintrin.h"
#include "tmmintrin.h"
#include "smmintrin.h"
Expand All @@ -18,7 +19,7 @@
#define SIGMA4(x) (ROR64(x, 19) ^ ROR64(x, 61) ^ SHR64(x, 6))

//Rotate right operation
#define ROR64(a, n) _mm256_or_si256(_mm256_srli_epi64(a, n), _mm256_slli_epi64(a, sizeof(ulong)*8 - n))
#define ROR64(a, n) _mm256_or_si256(_mm256_srli_epi64(a, n), _mm256_slli_epi64(a, sizeof(long)*8 - n))

//Shift right operation
#define SHR64(a, n) _mm256_srli_epi64(a, n)
Expand Down

0 comments on commit 1b532b7

Please sign in to comment.