aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-03-07 01:53:45 +0000
committerlloyd <[email protected]>2007-03-07 01:53:45 +0000
commitbbd20f37f6bb4fde0b36fe3ceddaedb531c2562f (patch)
treed321fa487d390a5fff5637109ffa0193d678fc3f /include
parent0392cd772513865b2e98dc5c666f5598d8134c6b (diff)
Inline the definition of Tiger::round into Tiger::pass, which was its only
caller. The resulting code is longer and somewhat harder to read, but it's giving 25-30% performance increases on my Core2, and something a bit lower but still measurable on the P4.
Diffstat (limited to 'include')
-rw-r--r--include/tiger.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tiger.h b/include/tiger.h
index 393d411d0..dc99cf8d8 100644
--- a/include/tiger.h
+++ b/include/tiger.h
@@ -26,8 +26,9 @@ class Tiger : public MDx_HashFunction
static void pass(u64bit&, u64bit&, u64bit&, u64bit[8], byte);
static void mix(u64bit[8]);
- static void round(u64bit&, u64bit&, u64bit&, u64bit, byte);
+
static const u64bit SBOX1[256], SBOX2[256], SBOX3[256], SBOX4[256];
+
SecureBuffer<u64bit, 8> X;
SecureBuffer<u64bit, 3> digest;
const u32bit PASS;