Home
last modified time | relevance | path

Searched refs:OneBit64 (Results 1 – 6 of 6) sorted by relevance

/dports/math/py-or-tools/or-tools-9.2/ortools/base/
H A Dbitmap.h23 inline uint64_t OneBit64(int pos) { return uint64_t{1} << pos; } in OneBit64() function
28 return (bitset[BitOffset64(pos)] & OneBit64(BitPos64(pos))); in IsBitSet64()
31 bitset[BitOffset64(pos)] |= OneBit64(BitPos64(pos)); in SetBit64()
34 bitset[BitOffset64(pos)] &= ~OneBit64(BitPos64(pos)); in ClearBit64()
/dports/math/py-or-tools/or-tools-9.2/ortools/util/
H A Dbitset.h38 inline uint64_t OneBit64(int pos) { return uint64_t{1} << pos; } in OneBit64() function
347 return (bitset[BitOffset64(pos)] & OneBit64(BitPos64(pos))); in IsBitSet64()
355 bitset[BitOffset64(pos)] |= OneBit64(BitPos64(pos)); in SetBit64()
363 bitset[BitOffset64(pos)] &= ~OneBit64(BitPos64(pos)); in ClearBit64()
460 data_[BitOffset64(Value(i))] &= ~OneBit64(BitPos64(Value(i))); in Clear()
488 return data_[BitOffset64(Value(i))] & OneBit64(BitPos64(Value(i))); in IsSet()
498 data_[BitOffset64(Value(i))] |= OneBit64(BitPos64(Value(i))); in Set()
706 data_[BitOffset64(i)] |= OneBit64(BitPos64(i)); in Set()
715 data_[bucket_index] |= OneBit64(BitPos64(i)) - 1; in SetAllBefore()
728 uint64_t bucket = data_[bucket_index] &= ~OneBit64(BitPos64(top_)); in ClearTop()
/dports/math/py-or-tools/or-tools-9.2/ortools/constraint_solver/
H A Dutilities.cc40 bits_.SetValue(solver, bits_.Value() | OneBit64(pos)); in SetToOne()
45 bits_.SetValue(solver, bits_.Value() & ~OneBit64(pos)); in SetToZero()
89 if (!(bits_[offset] & OneBit64(pos))) { in SetToOne()
91 bits_[offset] |= OneBit64(pos); in SetToOne()
100 if (bits_[offset] & OneBit64(pos)) { in SetToZero()
102 bits_[offset] &= ~OneBit64(pos); in SetToZero()
H A Dtable.cc869 const uint64_t local_mask = OneBit64(tuple_index); in ComputeActiveTuples()
H A Dexpressions.cc1652 bits_[offset] |= OneBit64(pos); in SimpleBitSet()
1722 bits_[offset] &= ~OneBit64(pos); in RemoveValue()
1840 bits_ |= OneBit64(val - omin_);
1849 return (bits_ & OneBit64(val - omin_)) != 0; in bit()
1928 bits_ &= ~OneBit64(val - omin_); in RemoveValue()
/dports/math/py-or-tools/or-tools-9.2/ortools/algorithms/
H A Dknapsack_solver.cc690 return (best_solution_ & OneBit64(item_id)) != 0ULL;
859 uint64_t mask = OneBit64(state_depth_);
891 if (best_solution_ & OneBit64(i)) {
904 best_solution_ = best_solution_ | OneBit64(i);
906 best_solution_ = best_solution_ & ~OneBit64(i);
917 if (best_solution_ & OneBit64(i)) {
919 tmp_solution = tmp_solution | OneBit64(original_id);