{
    "Function": "closestBitLeft",
    "File": "src/libraries/BitMath.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "leastSignificantBit"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function closestBitLeft(uint256 x, uint8 bit) internal pure returns (uint256 id) {\n        unchecked {\n            x >>= bit;\n\n            if (x == 0) return type(uint256).max;\n\n            return leastSignificantBit(x) + bit;\n        }\n    }"
}