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