Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
Main
Function · 0.45
Transpose
Function · 0.45
Calls
2
require
Function · 0.85
index
Function · 0.85
Tested by
1
Main
Function · 0.36