diff options
| author | Jacob G-W <jacoblevgw@gmail.com> | 2021-06-09 21:35:42 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-06-21 17:03:03 -0700 |
| commit | 641ecc260f43ffb2398acb80cbd141535dbbb03d (patch) | |
| tree | 87455d3b460f517ad35bcda2b3a2e38599dd4aa1 /lib/std/math/big | |
| parent | d34a1ccb0ea75ba31f374b8b2d34e18326b147b1 (diff) | |
| download | zig-641ecc260f43ffb2398acb80cbd141535dbbb03d.tar.gz zig-641ecc260f43ffb2398acb80cbd141535dbbb03d.zip | |
std, src, doc, test: remove unused variables
Diffstat (limited to 'lib/std/math/big')
| -rw-r--r-- | lib/std/math/big/int.zig | 2 | ||||
| -rw-r--r-- | lib/std/math/big/rational.zig | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/lib/std/math/big/int.zig b/lib/std/math/big/int.zig index b2997536a6..4a74347758 100644 --- a/lib/std/math/big/int.zig +++ b/lib/std/math/big/int.zig @@ -2000,8 +2000,6 @@ fn llmulacc_karatsuba(allocator: *Allocator, r: []Limb, x: []const Limb, y: []co } else { llsub(j1, y0[0..y0_len], y1[0..y1_len]); } - const j0_len = llnormalize(j0); - const j1_len = llnormalize(j1); if (x_cmp == y_cmp) { mem.set(Limb, tmp[0..length], 0); llmulacc(allocator, tmp, j0, j1); diff --git a/lib/std/math/big/rational.zig b/lib/std/math/big/rational.zig index 987889feca..8b7c2d45d6 100644 --- a/lib/std/math/big/rational.zig +++ b/lib/std/math/big/rational.zig @@ -204,7 +204,6 @@ pub const Rational = struct { const esize = math.floatExponentBits(T); const ebias = (1 << (esize - 1)) - 1; const emin = 1 - ebias; - const emax = ebias; if (self.p.eqZero()) { return 0; |
