{
    "Function": "totalBitsSet",
    "File": "contracts/math/Bitmap.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function totalBitsSet(bytes32 bitmap) internal pure returns (uint256) {\n        uint256 x = uint256(bitmap);\n        x = (x & 0x5555555555555555555555555555555555555555555555555555555555555555) + (x >> 1 & 0x5555555555555555555555555555555555555555555555555555555555555555);\n        x = (x & 0x3333333333333333333333333333333333333333333333333333333333333333) + (x >> 2 & 0x3333333333333333333333333333333333333333333333333333333333333333);\n        x = (x & 0x0707070707070707070707070707070707070707070707070707070707070707) + (x >> 4);\n        x = (x & 0x000F000F000F000F000F000F000F000F000F000F000F000F000F000F000F000F) + (x >> 8 & 0x000F000F000F000F000F000F000F000F000F000F000F000F000F000F000F000F);\n        x = x + (x >> 16);\n        x = x + (x >> 32);\n        x = x  + (x >> 64);\n        return (x & 0xFF) + (x >> 128 & 0xFF);\n    }"
}