Skip to content

Commit 3654bd6

Browse files
committed
c/hv4d.c: Remove unlikely.
1 parent cdde0c8 commit 3654bd6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

c/hv4d.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ restart_base_setup_z_and_closest(dlnode_t * restrict list, dlnode_t * restrict n
132132
bool p_leq_new_2 = p_lt_new_2 | p_eq_new_2;
133133

134134
// if (weakly_dominates(px, newx, 3)) { // Slower
135-
if (unlikely(p_leq_new_0 & p_leq_new_1 & p_leq_new_2)) {
135+
if (p_leq_new_0 & p_leq_new_1 & p_leq_new_2) {
136136
//new->ndomr++;
137137
assert(weakly_dominates(px, newx, 4));
138138
return false;
@@ -243,6 +243,8 @@ hv4dplusU(dlnode_t * list)
243243
add_to_z(new);
244244
update_links(list, new);
245245
}
246+
// FIXME: It new was dominated, can we accumulate the height and update
247+
// hv later?
246248
double height = new->next[1]->x[3] - new->x[3];
247249
assert(height >= 0);
248250
hv += volume * height;

0 commit comments

Comments
 (0)