Changeset c28d7c8 in git


Ignore:
Timestamp:
Nov 16, 2022, 12:24:17 PM (3 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'ad2543eab51733612ba7d118afc77edca719600e')
Children:
fb69c502f926f253f3cdde3646c5e7e142f1a9da
Parents:
0b029869d88ea04febbbb5041b1b9a387c17d95b
Message:
removed nNew/n_New
Location:
libpolys
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/coeffs.h

    r0b0298 rc28d7c8  
    131131
    132132   // general properties:
    133    /// TRUE, if nNew/nDelete/nCopy are dummies
     133   /// TRUE, if nDelete/nCopy are dummies
    134134   BOOLEAN has_simple_Alloc;
    135135   /// TRUE, if std should make polynomials monic (if nInvers is cheap)
     
    438438{ assume(r!=NULL); assume(r->cfSetChar != NULL); r->cfSetChar(r); }
    439439
    440 void           nNew(number * a);
    441 #define n_New(n, r)           nNew(n)
    442 
    443 
    444440/// Return the characteristic of the coeff. domain.
    445441static FORCE_INLINE int n_GetChar(const coeffs r)
     
    904900{ assume(r != NULL); return r->has_simple_Inverse; }
    905901
    906 /// TRUE if n_Delete/n_New are empty operations
     902/// TRUE if n_Delete is empty operation
    907903static FORCE_INLINE BOOLEAN nCoeff_has_simple_Alloc(const coeffs r)
    908904{ assume(r != NULL); return r->has_simple_Alloc; }
  • libpolys/coeffs/gnumpc.cc

    r0b0298 rc28d7c8  
    230230  else if ( exp == 1 )
    231231  {
    232     n_New(u, r);
    233232    gmp_complex* n = new gmp_complex();
    234233    *n= *(gmp_complex*)x;
     
    238237  else if (exp == 2)
    239238  {
    240     n_New(u, r);
    241239    gmp_complex* n = new gmp_complex();
    242240    *n= *(gmp_complex*)x;
     
    255253  else
    256254  {
    257     number w;
    258     n_New(&w, r);
     255    number w=NULL;
    259256    ngcPower(x,exp/2,&w, r);
    260257    ngcPower(w,2,u, r);
  • libpolys/coeffs/numbers.cc

    r0b0298 rc28d7c8  
    4444
    4545VAR n_Procs_s *cf_root=NULL;
    46 
    47 void   nNew(number* d) { *d=NULL; }
    4846
    4947static void   ndDelete(number* d, const coeffs) { *d=NULL; }
  • libpolys/polys/sparsmat.cc

    r0b0298 rc28d7c8  
    28532853  a->pos = p_GetComp(p,R);
    28542854  a->m = pGetCoeff(p);
    2855   n_New(&pGetCoeff(p),R->cf);
     2855  pGetCoeff(p)=NULL;
    28562856  loop
    28572857  {
     
    28662866    a->pos = p_GetComp(p,R);
    28672867    a->m = pGetCoeff(p);
    2868     n_New(&pGetCoeff(p),R->cf);
     2868    pGetCoeff(p)=NULL;
    28692869  }
    28702870}
Note: See TracChangeset for help on using the changeset viewer.