1
mirror of https://github.com/hashcat/hashcat synced 2024-11-17 08:28:39 +01:00

Remove some unroll to reduce register pressure

This commit is contained in:
jsteube 2016-05-08 18:29:54 +02:00
parent 303cfcae15
commit bd1f555c9c
15 changed files with 18 additions and 82 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -23,7 +23,8 @@
// Buggy drivers...
#ifdef IS_AMD
#define STATE_DECL volatile
//#define STATE_DECL volatile
#define STATE_DECL
#else
#define STATE_DECL
#endif
@ -133,7 +134,7 @@ void sha512_transform (const u64 w[16], u64 digest[8])
ROUND_STEP (0);
#pragma unroll
//#pragma unroll
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -242,7 +242,7 @@ void sha384_transform (const u64 w0[4], const u64 w1[4], const u64 w2[4], const
ROUND384_STEP (0);
#pragma unroll
//#pragma unroll
for (int i = 16; i < 80; i += 16)
{
ROUND384_EXPAND (); ROUND384_STEP (i);
@ -352,7 +352,7 @@ void sha512_transform (const u64 w0[4], const u64 w1[4], const u64 w2[4], const
ROUND512_STEP (0);
#pragma unroll
//#pragma unroll
for (int i = 16; i < 80; i += 16)
{
ROUND512_EXPAND (); ROUND512_STEP (i);

View File

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