├── .editorconfig ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── 1-bug-report.yml │ ├── 2-feature-request.yml │ └── config.yml └── workflows │ ├── ci-multibuild.yml │ ├── ci.yml │ ├── release.yml │ └── sync-release-branch.yml ├── .gitignore ├── .prettierignore ├── .prettierrc.yml ├── .solhint.json ├── .vscode └── settings.json ├── CHANGELOG.md ├── CLAUDE.md ├── LICENSE.md ├── README.md ├── SECURITY.md ├── assets ├── logo.png └── op.png ├── bun.lock ├── foundry.toml ├── funding.json ├── package.json ├── src ├── Common.sol ├── SD1x18.sol ├── SD21x18.sol ├── SD59x18.sol ├── UD21x18.sol ├── UD2x18.sol ├── UD60x18.sol ├── casting │ ├── Uint128.sol │ ├── Uint256.sol │ └── Uint40.sol ├── sd1x18 │ ├── Casting.sol │ ├── Constants.sol │ ├── Errors.sol │ └── ValueType.sol ├── sd21x18 │ ├── Casting.sol │ ├── Constants.sol │ ├── Errors.sol │ └── ValueType.sol ├── sd59x18 │ ├── Casting.sol │ ├── Constants.sol │ ├── Conversions.sol │ ├── Errors.sol │ ├── Helpers.sol │ ├── Math.sol │ └── ValueType.sol ├── ud21x18 │ ├── Casting.sol │ ├── Constants.sol │ ├── Errors.sol │ └── ValueType.sol ├── ud2x18 │ ├── Casting.sol │ ├── Constants.sol │ ├── Errors.sol │ └── ValueType.sol └── ud60x18 │ ├── Casting.sol │ ├── Constants.sol │ ├── Conversions.sol │ ├── Errors.sol │ ├── Helpers.sol │ ├── Math.sol │ └── ValueType.sol └── test ├── .solhint.json ├── Base.t.sol ├── fuzz ├── casting │ ├── Uint128.t.sol │ ├── Uint256.t.sol │ └── Uint40.t.sol ├── common │ ├── msb.t.sol │ └── sqrt.t.sol ├── sd1x18 │ └── casting │ │ └── Casting.t.sol ├── sd21x18 │ └── casting │ │ └── Casting.t.sol ├── sd59x18 │ ├── casting │ │ └── Casting.t.sol │ ├── helpers │ │ └── Helpers.t.sol │ └── math │ │ └── pow │ │ └── pow.t.sol ├── ud21x18 │ └── casting │ │ └── Casting.t.sol ├── ud2x18 │ └── casting │ │ └── Casting.t.sol └── ud60x18 │ ├── casting │ └── Casting.t.sol │ ├── helpers │ └── Helpers.t.sol │ └── math │ └── pow │ └── pow.t.sol ├── unit ├── sd59x18 │ ├── SD59x18.t.sol │ ├── conversion │ │ ├── convert-from │ │ │ ├── convertFrom.t.sol │ │ │ └── convertFrom.tree │ │ └── convert-to │ │ │ ├── convertTo.t.sol │ │ │ └── convertTo.tree │ └── math │ │ ├── abs │ │ ├── abs.t.sol │ │ └── abs.tree │ │ ├── avg │ │ ├── avg.t.sol │ │ └── avg.tree │ │ ├── ceil │ │ ├── ceil.t.sol │ │ └── ceil.tree │ │ ├── div │ │ ├── div.t.sol │ │ └── div.tree │ │ ├── exp │ │ ├── exp.t.sol │ │ └── exp.tree │ │ ├── exp2 │ │ ├── exp2.t.sol │ │ └── exp2.tree │ │ ├── floor │ │ ├── floor.t.sol │ │ └── floor.tree │ │ ├── frac │ │ ├── frac.t.sol │ │ └── frac.tree │ │ ├── gm │ │ ├── gm.t.sol │ │ └── gm.tree │ │ ├── inv │ │ ├── inv.t.sol │ │ └── inv.tree │ │ ├── ln │ │ ├── ln.t.sol │ │ └── ln.tree │ │ ├── log10 │ │ ├── log10.t.sol │ │ └── log10.tree │ │ ├── log2 │ │ ├── log2.t.sol │ │ └── log2.tree │ │ ├── mul │ │ ├── mul.t.sol │ │ └── mul.tree │ │ ├── pow │ │ ├── pow.t.sol │ │ └── pow.tree │ │ ├── powu │ │ ├── powu.t.sol │ │ └── powu.tree │ │ └── sqrt │ │ ├── sqrt.t.sol │ │ └── sqrt.tree └── ud60x18 │ ├── UD60x18.t.sol │ ├── conversion │ ├── convert-from │ │ ├── convertFrom.t.sol │ │ └── convertFrom.tree │ └── convert-to │ │ ├── convertTo.t.sol │ │ └── convertTo.tree │ └── math │ ├── avg │ ├── avg.t.sol │ └── avg.tree │ ├── ceil │ ├── ceil.t.sol │ └── ceil.tree │ ├── div │ ├── div.t.sol │ └── div.tree │ ├── exp │ ├── exp.t.sol │ └── exp.tree │ ├── exp2 │ ├── exp2.t.sol │ └── exp2.tree │ ├── floor │ ├── floor.t.sol │ └── floor.tree │ ├── frac │ ├── frac.t.sol │ └── frac.tree │ ├── gm │ ├── gm.t.sol │ └── gm.tree │ ├── inv │ ├── inv.t.sol │ └── inv.tree │ ├── ln │ ├── ln.t.sol │ └── ln.tree │ ├── log10 │ ├── log10.t.sol │ └── log10.tree │ ├── log2 │ ├── log2.t.sol │ └── log2.tree │ ├── mul │ ├── mul.t.sol │ └── mul.tree │ ├── pow │ ├── pow.t.sol │ └── pow.tree │ ├── powu │ ├── powu.t.sol │ └── powu.tree │ └── sqrt │ ├── sqrt.t.sol │ └── sqrt.tree └── utils ├── Assertions.sol └── Utils.sol /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | custom: "https://3cities.xyz/#/pay?c=CAESFAKY9DMuOFdjE4Wzl2YyUFipPiSfIgICATICCAJaFURvbmF0aW9uIHRvIFBhdWwgQmVyZw" 2 | github: "PaulRBerg" 3 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/1-bug-report.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/.github/ISSUE_TEMPLATE/1-bug-report.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/2-feature-request.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/.github/ISSUE_TEMPLATE/2-feature-request.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/.github/ISSUE_TEMPLATE/config.yml -------------------------------------------------------------------------------- /.github/workflows/ci-multibuild.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/.github/workflows/ci-multibuild.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/sync-release-branch.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/.github/workflows/sync-release-branch.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/.prettierrc.yml -------------------------------------------------------------------------------- /.solhint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/.solhint.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CLAUDE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/CLAUDE.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/SECURITY.md -------------------------------------------------------------------------------- /assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/assets/logo.png -------------------------------------------------------------------------------- /assets/op.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/assets/op.png -------------------------------------------------------------------------------- /bun.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/bun.lock -------------------------------------------------------------------------------- /foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/foundry.toml -------------------------------------------------------------------------------- /funding.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/funding.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/package.json -------------------------------------------------------------------------------- /src/Common.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/Common.sol -------------------------------------------------------------------------------- /src/SD1x18.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/SD1x18.sol -------------------------------------------------------------------------------- /src/SD21x18.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/SD21x18.sol -------------------------------------------------------------------------------- /src/SD59x18.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/SD59x18.sol -------------------------------------------------------------------------------- /src/UD21x18.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/UD21x18.sol -------------------------------------------------------------------------------- /src/UD2x18.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/UD2x18.sol -------------------------------------------------------------------------------- /src/UD60x18.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/UD60x18.sol -------------------------------------------------------------------------------- /src/casting/Uint128.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/casting/Uint128.sol -------------------------------------------------------------------------------- /src/casting/Uint256.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/casting/Uint256.sol -------------------------------------------------------------------------------- /src/casting/Uint40.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/casting/Uint40.sol -------------------------------------------------------------------------------- /src/sd1x18/Casting.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/sd1x18/Casting.sol -------------------------------------------------------------------------------- /src/sd1x18/Constants.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/sd1x18/Constants.sol -------------------------------------------------------------------------------- /src/sd1x18/Errors.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/sd1x18/Errors.sol -------------------------------------------------------------------------------- /src/sd1x18/ValueType.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/sd1x18/ValueType.sol -------------------------------------------------------------------------------- /src/sd21x18/Casting.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/sd21x18/Casting.sol -------------------------------------------------------------------------------- /src/sd21x18/Constants.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/sd21x18/Constants.sol -------------------------------------------------------------------------------- /src/sd21x18/Errors.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/sd21x18/Errors.sol -------------------------------------------------------------------------------- /src/sd21x18/ValueType.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/sd21x18/ValueType.sol -------------------------------------------------------------------------------- /src/sd59x18/Casting.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/sd59x18/Casting.sol -------------------------------------------------------------------------------- /src/sd59x18/Constants.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/sd59x18/Constants.sol -------------------------------------------------------------------------------- /src/sd59x18/Conversions.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/sd59x18/Conversions.sol -------------------------------------------------------------------------------- /src/sd59x18/Errors.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/sd59x18/Errors.sol -------------------------------------------------------------------------------- /src/sd59x18/Helpers.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/sd59x18/Helpers.sol -------------------------------------------------------------------------------- /src/sd59x18/Math.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/sd59x18/Math.sol -------------------------------------------------------------------------------- /src/sd59x18/ValueType.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/sd59x18/ValueType.sol -------------------------------------------------------------------------------- /src/ud21x18/Casting.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/ud21x18/Casting.sol -------------------------------------------------------------------------------- /src/ud21x18/Constants.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/ud21x18/Constants.sol -------------------------------------------------------------------------------- /src/ud21x18/Errors.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/ud21x18/Errors.sol -------------------------------------------------------------------------------- /src/ud21x18/ValueType.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/ud21x18/ValueType.sol -------------------------------------------------------------------------------- /src/ud2x18/Casting.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/ud2x18/Casting.sol -------------------------------------------------------------------------------- /src/ud2x18/Constants.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/ud2x18/Constants.sol -------------------------------------------------------------------------------- /src/ud2x18/Errors.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/ud2x18/Errors.sol -------------------------------------------------------------------------------- /src/ud2x18/ValueType.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/ud2x18/ValueType.sol -------------------------------------------------------------------------------- /src/ud60x18/Casting.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/ud60x18/Casting.sol -------------------------------------------------------------------------------- /src/ud60x18/Constants.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/ud60x18/Constants.sol -------------------------------------------------------------------------------- /src/ud60x18/Conversions.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/ud60x18/Conversions.sol -------------------------------------------------------------------------------- /src/ud60x18/Errors.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/ud60x18/Errors.sol -------------------------------------------------------------------------------- /src/ud60x18/Helpers.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/ud60x18/Helpers.sol -------------------------------------------------------------------------------- /src/ud60x18/Math.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/ud60x18/Math.sol -------------------------------------------------------------------------------- /src/ud60x18/ValueType.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/src/ud60x18/ValueType.sol -------------------------------------------------------------------------------- /test/.solhint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/.solhint.json -------------------------------------------------------------------------------- /test/Base.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/Base.t.sol -------------------------------------------------------------------------------- /test/fuzz/casting/Uint128.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/fuzz/casting/Uint128.t.sol -------------------------------------------------------------------------------- /test/fuzz/casting/Uint256.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/fuzz/casting/Uint256.t.sol -------------------------------------------------------------------------------- /test/fuzz/casting/Uint40.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/fuzz/casting/Uint40.t.sol -------------------------------------------------------------------------------- /test/fuzz/common/msb.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/fuzz/common/msb.t.sol -------------------------------------------------------------------------------- /test/fuzz/common/sqrt.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/fuzz/common/sqrt.t.sol -------------------------------------------------------------------------------- /test/fuzz/sd1x18/casting/Casting.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/fuzz/sd1x18/casting/Casting.t.sol -------------------------------------------------------------------------------- /test/fuzz/sd21x18/casting/Casting.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/fuzz/sd21x18/casting/Casting.t.sol -------------------------------------------------------------------------------- /test/fuzz/sd59x18/casting/Casting.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/fuzz/sd59x18/casting/Casting.t.sol -------------------------------------------------------------------------------- /test/fuzz/sd59x18/helpers/Helpers.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/fuzz/sd59x18/helpers/Helpers.t.sol -------------------------------------------------------------------------------- /test/fuzz/sd59x18/math/pow/pow.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/fuzz/sd59x18/math/pow/pow.t.sol -------------------------------------------------------------------------------- /test/fuzz/ud21x18/casting/Casting.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/fuzz/ud21x18/casting/Casting.t.sol -------------------------------------------------------------------------------- /test/fuzz/ud2x18/casting/Casting.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/fuzz/ud2x18/casting/Casting.t.sol -------------------------------------------------------------------------------- /test/fuzz/ud60x18/casting/Casting.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/fuzz/ud60x18/casting/Casting.t.sol -------------------------------------------------------------------------------- /test/fuzz/ud60x18/helpers/Helpers.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/fuzz/ud60x18/helpers/Helpers.t.sol -------------------------------------------------------------------------------- /test/fuzz/ud60x18/math/pow/pow.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/fuzz/ud60x18/math/pow/pow.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/SD59x18.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/SD59x18.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/conversion/convert-from/convertFrom.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/conversion/convert-from/convertFrom.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/conversion/convert-from/convertFrom.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/conversion/convert-from/convertFrom.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/conversion/convert-to/convertTo.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/conversion/convert-to/convertTo.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/conversion/convert-to/convertTo.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/conversion/convert-to/convertTo.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/math/abs/abs.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/abs/abs.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/math/abs/abs.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/abs/abs.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/math/avg/avg.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/avg/avg.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/math/avg/avg.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/avg/avg.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/math/ceil/ceil.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/ceil/ceil.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/math/ceil/ceil.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/ceil/ceil.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/math/div/div.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/div/div.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/math/div/div.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/div/div.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/math/exp/exp.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/exp/exp.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/math/exp/exp.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/exp/exp.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/math/exp2/exp2.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/exp2/exp2.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/math/exp2/exp2.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/exp2/exp2.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/math/floor/floor.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/floor/floor.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/math/floor/floor.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/floor/floor.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/math/frac/frac.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/frac/frac.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/math/frac/frac.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/frac/frac.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/math/gm/gm.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/gm/gm.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/math/gm/gm.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/gm/gm.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/math/inv/inv.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/inv/inv.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/math/inv/inv.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/inv/inv.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/math/ln/ln.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/ln/ln.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/math/ln/ln.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/ln/ln.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/math/log10/log10.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/log10/log10.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/math/log10/log10.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/log10/log10.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/math/log2/log2.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/log2/log2.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/math/log2/log2.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/log2/log2.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/math/mul/mul.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/mul/mul.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/math/mul/mul.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/mul/mul.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/math/pow/pow.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/pow/pow.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/math/pow/pow.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/pow/pow.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/math/powu/powu.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/powu/powu.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/math/powu/powu.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/powu/powu.tree -------------------------------------------------------------------------------- /test/unit/sd59x18/math/sqrt/sqrt.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/sqrt/sqrt.t.sol -------------------------------------------------------------------------------- /test/unit/sd59x18/math/sqrt/sqrt.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/sd59x18/math/sqrt/sqrt.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/UD60x18.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/UD60x18.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/conversion/convert-from/convertFrom.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/conversion/convert-from/convertFrom.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/conversion/convert-from/convertFrom.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/conversion/convert-from/convertFrom.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/conversion/convert-to/convertTo.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/conversion/convert-to/convertTo.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/conversion/convert-to/convertTo.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/conversion/convert-to/convertTo.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/math/avg/avg.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/avg/avg.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/math/avg/avg.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/avg/avg.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/math/ceil/ceil.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/ceil/ceil.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/math/ceil/ceil.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/ceil/ceil.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/math/div/div.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/div/div.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/math/div/div.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/div/div.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/math/exp/exp.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/exp/exp.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/math/exp/exp.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/exp/exp.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/math/exp2/exp2.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/exp2/exp2.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/math/exp2/exp2.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/exp2/exp2.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/math/floor/floor.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/floor/floor.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/math/floor/floor.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/floor/floor.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/math/frac/frac.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/frac/frac.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/math/frac/frac.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/frac/frac.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/math/gm/gm.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/gm/gm.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/math/gm/gm.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/gm/gm.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/math/inv/inv.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/inv/inv.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/math/inv/inv.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/inv/inv.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/math/ln/ln.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/ln/ln.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/math/ln/ln.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/ln/ln.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/math/log10/log10.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/log10/log10.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/math/log10/log10.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/log10/log10.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/math/log2/log2.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/log2/log2.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/math/log2/log2.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/log2/log2.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/math/mul/mul.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/mul/mul.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/math/mul/mul.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/mul/mul.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/math/pow/pow.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/pow/pow.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/math/pow/pow.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/pow/pow.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/math/powu/powu.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/powu/powu.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/math/powu/powu.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/powu/powu.tree -------------------------------------------------------------------------------- /test/unit/ud60x18/math/sqrt/sqrt.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/sqrt/sqrt.t.sol -------------------------------------------------------------------------------- /test/unit/ud60x18/math/sqrt/sqrt.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/unit/ud60x18/math/sqrt/sqrt.tree -------------------------------------------------------------------------------- /test/utils/Assertions.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/utils/Assertions.sol -------------------------------------------------------------------------------- /test/utils/Utils.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaulRBerg/prb-math/HEAD/test/utils/Utils.sol --------------------------------------------------------------------------------