summaryrefslogtreecommitdiff
path: root/expt_0525.cu
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2023-05-29 00:28:45 +0800
committerKunoiSayami <[email protected]>2023-05-29 00:28:45 +0800
commit6e7212a8e52d6768bb8fdae92483aeab09e32807 (patch)
treef5f079f267c195cf5576b61aaeb9f0f00498268b /expt_0525.cu
parent9c0ce2f5570dedd5ad68c7e8fc222928046c5908 (diff)
fix(exp): Fix level calcuation function
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'expt_0525.cu')
-rw-r--r--expt_0525.cu3
1 files changed, 1 insertions, 2 deletions
diff --git a/expt_0525.cu b/expt_0525.cu
index cff4f73..c753acd 100644
--- a/expt_0525.cu
+++ b/expt_0525.cu
@@ -503,8 +503,7 @@ __device__ bool LockFreeSkipList::Delete(LL key) {
}
__device__ bool LockFreeSkipList::Add(LL key) {
- Node *newNode = GetNewNode(
- key, LockFreeSkipList::trailing_zeroes(this->searchIndex(key)));
+ Node *newNode = GetNewNode(key, calcIndex(key));
int topLevel = newNode->topLevel;
int bottomLevel = 0;
Node *preds[MAX_LEVEL + 1];