Skip to main content

Math

Math

ONE

uint256 ONE

safeAdd

function safeAdd(uint256 x, uint256 y) internal pure returns (uint256 z)

safeSub

function safeSub(uint256 x, uint256 y) internal pure returns (uint256 z)

safeMul

function safeMul(uint256 x, uint256 y) internal pure returns (uint256 z)

safeDiv

function safeDiv(uint256 x, uint256 y) internal pure returns (uint256 z)

rmul

function rmul(uint256 x, uint256 y) internal pure returns (uint256 z)

rdiv

function rdiv(uint256 x, uint256 y) internal pure returns (uint256 z)

rdivup

function rdivup(uint256 x, uint256 y) internal pure returns (uint256 z)