Enable unrolling of SHA512 with HMAC on NV

pull/330/head
jsteube 8 years ago
parent 7f04a89f77
commit 303cfcae15

@ -116,7 +116,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

@ -114,7 +114,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

@ -114,7 +114,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

@ -116,7 +116,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

@ -114,7 +114,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

@ -114,7 +114,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

@ -115,7 +115,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

@ -115,7 +115,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

@ -115,7 +115,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

@ -114,7 +114,12 @@ void sha512_transform (const u64 w0[4], const u64 w1[4], const u64 w2[4], const
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

@ -114,7 +114,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

@ -114,7 +114,7 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND_STEP (0);
//#pragma unroll
#pragma unroll
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

@ -321,7 +321,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND512_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND512_EXPAND (); ROUND512_STEP (i);

@ -1073,7 +1073,12 @@ void sha512_transform (const u64 w0[4], const u64 w1[4], const u64 w2[4], const
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

@ -986,7 +986,7 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND_STEP (0);
//#pragma unroll
#pragma unroll
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

@ -114,7 +114,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

@ -114,7 +114,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

Loading…
Cancel
Save