summaryrefslogtreecommitdiff
path: root/src/Chain.cpp
diff options
context:
space:
mode:
authorTim Besard <tim.besard@gmail.com>2011-11-01 17:19:24 +0100
committerTim Besard <tim.besard@gmail.com>2011-11-01 17:19:24 +0100
commiteb6995fb5a0f4382cb4a01d301423e74ea8babe6 (patch)
treed932d044359f26e84a35b5aedaba7042b5d8dfc4 /src/Chain.cpp
parent420b64a912976f89ed189880ba8a16fbb55bc80f (diff)
Reducing prefetching instructions by changing end of chain check.
Diffstat (limited to 'src/Chain.cpp')
-rw-r--r--src/Chain.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/Chain.cpp b/src/Chain.cpp
index ddbc104..1eda774 100644
--- a/src/Chain.cpp
+++ b/src/Chain.cpp
@@ -15,10 +15,21 @@
#include "Chain.h"
Chain::Chain()
-: next(NULL)
+: next(END_OF_CHAIN)
+{
+}
+
+Chain::Chain(Chain *end)
+: next(end)
{
}
Chain::~Chain()
{
}
+
+Chain* Chain::END()
+{
+ static Chain chain((Chain*) 0xDEADBEEF);
+ return &chain;
+}