MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / ScaleBytes_

Function ScaleBytes_

IntelPresentMon/Interprocess/source/DataStores.cpp:26–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 constexpr size_t kFixedLeewayBytes_ = 4 * 1024;
25
26 size_t ScaleBytes_(size_t bytes, size_t numerator, size_t denominator)
27 {
28 return (bytes * numerator + denominator - 1) / denominator;
29 }
30
31 template<PM_DATA_TYPE T>
32 struct DataTypeSizeBridger_

Callers 2

TelemetrySegmentBytes_Function · 0.85
CalculateSegmentBytesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected