Changeset 512a2b in git for Singular/p_Copy__Template.cc
- Timestamp:
- Sep 18, 2000, 11:19:39 AM (24 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- d1655e92ca71fb37d1b57af88efdff5b65b8988b
- Parents:
- f3398d316400fe1ee1677fc397cacb80566ac664
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/p_Copy__Template.cc
rf3398d r512a2b 7 7 * Author: obachman (Olaf Bachmann) 8 8 * Created: 8/00 9 * Version: $Id: p_Copy__Template.cc,v 1. 2 2000-09-12 16:01:06obachman Exp $9 * Version: $Id: p_Copy__Template.cc,v 1.3 2000-09-18 09:19:25 obachman Exp $ 10 10 *******************************************************************/ 11 11 12 12 poly p_Copy(poly s_p, const ring r) 13 13 { 14 pTest(s_p); 14 // let's not do tests here -- but instead allow 15 // to be sloppy 15 16 spolyrec dp; 16 17 poly d_p = &dp; … … 22 23 while (s_p != NULL) 23 24 { 24 omTypeAllocBin(poly, pNext(d_p), bin);25 p_AllocBin(pNext(d_p), bin, r); 25 26 pIter(d_p); 26 pSetCoeff0(d_p, p_nCopy(pGetCoeff(s_p), r));27 pSetCoeff0(d_p, n_Copy(pGetCoeff(s_p), r)); 27 28 // it is better to iter here, 28 29 // for MemCopy advances goes from low to high addresses … … 33 34 pNext(d_p) = NULL; 34 35 35 pTest(dp.next);36 #if PDEBUG37 assume(pEqual(s_p, dp.next));38 #endif39 36 return dp.next; 40 37 }
Note: See TracChangeset
for help on using the changeset viewer.