| 44 | ValCommitLqGq::ValCommitLqGq(Space& home, ValCommitLqGq& vc) |
| 45 | : ValCommit<FloatView,FloatVal>(home,vc) {} |
| 46 | forceinline ModEvent |
| 47 | ValCommitLqGq::commit(Space& home, unsigned int a, FloatView x, int, |
| 48 | FloatNumBranch nl) { |
| 49 | // Should we try the smaller half first? |
| 50 | if ((a == 0) == nl.l) { |
| 51 | if ((x.min() == nl.n) || (x.max() == nl.n)) |
| 52 | return x.eq(home,x.min()); |
| 53 | else |
| 54 | return x.lq(home,nl.n); |
| 55 | } else { |
| 56 | if ((x.min() == nl.n) || (x.max() == nl.n)) |
| 57 | return x.eq(home,x.max()); |
| 58 | else |
| 59 | return x.gq(home,nl.n); |
| 60 | } |
| 61 | } |
| 62 | forceinline NGL* |
| 63 | ValCommitLqGq::ngl(Space&, unsigned int, FloatView, FloatNumBranch) const { |
| 64 | return nullptr; |