Changeset b3f6d8 in git


Ignore:
Timestamp:
Feb 9, 2000, 9:15:10 AM (24 years ago)
Author:
Wilfred Pohl <pohl@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
23e9613b6e2954737f783056c61ad070065c84c6
Parents:
dcef92bb720f83006de727ceb364633b0a2cba28
Message:
OLD_DIV for arithmetic


git-svn-id: file:///usr/local/Singular/svn/trunk@4135 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Singular/matpol.cc

    rdcef92 rb3f6d8  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: matpol.cc,v 1.31 1999-12-20 12:50:21 Singular Exp $ */
     4/* $Id: matpol.cc,v 1.32 2000-02-09 08:15:02 pohl Exp $ */
    55
    66/*
     
    11051105        if (ap[jj] != NULL)
    11061106        {
    1107           q2 = smMultDiv(ap[jj], elim, div);
     1107          q2 = SM_MULT(ap[jj], elim, div);
    11081108          if (a[jj] != NULL)
    11091109          {
    1110             q1 = smMultDiv(a[jj], piv, div);
     1110            q1 = SM_MULT(a[jj], piv, div);
    11111111            pDelete(&a[jj]);
    11121112            q2 = pAdd(q2, q1);
     
    11151115        else if (a[jj] != NULL)
    11161116        {
    1117           q2 = smMultDiv(a[jj], piv, div);
     1117          q2 = SM_MULT(a[jj], piv, div);
    11181118        }
    11191119        if ((q2!=NULL) && div)
    1120           smSpecialPolyDiv(q2, div);
     1120          SM_DIV(q2, div);
    11211121        a[jj] = q2;
    11221122      }
     
    11301130        if (a[jj] != NULL)
    11311131        {
    1132           q2 = smMultDiv(a[jj], piv, div);
     1132          q2 = SM_MULT(a[jj], piv, div);
    11331133          pDelete(&a[jj]);
    11341134          if (div)
    1135             smSpecialPolyDiv(q2, div);
     1135            SM_DIV(q2, div);
    11361136          a[jj] = q2;
    11371137        }
     
    18501850        if (a[j] != NULL)
    18511851        {
    1852           q1 = smMultDiv(a[j], piv, div);
     1852          q1 = SM_MULT(a[j], piv, div);
    18531853          if (ap[j] != NULL)
    18541854          {
    1855             q2 = smMultDiv(ap[j], elim, div);
     1855            q2 = SM_MULT(ap[j], elim, div);
    18561856            q1 = pAdd(q1,q2);
    18571857          }
    18581858        }
    18591859        else if (ap[j] != NULL)
    1860           q1 = smMultDiv(ap[j], elim, div);
     1860          q1 = SM_MULT(ap[j], elim, div);
    18611861        if (q1 != NULL)
    18621862        {
    18631863          if (div)
    1864             smSpecialPolyDiv(q1, div);
     1864            SM_DIV(q1, div);
    18651865          q[j] = q1;
    18661866        }
     
    18731873        if (a[j] != NULL)
    18741874        {
    1875           q1 = smMultDiv(a[j], piv, div);
     1875          q1 = SM_MULT(a[j], piv, div);
    18761876          if (div)
    1877             smSpecialPolyDiv(q1, div);
     1877            SM_DIV(q1, div);
    18781878          q[j] = q1;
    18791879        }
  • Singular/sparsmat.cc

    rdcef92 rb3f6d8  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: sparsmat.cc,v 1.24 2000-02-07 17:23:16 Singular Exp $ */
     4/* $Id: sparsmat.cc,v 1.25 2000-02-09 08:15:09 pohl Exp $ */
    55
    66/*
     
    2424#include "prCopy.h"
    2525
    26 /* ----------------- macros ------------------ */
    27 #ifdef HAVE_SHIFTED_EXPONENTS
    28 #define OLD_DIV 1
    29 #endif
    30 
    31 #ifdef OLD_DIV
    32 #define SM_MULT(A,B,C) smMult(A,B)
    33 #define SM_DIV smPolyDiv
    34 #else
    35 #define SM_MULT smMultDiv
    36 #define SM_DIV smSpecialPolyDiv
    37 #endif
    3826/* ----------------- general definitions ------------------ */
    3927/* in structs.h
  • Singular/sparsmat.h

    rdcef92 rb3f6d8  
    88 *
    99 *******************************************************************/
    10 /* $Id: sparsmat.h,v 1.3 1999-11-15 17:20:50 obachman Exp $ */
     10/* $Id: sparsmat.h,v 1.4 2000-02-09 08:15:10 pohl Exp $ */
    1111
    1212
     
    1515poly smMultDiv(poly, poly, const poly);
    1616void smSpecialPolyDiv(poly, poly);
     17/* ----------------- macros ------------------ */
     18#ifdef HAVE_SHIFTED_EXPONENTS
     19#define OLD_DIV 1
     20#endif
     21
     22#ifdef OLD_DIV
     23#define SM_MULT(A,B,C) smMult(A,B)
     24#define SM_DIV smPolyDiv
     25#else
     26#define SM_MULT smMultDiv
     27#define SM_DIV smSpecialPolyDiv
     28#endif
    1729
    1830poly smCallDet(ideal I);
Note: See TracChangeset for help on using the changeset viewer.