diff options
author | Tim Besard <tim.besard@gmail.com> | 2011-11-01 17:19:24 +0100 |
---|---|---|
committer | Tim Besard <tim.besard@gmail.com> | 2011-11-01 17:19:24 +0100 |
commit | eb6995fb5a0f4382cb4a01d301423e74ea8babe6 (patch) | |
tree | d932d044359f26e84a35b5aedaba7042b5d8dfc4 /src/Chain.cpp | |
parent | 420b64a912976f89ed189880ba8a16fbb55bc80f (diff) |
Reducing prefetching instructions by changing end of chain check.
Diffstat (limited to 'src/Chain.cpp')
-rw-r--r-- | src/Chain.cpp | 13 |
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; +} |