authorgravatar for radomski.main@protonmail.comMateusz Radomski <radomski.main@protonmail.com> 2023-04-16 09:36:54+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-04-18 18:42:02-07:00
log1e207f1edd500707032be093a5c8a91f0e16609a
tree27b11f356bc0c3e799ffa9d0f32852e4f9fd2630
parente1cc70ba11735b678430ffde348527a16287a744

math.big.int: remove stale comments

This pull request removes the optional allocator argument from functions `divFloor` and `divTrunc`. As a result, the comments related to accepting an optional `allocator` are no longer applicable. The support for accepting an optional allocator was removed in #10017.

1 files changed, 0 insertions(+), 6 deletions(-)

lib/std/math/big/int.zig-6
...@@ -935,9 +935,6 @@ pub const Mutable = struct {...@@ -935,9 +935,6 @@ pub const Mutable = struct {
935 /// The upper bound for r limb count is `b.limbs.len`.935 /// The upper bound for r limb count is `b.limbs.len`.
936 /// The upper bound for q limb count is given by `a.limbs`.936 /// The upper bound for q limb count is given by `a.limbs`.
937 ///937 ///
938 /// If `allocator` is provided, it will be used for temporary storage to improve
939 /// multiplication performance. `error.OutOfMemory` is handled with a fallback algorithm.
940 ///
941 /// `limbs_buffer` is used for temporary storage. The amount required is given by `calcDivLimbsBufferLen`.938 /// `limbs_buffer` is used for temporary storage. The amount required is given by `calcDivLimbsBufferLen`.
942 pub fn divFloor(939 pub fn divFloor(
943 q: *Mutable,940 q: *Mutable,
...@@ -1065,9 +1062,6 @@ pub const Mutable = struct {...@@ -1065,9 +1062,6 @@ pub const Mutable = struct {
1065 /// The upper bound for r limb count is `b.limbs.len`.1062 /// The upper bound for r limb count is `b.limbs.len`.
1066 /// The upper bound for q limb count is given by `a.limbs.len`.1063 /// The upper bound for q limb count is given by `a.limbs.len`.
1067 ///1064 ///
1068 /// If `allocator` is provided, it will be used for temporary storage to improve
1069 /// multiplication performance. `error.OutOfMemory` is handled with a fallback algorithm.
1070 ///
1071 /// `limbs_buffer` is used for temporary storage. The amount required is given by `calcDivLimbsBufferLen`.1065 /// `limbs_buffer` is used for temporary storage. The amount required is given by `calcDivLimbsBufferLen`.
1072 pub fn divTrunc(1066 pub fn divTrunc(
1073 q: *Mutable,1067 q: *Mutable,