SHA512 support

This commit is contained in:
Love Hornquist Astrand
2010-09-29 23:37:34 -07:00
parent 5fc132d888
commit b32651c830
10 changed files with 68 additions and 11 deletions

View File

@@ -66,4 +66,10 @@ cshift (uint32_t x, unsigned int n)
return CRAYFIX((x << n) | (x >> (32 - n)));
}
static inline uint64_t
cshift64 (uint64_t x, unsigned int n)
{
return ((uint64_t)x << (uint64_t)n) | ((uint64_t)x >> ((uint64_t)64 - (uint64_t)n));
}
#endif /* __hash_h__ */