MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / calcNumElementsWithBuffer

Method calcNumElementsWithBuffer

libCacheSim/dataStructure/robin_hood.h:2138–2141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2136
2137 ROBIN_HOOD(NODISCARD)
2138 size_t calcNumElementsWithBuffer(size_t numElements) const noexcept {
2139 auto maxNumElementsAllowed = calcMaxNumElementsAllowed(numElements);
2140 return numElements + (std::min)(maxNumElementsAllowed, (static_cast<size_t>(0xFF)));
2141 }
2142
2143 // calculation only allowed for 2^n values
2144 ROBIN_HOOD(NODISCARD) size_t calcNumBytesTotal(size_t numElements) const {

Callers 4

operator()Method · 0.80
operator()Method · 0.80
nodesMethod · 0.80
nodesDoNotDeallocateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected