Changeset 924cca in git
- Timestamp:
- Feb 13, 2006, 6:12:42 PM (18 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- 42ddd0dbdece5354f0a671a1747d9a01790bf8b8
- Parents:
- c7afb70a6725827461cf4b44dca573c599e0a11d
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kbuckets.cc
rc7afb70 r924cca 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kbuckets.cc,v 1.2 3 2006-02-13 14:54:59 SingularExp $ */4 /* $Id: kbuckets.cc,v 1.24 2006-02-13 17:12:28 bricken Exp $ */ 5 5 6 6 #include "mod2.h" … … 248 248 } 249 249 #endif 250 #if 0250 #ifndef USE_COEF_BUCKETS 251 251 MULTIPLY_BUCKET(bucket,i); 252 252 pNext(lm) = bucket->buckets[i]; … … 257 257 bucket->buckets[0] = NULL; 258 258 bucket->buckets_length[0] = 0; 259 #endif 259 kbTest(bucket); 260 #else 260 261 if (i > bucket->buckets_used) bucket->buckets_used = i; 261 262 assume(i!=0); … … 296 297 bucket->coef[0]=NULL; 297 298 kbTest(bucket); 298 } 299 #endif 300 } 301 299 302 } 300 303 … … 801 804 { 802 805 //if (FALSE){ 806 #ifdef USE_COEF_BUCKETS 803 807 if ((bucket->coef[i]!=NULL) &&(i>=coef_start)) 804 808 { … … 843 847 } 844 848 else 849 #endif 845 850 { 846 851 MULTIPLY_BUCKET(bucket,i); … … 853 858 } 854 859 } 860 #ifdef USE_COEF_BUCKETS 855 861 else 856 862 { … … 867 873 p_SetCoeff(m,n_Copy(n,r),r); 868 874 } 875 #endif 869 876 870 877 while ((bucket->buckets[i] != NULL) && (p1!=NULL)) 871 878 { 872 879 assume(i!=0); 880 #ifdef USE_COEF_BUCKETS 873 881 if ((bucket->coef[i]!=NULL) &&(i>=coef_start)) 874 882 { … … 905 913 } 906 914 else 915 #endif 907 916 { 908 917 //don't do that, pull out gcd 918 #ifdef USE_COEF_BUCKETS 909 919 if(!(n_IsOne(n,r))) 910 920 { … … 913 923 n=n_Init(1,r); 914 924 } 925 #endif 915 926 MULTIPLY_BUCKET(bucket,i); 916 927 p1 = p_Add_q(p1, bucket->buckets[i], … … 923 934 924 935 bucket->buckets[i] = p1; 925 936 #ifdef USE_COEF_BUCKETS 926 937 assume(bucket->coef[i]==NULL); 938 927 939 if (!(n_IsOne(n,r))) 928 940 { … … 934 946 n_Delete(&n,r); 935 947 } 948 #endif 936 949 if ((p1==NULL) && (bucket->coef[i]!=NULL)) 937 950 p_Delete(&bucket->coef[i],r); -
kernel/p_kBucketSetLm__T.cc
rc7afb70 r924cca 7 7 * Author: obachman (Olaf Bachmann) 8 8 * Created: 12/00 9 * Version: $Id: p_kBucketSetLm__T.cc,v 1. 3 2005-12-19 13:33:36bricken Exp $9 * Version: $Id: p_kBucketSetLm__T.cc,v 1.4 2006-02-13 17:12:42 bricken Exp $ 10 10 *******************************************************************/ 11 11 #undef USE_COEF_BUCKETS … … 25 25 #define MULTIPLY_BUCKET(B,I) 26 26 #endif 27 #if 027 #ifndef USE_COEF_BUCKETS 28 28 LINKAGE void p_kBucketSetLm(kBucket_pt bucket) 29 29 {
Note: See TracChangeset
for help on using the changeset viewer.