MCPcopy Create free account
hub / github.com/facebook/CacheLib / isPageAlignedAddr

Function isPageAlignedAddr

cachelib/common/Utils.cpp:229–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229bool isPageAlignedAddr(const void* addr) noexcept {
230 return reinterpret_cast<uintptr_t>(addr) % getPageSize() == 0;
231}
232
233/* returns true with the file's mode. false if the file does not exist.
234 * throws system_error for all other errors */

Callers 4

getNumResidentPagesFunction · 0.70
lockMemoryAsyncMethod · 0.50
SlabAllocator.cppFile · 0.50
TEST_FFunction · 0.50

Calls 1

getPageSizeFunction · 0.70

Tested by 1

TEST_FFunction · 0.40