summaryrefslogtreecommitdiff
path: root/src/run.cpp
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-09-27 15:07:50 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-09-27 15:07:50 +0200
commit77816a0a261dd3542181dc002c9521f6af22b8d0 (patch)
tree079c25f878f125460280401fd9df123df769c767 /src/run.cpp
parente9bbdad495c7b1099e26a2bca908e33579d3e691 (diff)
parent9f3ad5f1313be89da3b3fea6a7224fb72756be60 (diff)
Merge github.com:ggeorgakoudis/pChase
Diffstat (limited to 'src/run.cpp')
-rw-r--r--src/run.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/run.cpp b/src/run.cpp
index baa5b02..3d41f71 100644
--- a/src/run.cpp
+++ b/src/run.cpp
@@ -366,7 +366,7 @@ static benchmark chase_pointers(int64 chains_per_thread, // memory loading per t
std::vector<AsmJit::GPVar> heads(chains_per_thread);
for (int i = 0; i < chains_per_thread; i++) {
AsmJit::GPVar head = c.newGP();
- c.mov(head, ptr(chain));
+ c.mov(head, ptr( chain, i * sizeof( Chain * ) ) );
heads[i] = head;
}
@@ -374,7 +374,7 @@ static benchmark chase_pointers(int64 chains_per_thread, // memory loading per t
std::vector<AsmJit::GPVar> positions(chains_per_thread);
for (int i = 0; i < chains_per_thread; i++) {
AsmJit::GPVar position = c.newGP();
- c.mov(position, heads[0]);
+ c.mov(position, heads[i]);
positions[i] = position;
}