---
 lib/gcd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/gcd.c b/lib/gcd.c
index d208f12d3c..d7a336364b 100644
--- a/lib/gcd.c
+++ b/lib/gcd.c
@@ -42,7 +42,8 @@ GCD (WORD_T a, WORD_T b)
 
   WORD_T c = a | b;
   c = c ^ (c - 1);
-  /* c = largest power of 2 that divides a and b.  */
+  /* c = p + (p - 1), where p is the largest power of 2 that
+     divides both a and b.  */
 
   if (a & c)
     {
-- 
2.55.0


  • [PATCH] * lib/gcd.c (GCD): Fix com... Paul Eggert

Reply via email to