Changeset 9f1083 in git
- Timestamp:
- Jan 13, 2006, 11:56:40 AM (18 years ago)
- Branches:
- (u'spielwiese', '2fa36c576e6a4ddbb1093b43c7f8e9835e17e52a')
- Children:
- 4cbb61ba5014a593b9bc6569b497e9a8151bc15f
- Parents:
- 9ce72aecbd5700bb291ae22e4875d6cd55c525ae
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kbuckets.cc
r9ce72a r9f1083 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kbuckets.cc,v 1.1 5 2006-01-12 14:12:41bricken Exp $ */4 /* $Id: kbuckets.cc,v 1.16 2006-01-13 10:56:40 bricken Exp $ */ 5 5 6 6 #include "mod2.h" … … 253 253 assume(pNext(lm)==NULL); 254 254 number coef=p_GetCoeff(lm,bucket->bucket_ring); 255 //WARNING: not thread_safe 255 256 p_SetCoeff0(lm, n_Init(1,bucket->bucket_ring), bucket->bucket_ring); 256 257 bucket->buckets[i]=lm; … … 1000 1001 l1--; 1001 1002 1003 assume(l1==pLength(a1)); 1004 BOOLEAN backuped=FALSE; 1005 number coef; 1006 if(l1==1) { 1007 1008 //if (rField_is_Q(bucket->bucket_ring)) { 1009 //avoid this for function fields, as gcds are expensive at the moment 1010 1011 1012 coef=p_GetCoeff(a1,bucket->bucket_ring); 1013 lm=p_Mult_nn(lm, coef, bucket->bucket_ring); 1014 p_SetCoeff0(a1, n_Init(1,bucket->bucket_ring), bucket->bucket_ring); 1015 backuped=TRUE; 1016 //WARNING: not thread_safe 1017 //deletes coef as side effect 1018 //} 1019 } 1020 1021 1002 1022 kBucket_Minus_m_Mult_p(bucket, lm, a1, &l1, spNoether); 1003 1023 1024 if (backuped) 1025 p_SetCoeff0(a1,coef,bucket->bucket_ring); 1004 1026 p_DeleteLm(&lm, bucket->bucket_ring); 1005 1027 if (reset_vec) p_SetCompP(a1, 0, bucket->bucket_ring); … … 1085 1107 } 1086 1108 } 1109 n_Delete(&coef,r); 1087 1110 } 1088 1111
Note: See TracChangeset
for help on using the changeset viewer.