Skip to content
Tcl Source Code History Of Ticket 1606554
Login

History Of Ticket 1606554

Artifacts Associated With Ticket 1606554

  1. Ticket change [f574519ab9] (rid 130109) by das on 2006-12-01 05:57:10:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Compiling bn_mp_div.c rev 1.2 fails with the following errors:
      
      tcl/libtommath/bn_mp_div.c: In function 'TclBN_mp_div':
      tcl/libtommath/bn_mp_div.c:164: error: invalid type argument of '->'
      tcl/libtommath/bn_mp_div.c:164: error: invalid type argument of '->'
      tcl/libtommath/bn_mp_div.c:193: warning: implicit declaration of function 'bn_s_mp_div_school'
      tcl/libtommath/bn_mp_div.c:200: error: invalid type argument of '->'
      tcl/libtommath/bn_mp_div.c:201: error: invalid type argument of '->'
      tcl/libtommath/bn_mp_div.c:203: error: invalid type argument of '->'
      tcl/libtommath/bn_mp_div.c:211: error: invalid type argument of '->'
      tcl/libtommath/bn_mp_div.c:213: error: invalid type argument of '->'
      tcl/libtommath/bn_mp_div.c: At top level:
      tcl/libtommath/bn_mp_div.c:254: error: redefinition of 'TclBN_mp_div'
      tcl/libtommath/bn_mp_div.c:99: error: previous definition of 'TclBN_mp_div' was here
      
      defining out the newly added (second) mp_div implementation restores the build to working order.
      
      The 0.39 update had also introduced two new warnings that I've already committed fixes for.
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "9 Immediate"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "das"
    10. subsystem initialized to: ""
    11. title initialized to: "tommath 0.39 update breaks HEAD build"
    12. type initialized to: "Bug"
  2. Ticket change [dfe27f79b6] (rid 115093) by das on 2006-12-01 12:59:52:

    1. icomment:
      Logged In: YES 
      user_id=90580
      Originator: YES
      
      the committed warning fixes were as follows:
      
      Index: bn_mp_div_d.c
      ===================================================================
      RCS file: /cvsroot/tcl/libtommath/bn_mp_div_d.c,v
      --- bn_mp_div_d.c1 Dec 2006 00:31:32 -00001.2
      +++ bn_mp_div_d.c1 Dec 2006 05:47:47 -00001.3
      @@ -20,7 +20,7 @@ static int s_is_power_of_two(mp_digit b,
          int x;
       
          /* quick out - if (b & (b-1)) isn't zero, b isn't a power of two */
      -   if ( b & (b-1) != 0 ) {
      +   if ((b & (b-1)) != 0) {
              return 0;
          }
          for (x = 1; x < DIGIT_BIT; x++) {
      Index: bn_mp_sqrt.c
      ===================================================================
      RCS file: /cvsroot/tcl/libtommath/bn_mp_sqrt.c,v
      --- bn_mp_sqrt.c1 Dec 2006 00:31:32 -00001.4
      +++ bn_mp_sqrt.c1 Dec 2006 05:48:23 -00001.5
      @@ -69,7 +69,7 @@ int mp_sqrt(mp_int *arg, mp_int *ret) 
         if (dig) {
             t1.used = i+2;
             d -= ldexp((double) dig, DIGIT_BIT);
      -      if (d != 0,0) {
      +      if (d != 0.0) {
         t1.dp[i+1] = dig;
         t1.dp[i] = ((mp_digit) d) - 1;
             } else {
      
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  3. Ticket change [a539b68be3] (rid 110334) by das on 2006-12-01 13:02:03:

    1. icomment:
      
      
      data_type - 110894
      
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. subsystem changed to: "56. LibTomMath"
    5. username: "das"
  4. Ticket change [5d8e5e62f2] (rid 115484) by das on 2006-12-01 15:38:19:

    1. icomment:
      Logged In: YES 
      user_id=90580
      Originator: YES
      
      the change to #ifdef out the broken mp_div is as follows:
      
      Index: libtommath/bn_mp_div.c
      ===================================================================
      RCS file: /cvsroot/tcl/libtommath/bn_mp_div.c,v
      retrieving revision 1.2
      diff -u -p -u -p -r1.2 bn_mp_div.c
      --- libtommath/bn_mp_div.c1 Dec 2006 00:31:32 -00001.2
      +++ libtommath/bn_mp_div.c1 Dec 2006 08:02:37 -0000
      @@ -87,6 +87,7 @@ LBL_ERR:
       
       #else
       
      +#if 0
       /* Integer signed division.
        *
        * c*b + d == a, that is, c = a/b and c = a%b
      @@ -236,6 +237,7 @@ int mp_div(mp_int* a, mp_int* b, mp_int*
           return res;
       
       }
      +#endif
       
       /* integer signed division. 
        * c*b + d == a [e.g. a/b, c=quotient, d=remainder]
      
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  5. Ticket change [07954e9773] (rid 89427) by dgp on 2006-12-01 23:03:15:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      I mistakenly committed that workaround
      with the TIP 287 implementation.
      
      If a different fix is the correct one,
      that will need revision, but should
      explain why anyone testing the current
      HEAD doesn't see this bug.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [a2dd30707e] (rid 109963) by kennykb on 2006-12-02 02:47:26:

    1. closedate changed to: "2006-12-01T19:47:26"
    2. closer changed to: "kennykb"
    3. icomment:
      Logged In: YES 
      user_id=99768
      Originator: NO
      
      Sorry!  I badly bollixed the [cvs merge] that brought in libtommath 0.39.
      The HEAD tests ok for me now.
      
      
    4. login: "kennykb"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "kennykb"