[Python-checkins] cpython: Use C-style comments.

georg.brandl python-checkins at python.org
Mon Sep 24 07:47:21 CEST 2012


http://hg.python.org/cpython/rev/962c02da78e2
changeset:   79128:962c02da78e2
user:        Stefan Krah <skrah at bytereef.org>
date:        Sun Sep 23 15:46:09 2012 +0200
summary:
  Use C-style comments.

files:
  Modules/_decimal/libmpdec/mpdecimal.c |  54 +++++++-------
  1 files changed, 27 insertions(+), 27 deletions(-)


diff --git a/Modules/_decimal/libmpdec/mpdecimal.c b/Modules/_decimal/libmpdec/mpdecimal.c
--- a/Modules/_decimal/libmpdec/mpdecimal.c
+++ b/Modules/_decimal/libmpdec/mpdecimal.c
@@ -5063,28 +5063,28 @@
         return;
     }
 
-    m = (la+1)/2;  // ceil(la/2)
+    m = (la+1)/2;  /* ceil(la/2) */
 
     /* lb <= m < la */
     if (lb <= m) {
 
         /* lb can now be larger than la-m */
         if (lb > la-m) {
-            lt = lb + lb + 1;       // space needed for result array
-            mpd_uint_zero(w, lt);   // clear result array
-            _karatsuba_rec(w, b, a+m, w+lt, lb, la-m); // b*ah
+            lt = lb + lb + 1;       /* space needed for result array */
+            mpd_uint_zero(w, lt);   /* clear result array */
+            _karatsuba_rec(w, b, a+m, w+lt, lb, la-m); /* b*ah */
         }
         else {
-            lt = (la-m) + (la-m) + 1;  // space needed for result array
-            mpd_uint_zero(w, lt);      // clear result array
-            _karatsuba_rec(w, a+m, b, w+lt, la-m, lb); // ah*b
-        }
-        _mpd_baseaddto(c+m, w, (la-m)+lb);      // add ah*b*B**m
-
-        lt = m + m + 1;         // space needed for the result array
-        mpd_uint_zero(w, lt);   // clear result array
-        _karatsuba_rec(w, a, b, w+lt, m, lb);  // al*b
-        _mpd_baseaddto(c, w, m+lb);    // add al*b
+            lt = (la-m) + (la-m) + 1;  /* space needed for result array */
+            mpd_uint_zero(w, lt);      /* clear result array */
+            _karatsuba_rec(w, a+m, b, w+lt, la-m, lb); /* ah*b */
+        }
+        _mpd_baseaddto(c+m, w, (la-m)+lb);      /* add ah*b*B**m */
+
+        lt = m + m + 1;         /* space needed for the result array */
+        mpd_uint_zero(w, lt);   /* clear result array */
+        _karatsuba_rec(w, a, b, w+lt, m, lb);  /* al*b */
+        _mpd_baseaddto(c, w, m+lb);    /* add al*b */
 
         return;
     }
@@ -5360,34 +5360,34 @@
         return 1;
     }
 
-    m = (la+1)/2;  // ceil(la/2)
+    m = (la+1)/2;  /* ceil(la/2) */
 
     /* lb <= m < la */
     if (lb <= m) {
 
         /* lb can now be larger than la-m */
         if (lb > la-m) {
-            lt = lb + lb + 1;       // space needed for result array
-            mpd_uint_zero(w, lt);   // clear result array
-            if (!_karatsuba_rec_fnt(w, b, a+m, w+lt, lb, la-m)) { // b*ah
+            lt = lb + lb + 1;       /* space needed for result array */
+            mpd_uint_zero(w, lt);   /* clear result array */
+            if (!_karatsuba_rec_fnt(w, b, a+m, w+lt, lb, la-m)) { /* b*ah */
                 return 0; /* GCOV_UNLIKELY */
             }
         }
         else {
-            lt = (la-m) + (la-m) + 1;  // space needed for result array
-            mpd_uint_zero(w, lt);      // clear result array
-            if (!_karatsuba_rec_fnt(w, a+m, b, w+lt, la-m, lb)) { // ah*b
+            lt = (la-m) + (la-m) + 1;  /* space needed for result array */
+            mpd_uint_zero(w, lt);      /* clear result array */
+            if (!_karatsuba_rec_fnt(w, a+m, b, w+lt, la-m, lb)) { /* ah*b */
                 return 0; /* GCOV_UNLIKELY */
             }
         }
-        _mpd_baseaddto(c+m, w, (la-m)+lb); // add ah*b*B**m
-
-        lt = m + m + 1;         // space needed for the result array
-        mpd_uint_zero(w, lt);   // clear result array
-        if (!_karatsuba_rec_fnt(w, a, b, w+lt, m, lb)) {  // al*b
+        _mpd_baseaddto(c+m, w, (la-m)+lb); /* add ah*b*B**m */
+
+        lt = m + m + 1;         /* space needed for the result array */
+        mpd_uint_zero(w, lt);   /* clear result array */
+        if (!_karatsuba_rec_fnt(w, a, b, w+lt, m, lb)) {  /* al*b */
             return 0; /* GCOV_UNLIKELY */
         }
-        _mpd_baseaddto(c, w, m+lb);       // add al*b
+        _mpd_baseaddto(c, w, m+lb);       /* add al*b */
 
         return 1;
     }

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list