From 73c78c8aa093a150f7277391abe2418a0c8a1f7a Mon Sep 17 00:00:00 2001 From: Joe Darcy Date: Mon, 25 Jan 2021 19:06:56 +0000 Subject: 8260329: Update references to TAOCP to latest edition Reviewed-by: alanb, bpb --- src/java.base/share/classes/java/math/MutableBigInteger.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/java.base/share/classes/java/math/MutableBigInteger.java') diff --git a/src/java.base/share/classes/java/math/MutableBigInteger.java b/src/java.base/share/classes/java/math/MutableBigInteger.java index 8eb0d0d5d9b..ace9a035e31 100644 --- a/src/java.base/share/classes/java/math/MutableBigInteger.java +++ b/src/java.base/share/classes/java/math/MutableBigInteger.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -1166,7 +1166,7 @@ class MutableBigInteger { * Calculates the quotient of this div b and places the quotient in the * provided MutableBigInteger objects and the remainder object is returned. * - * Uses Algorithm D in Knuth section 4.3.1. + * Uses Algorithm D from Knuth TAOCP Vol. 2, 3rd edition, section 4.3.1. * Many optimizations to that algorithm have been adapted from the Colin * Plumb C library. * It special cases one word divisors for speed. The content of b is not @@ -1980,7 +1980,7 @@ class MutableBigInteger { * Assumes that this and v are not zero. */ private MutableBigInteger binaryGCD(MutableBigInteger v) { - // Algorithm B from Knuth section 4.5.2 + // Algorithm B from Knuth TAOCP Vol. 2, 3rd edition, section 4.5.2 MutableBigInteger u = this; MutableBigInteger r = new MutableBigInteger(); -- cgit v1.3.1