aboutsummaryrefslogtreecommitdiff
path: root/src/java.base/share/classes/java/math/MutableBigInteger.java
diff options
context:
space:
mode:
authorJoe Darcy <darcy@openjdk.org>2021-01-25 19:06:56 +0000
committerJoe Darcy <darcy@openjdk.org>2021-01-25 19:06:56 +0000
commit73c78c8aa093a150f7277391abe2418a0c8a1f7a (patch)
tree27dc568085a23dbb84a483eb3d578c95e80dfd66 /src/java.base/share/classes/java/math/MutableBigInteger.java
parent5b0b24b58d5fc3dbcba2905deb87129cb296dc47 (diff)
downloadopenjdk-73c78c8aa093a150f7277391abe2418a0c8a1f7a.tar.gz
openjdk-73c78c8aa093a150f7277391abe2418a0c8a1f7a.zip
8260329: Update references to TAOCP to latest edition
Reviewed-by: alanb, bpb
Diffstat (limited to 'src/java.base/share/classes/java/math/MutableBigInteger.java')
-rw-r--r--src/java.base/share/classes/java/math/MutableBigInteger.java6
1 files changed, 3 insertions, 3 deletions
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();