Changeset c28d7c8 in git
- Timestamp:
- Nov 16, 2022, 12:24:17 PM (3 months ago)
- Branches:
- (u'spielwiese', 'ad2543eab51733612ba7d118afc77edca719600e')
- Children:
- fb69c502f926f253f3cdde3646c5e7e142f1a9da
- Parents:
- 0b029869d88ea04febbbb5041b1b9a387c17d95b
- Location:
- libpolys
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/coeffs.h
r0b0298 rc28d7c8 131 131 132 132 // general properties: 133 /// TRUE, if n New/nDelete/nCopy are dummies133 /// TRUE, if nDelete/nCopy are dummies 134 134 BOOLEAN has_simple_Alloc; 135 135 /// TRUE, if std should make polynomials monic (if nInvers is cheap) … … 438 438 { assume(r!=NULL); assume(r->cfSetChar != NULL); r->cfSetChar(r); } 439 439 440 void nNew(number * a);441 #define n_New(n, r) nNew(n)442 443 444 440 /// Return the characteristic of the coeff. domain. 445 441 static FORCE_INLINE int n_GetChar(const coeffs r) … … 904 900 { assume(r != NULL); return r->has_simple_Inverse; } 905 901 906 /// TRUE if n_Delete /n_New are empty operations902 /// TRUE if n_Delete is empty operation 907 903 static FORCE_INLINE BOOLEAN nCoeff_has_simple_Alloc(const coeffs r) 908 904 { assume(r != NULL); return r->has_simple_Alloc; } -
libpolys/coeffs/gnumpc.cc
r0b0298 rc28d7c8 230 230 else if ( exp == 1 ) 231 231 { 232 n_New(u, r);233 232 gmp_complex* n = new gmp_complex(); 234 233 *n= *(gmp_complex*)x; … … 238 237 else if (exp == 2) 239 238 { 240 n_New(u, r);241 239 gmp_complex* n = new gmp_complex(); 242 240 *n= *(gmp_complex*)x; … … 255 253 else 256 254 { 257 number w; 258 n_New(&w, r); 255 number w=NULL; 259 256 ngcPower(x,exp/2,&w, r); 260 257 ngcPower(w,2,u, r); -
libpolys/coeffs/numbers.cc
r0b0298 rc28d7c8 44 44 45 45 VAR n_Procs_s *cf_root=NULL; 46 47 void nNew(number* d) { *d=NULL; }48 46 49 47 static void ndDelete(number* d, const coeffs) { *d=NULL; } -
libpolys/polys/sparsmat.cc
r0b0298 rc28d7c8 2853 2853 a->pos = p_GetComp(p,R); 2854 2854 a->m = pGetCoeff(p); 2855 n_New(&pGetCoeff(p),R->cf);2855 pGetCoeff(p)=NULL; 2856 2856 loop 2857 2857 { … … 2866 2866 a->pos = p_GetComp(p,R); 2867 2867 a->m = pGetCoeff(p); 2868 n_New(&pGetCoeff(p),R->cf);2868 pGetCoeff(p)=NULL; 2869 2869 } 2870 2870 }
Note: See TracChangeset
for help on using the changeset viewer.