MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / erase_bit

Method erase_bit

common/unordered_inline_set.h:27–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 *c |= (1 << (i % 8));
26 }
27 void erase_bit(size_t i) {
28 auto c = (char*)_ptr - i / 8 - 1;
29 *c &= ~(1 << (i % 8));
30 }
31 size_t get_s(size_t capacity) const {
32 auto u = sizeof(T) * 8;
33 return (capacity + u - 1) / u;

Callers 1

extractMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected