Manually unroll sha2 hashes
This commit is contained in:
@@ -84,6 +84,12 @@ DECLSPEC void sha512_transform_intern (const u32x *w0, const u32x *w1, const u32
|
||||
|
||||
ROUND_STEP (0);
|
||||
|
||||
#ifdef IS_CUDA
|
||||
ROUND_EXPAND (); ROUND_STEP (16);
|
||||
ROUND_EXPAND (); ROUND_STEP (32);
|
||||
ROUND_EXPAND (); ROUND_STEP (48);
|
||||
ROUND_EXPAND (); ROUND_STEP (64);
|
||||
#else
|
||||
#ifdef _unroll
|
||||
#pragma unroll
|
||||
#endif
|
||||
@@ -91,6 +97,7 @@ DECLSPEC void sha512_transform_intern (const u32x *w0, const u32x *w1, const u32
|
||||
{
|
||||
ROUND_EXPAND (); ROUND_STEP (i);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* rev
|
||||
digest[0] += a;
|
||||
|
||||
Reference in New Issue
Block a user