summaryrefslogtreecommitdiff
path: root/sortlib.cuh
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2023-07-09 03:09:38 +0800
committerKunoiSayami <[email protected]>2023-07-09 03:09:38 +0800
commitc6f4418debfe1f045ef6b36dec5d0cf3a40fd281 (patch)
tree06d25665b97d476538e3cb4236478c10580b7973 /sortlib.cuh
parentcbe4695b8bd0a4f0e429af19694030edeaf047a5 (diff)
2023-07-09 03:09
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'sortlib.cuh')
-rw-r--r--sortlib.cuh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sortlib.cuh b/sortlib.cuh
index d9e91a2..d2e148a 100644
--- a/sortlib.cuh
+++ b/sortlib.cuh
@@ -79,7 +79,7 @@ public:
}*/
// son = get_son_from_step(son, (*last_known_point > val));
- auto branch_selector = ((*last_known_point - val) >> MOVE_OFFSET);
+ auto branch_selector = (int)(*last_known_point < val);
// printf("tmp: %llu\n", tmp);
// printf("%llu %llu ", val, *last_known_point);
son = son * 2 + branch_selector;