MCPcopy Create free account
hub / github.com/Singular/Singular / clear

Method clear

ppcc/adlib/bitset.h:88–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 _data[index(i)] |= bit(i);
87 }
88 void clear(Int i) {
89 require(i < _bits, "index out of range");
90 _data[index(i)] &= ~bit(i);
91 }
92 bool test(Int i) {
93 require(i < _bits, "index out of range");
94 return (_data[index(i)] & bit(i)) != 0;

Callers 4

si_intset_AssignFunction · 0.45
unite_setFunction · 0.45
intersect_setFunction · 0.45
MainFunction · 0.45

Calls 2

requireFunction · 0.85
indexFunction · 0.85

Tested by 1

MainFunction · 0.36