Changeset 7f7808 in git
- Timestamp:
- Jan 19, 2015, 7:32:03 PM (9 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 0aa248bce27cf5733670e130d1c774a07cbdf251
- Parents:
- a7c8b1fd065150adf6d6165eac463687c886eaae
- Location:
- libpolys
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/longrat.cc
ra7c8b1f r7f7808 345 345 if ( SR_HDL(n) & SR_INT ) 346 346 { 347 int nn=SR_TO_INT(n); 348 if ((long)nn==SR_TO_INT(n)) 349 term = nn; 350 else 351 { 352 mpz_t dummy; 353 mpz_init_set_si(dummy, SR_TO_INT(n)); 354 term = make_cf(dummy); 355 } 347 long nn=SR_TO_INT(n); 348 term = nn; 356 349 } 357 350 else -
libpolys/coeffs/rintegers.cc
ra7c8b1f r7f7808 161 161 number nrzCopy(number a, const coeffs) 162 162 { 163 if (a==NULL) return NULL; 163 164 mpz_ptr erg = (mpz_ptr) omAllocBin(gmp_nrz_bin); 164 165 mpz_init_set(erg, (mpz_ptr) a); -
libpolys/polys/clapsing.cc
ra7c8b1f r7f7808 154 154 if (g == NULL) 155 155 { 156 res= p_Copy (f,r); 157 p_Delete (&f, r); 156 res= f; 158 157 f=p_One (r); 159 158 return res; … … 161 160 if (f==NULL) 162 161 { 163 res= p_Copy (g,r); 164 p_Delete (&g, r); 162 res= g; 165 163 g=p_One (r); 166 164 return res; … … 172 170 { 173 171 bool b1=isOn(SW_USE_EZGCD_P); 174 setCharacteristic( rChar(r) );175 172 F=convSingPFactoryP( f,r ); 176 173 G=convSingPFactoryP( g,r );
Note: See TracChangeset
for help on using the changeset viewer.