MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / RoundUpToPowerOf2

Function RoundUpToPowerOf2

launcher/FileSystem.cpp:1384–1388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1382#if defined(Q_OS_WIN)
1383
1384static long RoundUpToPowerOf2(long originalValue, long roundingMultiplePowerOf2)
1385{
1386 long mask = roundingMultiplePowerOf2 - 1;
1387 return (originalValue + mask) & ~mask;
1388}
1389
1390bool win_ioctl_clone(const std::wstring& src_path, const std::wstring& dst_path, std::error_code& ec)
1391{

Callers 1

win_ioctl_cloneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected