aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math/big.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/math/big.zig')
-rw-r--r--lib/std/math/big.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/std/math/big.zig b/lib/std/math/big.zig
index 8c0f7f5e1e..e7f8a7fb34 100644
--- a/lib/std/math/big.zig
+++ b/lib/std/math/big.zig
@@ -5,6 +5,7 @@ pub const Rational = @import("big/rational.zig").Rational;
pub const int = @import("big/int.zig");
pub const Limb = usize;
const limb_info = @typeInfo(Limb).Int;
+pub const SignedLimb = std.meta.Int(.signed, limb_info.bits);
pub const DoubleLimb = std.meta.Int(.unsigned, 2 * limb_info.bits);
pub const SignedDoubleLimb = std.meta.Int(.signed, 2 * limb_info.bits);
pub const Log2Limb = std.math.Log2Int(Limb);
@@ -19,6 +20,7 @@ test {
_ = int;
_ = Rational;
_ = Limb;
+ _ = SignedLimb;
_ = DoubleLimb;
_ = SignedDoubleLimb;
_ = Log2Limb;