aboutsummaryrefslogtreecommitdiff
path: root/sha256_4way.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2011-02-17 01:22:55 -0500
committerJeff Garzik <jgarzik@redhat.com>2011-02-17 01:22:55 -0500
commit1083e15c47539133a0e5075bb3d9f2b7741633f3 (patch)
treedc8a1fbf3098720fd31ba6f33ce36680267cb9e2 /sha256_4way.c
parentf0bdc0b6f9f19c603f5e34332fa0d4e5bb3ea973 (diff)
Mark hash success as unlikely, using __builtin_expect() intrinsic
Diffstat (limited to 'sha256_4way.c')
-rw-r--r--sha256_4way.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha256_4way.c b/sha256_4way.c
index fe9642b..ea6634a 100644
--- a/sha256_4way.c
+++ b/sha256_4way.c
@@ -118,7 +118,7 @@ unsigned int ScanHash_4WaySSE2(const unsigned char *pmidstate, unsigned char *pd
for (j = 0; j < NPAR; j++)
{
- if (thash[7][j] == 0)
+ if (unlikely(thash[7][j] == 0))
{
int i;