ΒΆinline uint32_t getNumFpmIntervals(
    uint32_t BlockSize,
    uint32_t NumBlocks,
    bool IncludeUnusedFpmData,
    int FpmNumber)

Description

Given an MSF with the specified block size and number of blocks, determine how many pieces the specified Fpm is split into.\p BlockSize - the block size of the MSF\p NumBlocks - the total number of blocks in the MSF\p IncludeUnusedFpmData - When true, this will count every block that is both in the file and matches the form of an FPM block, even if some of those FPM blocks are unused (a single FPM block can describe the allocation status of up to 32,767 blocks, although one appears only every 4,096 blocks). So there are 8x as many blocks that match the form as there are blocks that are necessary to describe the allocation status of the file. When this parameter is false, these extraneous trailing blocks are not counted.

Declared at: llvm/include/llvm/DebugInfo/MSF/MSFCommon.h:155

Parameters

uint32_t BlockSize
uint32_t NumBlocks
bool IncludeUnusedFpmData
int FpmNumber