MCPcopy Create free account
hub / github.com/LongSoft/UEFITool / calculateRegionSize

Function calculateRegionSize

descriptor.cpp:36–41  ·  view source on GitHub ↗

Calculate size of region using its base and limit

Source from the content-addressed store, hash-verified

34
35//Calculate size of region using its base and limit
36UINT32 calculateRegionSize(const UINT16 base, const UINT16 limit)
37{
38 if (limit)
39 return (limit + 1 - base) * 0x1000;
40 return 0;
41}

Callers 2

parseIntelImageMethod · 0.85
reconstructIntelImageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected