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

Method set

ppcc/adlib/bitset.h:84–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 return new BitSet(this);
83 }
84 void set(Int i) {
85 require(i < _bits, "index out of range");
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);

Callers 2

MainFunction · 0.45
TransposeFunction · 0.45

Calls 2

requireFunction · 0.85
indexFunction · 0.85

Tested by 1

MainFunction · 0.36