Changeset aa74213 in git for kernel/longalg.cc


Ignore:
Timestamp:
Oct 9, 2009, 2:24:16 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
70f63ab39d1a6a435e42e041336a21e13c1269d9
Parents:
6094f40a4b25fd0a3a901bd854053d0df6b84df3
Message:
*hannes: removed napDelete1


git-svn-id: file:///usr/local/Singular/svn/trunk@12180 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/longalg.cc

    r6094f4 raa74213  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: longalg.cc,v 1.57 2009-10-09 12:21:25 Singular Exp $ */
     4/* $Id: longalg.cc,v 1.58 2009-10-09 12:24:16 Singular Exp $ */
    55/*
    66* ABSTRACT:   algebraic numbers
     
    165165
    166166#define napSetCoeff(p,n) {n_Delete(&pGetCoeff(p),nacRing);pGetCoeff(p)=n;}
    167 #define napDelete1(p)    p_LmDelete((poly *)p, nacRing)
    168167#define napComp(p,q)     p_LmCmp((poly)p,(poly)q, nacRing)
    169168#define napMultT(A,E)    A=(napoly)p_Mult_mm((poly)A,(poly)E,nacRing)
     
    516515    if (nacIsZero(pGetCoeff(a)))
    517516    {
    518       napDelete1(&a);
     517      p_LmDelete(&a,nacRing);
    519518      *b = NULL;
    520519      return s;
     
    748747        if (!nacIsOne(pGetCoeff(g)))
    749748          napMultN(y, pGetCoeff(g));
    750         napDelete1(&g);
     749        p_LmDelete(&g,nacRing);
    751750        return y;
    752751      }
     
    757756    }
    758757    p_Delete(&y,nacRing);
    759     napDelete1(&h);
     758    p_LmDelete(&h,nacRing);
    760759    napSetExp(g,1, napExp(a, b));
    761760    p_Setm(g,nacRing);
     
    18341833    if (nacIsOne(pGetCoeff(y)))
    18351834    {
    1836       napDelete1(&y);
     1835      p_LmDelete(&y,nacRing);
    18371836      p->n = NULL;
    18381837      naTest(pp);
     
    18431842    napMultN(x, h1);
    18441843    n_Delete(&h1,nacRing);
    1845     napDelete1(&y);
     1844    p_LmDelete(&y,nacRing);
    18461845    p->n = NULL;
    18471846    naTest(pp);
     
    19091908        if (p_GetExp(y,1,nacRing)==0)
    19101909        {
    1911           napDelete1(&y);
     1910          p_LmDelete(&y,nacRing);
    19121911          p->n = NULL;
    19131912        }
Note: See TracChangeset for help on using the changeset viewer.